mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #6974 from Ocelot-Social-Community/update-and-fix-vuepress
fix(other): update and fix vuepress
This commit is contained in:
commit
04b05ee5ae
7
.gitignore
vendored
7
.gitignore
vendored
@ -15,8 +15,13 @@ cypress/videos
|
|||||||
cypress/screenshots/
|
cypress/screenshots/
|
||||||
cypress.env.json
|
cypress.env.json
|
||||||
|
|
||||||
|
.vuepress/.cache/
|
||||||
|
.vuepress/.temp/
|
||||||
|
.vuepress/dist/
|
||||||
|
|
||||||
|
|
||||||
!.gitkeep
|
!.gitkeep
|
||||||
**/coverage
|
**/coverage
|
||||||
|
|
||||||
release/
|
release/
|
||||||
*~
|
*~
|
||||||
|
|||||||
@ -1,11 +1,12 @@
|
|||||||
import { defineUserConfig } from 'vuepress'
|
import { defineUserConfig } from 'vuepress'
|
||||||
|
import { viteBundler } from '@vuepress/bundler-vite'
|
||||||
|
|
||||||
import meta from './config/meta'
|
import meta from './config/meta'
|
||||||
import theme from './config/theme'
|
import theme from './config/theme'
|
||||||
import plugins from './config/plugins'
|
|
||||||
|
|
||||||
export default defineUserConfig({
|
export default defineUserConfig({
|
||||||
pagePatterns: ['**/*.md', '!.vuepress', '!node_modules', '!backend/node_modules', '!webapp/node_modules', '!deployment/src/old'],
|
pagePatterns: ['**/*.md', '!.vuepress', '!node_modules', '!backend/node_modules', '!webapp/node_modules', '!deployment/src/old'],
|
||||||
|
bundler: viteBundler(),
|
||||||
...meta,
|
...meta,
|
||||||
theme,
|
theme,
|
||||||
plugins,
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -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",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
]
|
|
||||||
@ -27,6 +27,20 @@ export default hopeTheme({
|
|||||||
mdEnhance: {
|
mdEnhance: {
|
||||||
tabs: true,
|
tabs: true,
|
||||||
imgSize: 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
2096
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -60,9 +60,10 @@
|
|||||||
"wait-on": "^7.2.0"
|
"wait-on": "^7.2.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"vuepress": "^2.0.0-rc.0",
|
"@vuepress/bundler-vite": "^2.0.0-rc.2",
|
||||||
"vuepress-plugin-search-pro": "^2.0.0-rc.6",
|
"vuepress": "^2.0.0-rc.2",
|
||||||
"vuepress-theme-hope": "^2.0.0-rc.11"
|
"vuepress-plugin-search-pro": "^2.0.0-rc.15",
|
||||||
|
"vuepress-theme-hope": "^2.0.0-rc.15"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"set-value": "^2.0.1",
|
"set-value": "^2.0.1",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user