Merge pull request #6974 from Ocelot-Social-Community/update-and-fix-vuepress

fix(other): update and fix vuepress
This commit is contained in:
mahula 2024-01-29 21:06:20 +01:00 committed by GitHub
commit 04b05ee5ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1850 additions and 2068 deletions

7
.gitignore vendored
View File

@ -15,8 +15,13 @@ cypress/videos
cypress/screenshots/
cypress.env.json
.vuepress/.cache/
.vuepress/.temp/
.vuepress/dist/
!.gitkeep
**/coverage
release/
*~
*~

View File

@ -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,
})

View File

@ -1,18 +0,0 @@
import { searchProPlugin } from 'vuepress-plugin-search-pro'
export default [
searchProPlugin({
indexContent: true,
autoSuggestions: true,
customFields: [
{
getter: (page) => page.frontmatter.category,
formatter: "Category: $content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "Tag: $content",
},
],
})
]

View File

@ -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",
},
],
}
}
})

2096
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -60,9 +60,10 @@
"wait-on": "^7.2.0"
},
"optionalDependencies": {
"vuepress": "^2.0.0-rc.0",
"vuepress-plugin-search-pro": "^2.0.0-rc.6",
"vuepress-theme-hope": "^2.0.0-rc.11"
"@vuepress/bundler-vite": "^2.0.0-rc.2",
"vuepress": "^2.0.0-rc.2",
"vuepress-plugin-search-pro": "^2.0.0-rc.15",
"vuepress-theme-hope": "^2.0.0-rc.15"
},
"resolutions": {
"set-value": "^2.0.1",

1771
yarn.lock

File diff suppressed because it is too large Load Diff