Skip to content

Commit

Permalink
doc: maybe fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 7, 2023
1 parent eb4279c commit 314ad4e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 70 deletions.
8 changes: 0 additions & 8 deletions docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import wtfnode from 'wtfnode'
import { version } from './package.json'

export default defineNuxtConfig({
Expand Down Expand Up @@ -60,13 +59,6 @@ export default defineNuxtConfig({
css: [
'~/css/scrollbars.css',
],
debug: true,
hooks: {
// add open-handles detection on nuxt close hook
close: async () => {
wtfnode.dump()
},
},
app: {
pageTransition: {
name: 'page',
Expand Down
8 changes: 2 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@
"nuxt-icon": "^0.6.7",
"nuxt-lego": "^0.0.14",
"nuxt-lodash": "^2.5.3",
"nuxt-og-image": "^3.0.0-beta.52",
"playwright": "^1.40.1",
"nuxt-og-image": "^3.0.0-beta.53",
"shiki-es": "^0.14.0",
"three": "0.138.3",
"troisjs": "^0.3.4",
"typescript": "^5.3.3"
},
"resolutions": {
"nitropack": "npm:[email protected]",
"nuxt-og-image": "^3.0.0-beta.52"
},
"dependencies": {
"wtfnode": "^0.9.1"
"nuxt-og-image": "^3.0.0-beta.53"
}
}
40 changes: 20 additions & 20 deletions docs/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@ onMounted(() => {
showLighthouse3d.value = true
}, 1000)
}
})
const blink = useDebounceFn(() => {
// cursor.value = !cursor.value
write()
}, 500)
const blink = useDebounceFn(() => {
// cursor.value = !cursor.value
write()
}, 500)
const codeToWrite = 'npx unlighthouse --site #your-site'
const write = useDebounceFn(() => {
// need to right trim the _ character from code.value
if (code.value.endsWith(''))
code.value = code.value.slice(0, -1)
const codeToWrite = 'npx unlighthouse --site #your-site'
const write = useDebounceFn(() => {
// need to right trim the _ character from code.value
if (code.value.endsWith(''))
code.value = code.value.slice(0, -1)
if (code.value.length < codeToWrite.length)
code.value += codeToWrite[code.value.length]
if (code.value.length < codeToWrite.length)
code.value += codeToWrite[code.value.length]
// start blink
blink()
// conditionally show the blink
if (cursor.value)
code.value += ''
}, 70)
// start blink
blink()
// conditionally show the blink
if (cursor.value)
code.value += ''
}, 70)
watch(() => code.value.length, write, {
immediate: true,
watch(() => code.value.length, write, {
immediate: true,
})
})
defineOgImageComponent('NuxtSeo', {
Expand Down
42 changes: 6 additions & 36 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packages:
- 'packages/*'
- 'integrations/*'
- '!docs'

0 comments on commit 314ad4e

Please sign in to comment.