Skip to content

Commit

Permalink
update vuepress
Browse files Browse the repository at this point in the history
  • Loading branch information
mahula committed Jan 29, 2024
1 parent 58eb9a2 commit cbf7bdc
Show file tree
Hide file tree
Showing 7 changed files with 2,659 additions and 3,248 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ cypress/videos
cypress/screenshots/
cypress.env.json

.vuepress/.cache/
.vuepress/.temp/
.vuepress/dist/


!.gitkeep
**/coverage

release/
*~
*~
5 changes: 3 additions & 2 deletions .vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { defineUserConfig } from 'vuepress'
import { viteBundler } from '@vuepress/bundler-vite'

import meta from './config/meta'
import theme from './config/theme'
import plugins from './config/plugins'

export default defineUserConfig({
pagePatterns: ['**/*.md', '!.vuepress', '!node_modules', '!backend/node_modules', '!webapp/node_modules', '!deployment/src/old'],
bundler: viteBundler(),
...meta,
theme,
plugins,
})
18 changes: 0 additions & 18 deletions .vuepress/config/plugins.js

This file was deleted.

14 changes: 14 additions & 0 deletions .vuepress/config/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ export default hopeTheme({
mdEnhance: {
tabs: true,
imgSize: true
},
searchPro: {
indexContent: true,
autoSuggestions: true,
customFields: [
{
getter: (page) => page.frontmatter.category,
formatter: "Category: $content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "Tag: $content",
},
],
}
}
})
Expand Down
Loading

0 comments on commit cbf7bdc

Please sign in to comment.