Skip to content

Commit

Permalink
#291: installed search plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-may committed Jan 10, 2025
1 parent 789c58c commit e67cfdf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
6 changes: 5 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
import { getDirname, path } from 'vuepress/utils'
import { backToTopPlugin } from '@vuepress/plugin-back-to-top'
const __dirname = import.meta.dirname || getDirname(import.meta.url)
import { slimsearchPlugin } from '@vuepress/plugin-slimsearch'

const videosJson = require('./components/videos/skilltree-training-videos.json');

Expand Down Expand Up @@ -200,7 +201,10 @@ export default defineUserConfig({
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
}),
backToTopPlugin({ progress: false})
backToTopPlugin({ progress: false}),
slimsearchPlugin({
indexContent: true,
}),
],
theme: defaultTheme({
contributors: false,
Expand Down
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"description": "SkillTree Docs",
"author": "SkillTree Team",
"scripts": {
"licenseDepCheck": "license-checker --production --onlyAllow='MIT;Apache-2.0' --summary",
"licenseDepCheck": "license-checker --production --onlyAllow='MIT;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC' --summary",
"injectConf": "node injectConf.js",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"build": "npm run licenseDepCheck && npm run docs:build",
"docs:build": "npm run licenseDepCheck && vuepress build docs",
"build": "npm run docs:build",
"serve": "npm run docs:dev",
"wait:skills-service": "npx wait-on -t 160000 http://localhost:8080/public/isAlive",
"cy:open": "cypress open --env updateSnapshots=true",
Expand All @@ -20,10 +20,14 @@
"vue": "3.5.13"
},
"devDependencies": {
"sass-embedded": "1.83.1",
"vuepress": "2.0.0-rc.19",
"@vuepress/bundler-vite": "2.0.0-rc.19",
"@vuepress/plugin-register-components": "2.0.0-rc.66",
"@vuepress/theme-default": "2.0.0-rc.69"
"@vuepress/plugin-slimsearch": "2.0.0-rc.69",
"@vuepress/theme-default": "2.0.0-rc.69",
"license-checker": "25.0.1",
"replace-in-file": "8.3.0",
"rimraf": "6.0.1",
"sass-embedded": "1.83.1",
"vuepress": "2.0.0-rc.19"
}
}

0 comments on commit e67cfdf

Please sign in to comment.