Skip to content

Commit

Permalink
docs: add search (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux authored and farnabaz committed Oct 19, 2022
1 parent 5a2d37d commit 8fa581a
Show file tree
Hide file tree
Showing 5 changed files with 1,508 additions and 710 deletions.
12 changes: 3 additions & 9 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@ export default defineAppConfig({
alt: 'Content made easy for Vue developers'
},
aside: {
level: 1,
filter: [
'/v1',
'/content-v1',
'/fr',
'/ja',
'/ru'
]
level: 1
},
header: {
title: false,
logo: true
logo: true,
exclude: ['/v1', '/content-v1', '/fr', '/ja', '/ru']
},
footer: {
credits: {
Expand Down
13 changes: 12 additions & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { resolve } from 'pathe'
import { defineNuxtConfig } from 'nuxt'
import consola from 'consola'

const alias = {}
Expand Down Expand Up @@ -70,5 +69,17 @@ export default defineNuxtConfig({
},
colorMode: {
preference: 'dark'
},
runtimeConfig: {
public: {
algolia: {
applicationId: 'Q46Q8609QS',
apiKey: '4cbb8e2d6fa15cba2968c88a331eeb1e',
langAttribute: 'lang',
docSearch: {
indexName: 'content-nuxtjs'
}
}
}
}
})
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@nuxt-themes/docus": "npm:@nuxt-themes/docus-edge@latest",
"@nuxtlabs/github-module": "npm:@nuxtlabs/github-module-edge@latest",
"monaco-editor-core": "^0.34.0",
"nuxt": "^3.0.0-rc.10",
"nuxt": "^3.0.0-rc.11",
"vue-plausible": "^1.3.2"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions docs/tokens.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineTokens } from '@nuxtjs/design-tokens'
import { defineTheme } from 'pinceau'

export default defineTokens({
export default defineTheme({
colors: {
primary: {
50: { value: '#ecfdf5' },
Expand Down

0 comments on commit 8fa581a

Please sign in to comment.