mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
Merge branch 'master' of github.com:Ocelot-Social-Community/ocelot.social into development
This commit is contained in:
commit
9faad9c22a
@ -1,4 +1,6 @@
|
||||
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'
|
||||
@ -7,8 +9,9 @@ export default defineUserConfig({
|
||||
...meta,
|
||||
theme,
|
||||
plugins,
|
||||
bundler: viteBundler(),
|
||||
base: process.env.VUEPRESS_BASE ? `/${process.env.VUEPRESS_BASE}/` : '/',
|
||||
locales:{
|
||||
locales: {
|
||||
// The key is the path for the locale to be nested under.
|
||||
// As a special case, the default locale can use '/' as its path.
|
||||
'/de/': {
|
||||
@ -21,4 +24,4 @@ export default defineUserConfig({
|
||||
lang: 'fr-FR',
|
||||
},
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@ -1,21 +1,6 @@
|
||||
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
||||
import { redirectPlugin } from 'vuepress-plugin-redirect'
|
||||
|
||||
export default [
|
||||
searchProPlugin({
|
||||
indexContent: true,
|
||||
autoSuggestions: true,
|
||||
customFields: [
|
||||
{
|
||||
getter: (page) => page.frontmatter.category,
|
||||
formatter: "Category: $content",
|
||||
},
|
||||
{
|
||||
getter: (page) => page.frontmatter.tag,
|
||||
formatter: "Tag: $content",
|
||||
},
|
||||
],
|
||||
}),
|
||||
redirectPlugin({
|
||||
autoLocale: true,
|
||||
})
|
||||
|
||||
@ -125,6 +125,21 @@ export default hopeTheme({
|
||||
sub: true,
|
||||
sup: true,
|
||||
vPre: true,
|
||||
}
|
||||
},
|
||||
searchPro: {
|
||||
indexContent: true,
|
||||
autoSuggestions: true,
|
||||
customFields: [
|
||||
{
|
||||
getter: (page) => page.frontmatter.category,
|
||||
formatter: "Category: $content",
|
||||
},
|
||||
{
|
||||
getter: (page) => page.frontmatter.tag,
|
||||
formatter: "Tag: $content",
|
||||
},
|
||||
],
|
||||
},
|
||||
seo: true,
|
||||
}
|
||||
})
|
||||
|
||||
6769
package-lock.json
generated
6769
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,6 +20,7 @@
|
||||
"homepage": "https://ocelot.social",
|
||||
"devDependencies": {
|
||||
"@textlint-rule/textlint-rule-no-unmatched-pair": "^2.0.2",
|
||||
"@vuepress/bundler-vite": "^2.0.0-rc.2",
|
||||
"textlint": "^13.4.1",
|
||||
"textlint-filter-rule-comments": "^1.2.2",
|
||||
"textlint-rule-apostrophe": "^2.0.0",
|
||||
@ -34,9 +35,9 @@
|
||||
"textlint-rule-no-zero-width-spaces": "^1.0.1",
|
||||
"textlint-rule-period-in-list-item": "^1.0.1",
|
||||
"textlint-rule-write-good": "^2.0.0",
|
||||
"vuepress": "^2.0.0-rc.0",
|
||||
"vuepress-plugin-redirect": "^2.0.0-rc.1",
|
||||
"vuepress-plugin-search-pro": "^2.0.0-rc.5",
|
||||
"vuepress-theme-hope": "^2.0.0-rc.5"
|
||||
"vuepress": "^2.0.0-rc.2",
|
||||
"vuepress-plugin-redirect": "^2.0.0-rc.15",
|
||||
"vuepress-plugin-search-pro": "^2.0.0-rc.15",
|
||||
"vuepress-theme-hope": "^2.0.0-rc.19"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user