mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-12 23:35:59 +00:00
Merge pull request #240 from Ocelot-Social-Community/update-vuepress-packages
build(other): update vuepress packages to latest versions working with autoLocale and blog plugin
This commit is contained in:
commit
783fce0207
4
.github/workflows/test-build.yml
vendored
4
.github/workflows/test-build.yml
vendored
@ -10,10 +10,10 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||
|
||||
- name: Setup Node 20
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v4.0.3
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: npm-install
|
||||
run: npm install
|
||||
|
||||
4
.github/workflows/test-lint.yml
vendored
4
.github/workflows/test-lint.yml
vendored
@ -10,10 +10,10 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||
|
||||
- name: Setup Node 20
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v4.0.3
|
||||
with:
|
||||
node-version: '20'
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: npm-install
|
||||
run: npm install
|
||||
|
||||
4
.github/workflows/vuepress-deploy.yml
vendored
4
.github/workflows/vuepress-deploy.yml
vendored
@ -12,10 +12,10 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||
|
||||
- name: Setup Node 20
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v4.0.3
|
||||
with:
|
||||
node-version: 20
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Build Vuepress Pages
|
||||
run: npm install && npm run build
|
||||
|
||||
@ -17,7 +17,7 @@ export default hopeTheme({
|
||||
center: ["Links"],
|
||||
end: ["Language", "Repo", "Outlook", "Search"],
|
||||
},
|
||||
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/': {
|
||||
@ -170,22 +170,23 @@ export default hopeTheme({
|
||||
],
|
||||
}
|
||||
},
|
||||
mdEnhance: {
|
||||
align: true,
|
||||
demo: true,
|
||||
sub: true,
|
||||
sup: true,
|
||||
vPre: true,
|
||||
},
|
||||
|
||||
plugins: {
|
||||
blog: {
|
||||
excerptLength: 0,
|
||||
},
|
||||
mdEnhance: {
|
||||
align: true,
|
||||
demo: true,
|
||||
sub: true,
|
||||
sup: true,
|
||||
vPre: true,
|
||||
},
|
||||
redirect: {
|
||||
autoLocale: true,
|
||||
defaultBehavior: 'defaultLocale',
|
||||
defaultLocale: '/de/',
|
||||
|
||||
localeConfig: {
|
||||
'/de/': ['de-DE', 'de'],
|
||||
'/en/': ['en-US', 'en'],
|
||||
@ -194,19 +195,9 @@ export default hopeTheme({
|
||||
},
|
||||
localeFallback: false,
|
||||
},
|
||||
searchPro: {
|
||||
slimsearch: {
|
||||
indexContent: true,
|
||||
autoSuggestions: true,
|
||||
customFields: [
|
||||
{
|
||||
getter: (page) => page.frontmatter.category,
|
||||
formatter: "Category: $content",
|
||||
},
|
||||
{
|
||||
getter: (page) => page.frontmatter.tag,
|
||||
formatter: "Tag: $content",
|
||||
},
|
||||
],
|
||||
},
|
||||
seo: {
|
||||
fallbackImage: '/logo.svg',
|
||||
|
||||
4520
package-lock.json
generated
4520
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,8 @@
|
||||
"devDependencies": {
|
||||
"@textlint-rule/textlint-rule-no-unmatched-pair": "^2.0.4",
|
||||
"@vuepress/bundler-vite": "^2.0.0-rc.18",
|
||||
"@vuepress/plugin-redirect": "^2.0.0-rc.60",
|
||||
"@vuepress/plugin-redirect": "2.0.0-rc.66",
|
||||
"@vuepress/plugin-slimsearch": "2.0.0-rc.67",
|
||||
"sass-embedded": "^1.91.0",
|
||||
"textlint": "^15.2.3",
|
||||
"textlint-filter-rule-comments": "^1.2.2",
|
||||
@ -36,8 +37,7 @@
|
||||
"textlint-rule-no-start-duplicated-conjunction": "^2.0.2",
|
||||
"textlint-rule-no-todo": "^2.0.1",
|
||||
"textlint-rule-no-zero-width-spaces": "^1.0.1",
|
||||
"vuepress": "^2.0.0-rc.18",
|
||||
"vuepress-plugin-search-pro": "^2.0.0-rc.59",
|
||||
"vuepress-theme-hope": "^2.0.0-rc.59"
|
||||
"vuepress": "^2.0.0-rc.19",
|
||||
"vuepress-theme-hope": "2.0.0-rc.66"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user