mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
Merge pull request #24 from Ocelot-Social-Community/master-with-redirect
feat(content): add redirect plugin
This commit is contained in:
commit
8cf33ded94
@ -9,7 +9,9 @@ export default defineUserConfig({
|
||||
plugins,
|
||||
base: process.env.VUEPRESS_BASE ?? '/',
|
||||
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/': {
|
||||
lang: 'de-DE',
|
||||
},
|
||||
'/en/': {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { searchProPlugin } from 'vuepress-plugin-search-pro'
|
||||
import { redirectPlugin } from 'vuepress-plugin-redirect'
|
||||
|
||||
export default [
|
||||
searchProPlugin({
|
||||
@ -15,4 +16,7 @@ export default [
|
||||
},
|
||||
],
|
||||
}),
|
||||
redirectPlugin({
|
||||
autoLocale: true,
|
||||
})
|
||||
]
|
||||
@ -20,10 +20,10 @@ export default hopeTheme({
|
||||
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/': {
|
||||
lang: 'de-DE',
|
||||
title: 'Ocelot.Social',
|
||||
copyright: '© von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authoren | <a href="/impressum/">Impressum</a>',
|
||||
copyright: '© von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authoren | <a href="/de/impressum/">Impressum</a>',
|
||||
footer: 'Unter der <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT Lizenz<!--]--><!----></a> ausgeliefert.',
|
||||
navbar: [
|
||||
{
|
||||
@ -38,7 +38,7 @@ export default hopeTheme({
|
||||
},
|
||||
{
|
||||
text: 'Impressum',
|
||||
link: '/impressum/'
|
||||
link: '/de/impressum/'
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
164
package-lock.json
generated
164
package-lock.json
generated
@ -25,6 +25,7 @@
|
||||
"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.0",
|
||||
"vuepress-theme-hope": "^2.0.0-rc.0"
|
||||
}
|
||||
@ -10699,6 +10700,169 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-redirect": {
|
||||
"version": "2.0.0-rc.1",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-redirect/-/vuepress-plugin-redirect-2.0.0-rc.1.tgz",
|
||||
"integrity": "sha512-bmRKSEDPKjx1mkaJ6AOGUOtKvmS9yVbnwdGPe7FqjeD/bbTMPDSPrER1V+ztPqK8yzZDYf/oroGiWFwdBhr/Tg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@vuepress/cli": "2.0.0-rc.0",
|
||||
"@vuepress/client": "2.0.0-rc.0",
|
||||
"@vuepress/core": "2.0.0-rc.0",
|
||||
"@vuepress/shared": "2.0.0-rc.0",
|
||||
"@vuepress/utils": "2.0.0-rc.0",
|
||||
"@vueuse/core": "^10.6.1",
|
||||
"cac": "^6.7.14",
|
||||
"vue": "^3.3.9",
|
||||
"vue-router": "^4.2.5",
|
||||
"vuepress-plugin-sass-palette": "2.0.0-rc.1",
|
||||
"vuepress-shared": "2.0.0-rc.1"
|
||||
},
|
||||
"bin": {
|
||||
"vp-redirect": "lib/cli/index.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.16.0",
|
||||
"npm": ">=8",
|
||||
"pnpm": ">=7",
|
||||
"yarn": ">=2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"sass-loader": "^13.3.2",
|
||||
"vuepress": "2.0.0-rc.0",
|
||||
"vuepress-vite": "2.0.0-rc.0",
|
||||
"vuepress-webpack": "2.0.0-rc.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"sass-loader": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress-vite": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress-webpack": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-redirect/node_modules/lru-cache": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"yallist": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-redirect/node_modules/semver": {
|
||||
"version": "7.5.4",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
|
||||
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"lru-cache": "^6.0.0"
|
||||
},
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-redirect/node_modules/vuepress-plugin-sass-palette": {
|
||||
"version": "2.0.0-rc.1",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-sass-palette/-/vuepress-plugin-sass-palette-2.0.0-rc.1.tgz",
|
||||
"integrity": "sha512-3QI7mYFaCI6ynbW0EJ8Qf/3hJiryPOI0B+AJ8iJj06VCZTutQBpQvnsu4LfF02h3j2YNuWWs0UqIqc5fCi+Czg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@vuepress/shared": "2.0.0-rc.0",
|
||||
"@vuepress/utils": "2.0.0-rc.0",
|
||||
"chokidar": "^3.5.3",
|
||||
"sass": "^1.69.5",
|
||||
"vuepress-shared": "2.0.0-rc.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.16.0",
|
||||
"npm": ">=8",
|
||||
"pnpm": ">=7",
|
||||
"yarn": ">=2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"sass-loader": "^13.3.2",
|
||||
"vuepress": "2.0.0-rc.0",
|
||||
"vuepress-vite": "2.0.0-rc.0",
|
||||
"vuepress-webpack": "2.0.0-rc.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"sass-loader": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress-vite": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress-webpack": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-redirect/node_modules/vuepress-shared": {
|
||||
"version": "2.0.0-rc.1",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-shared/-/vuepress-shared-2.0.0-rc.1.tgz",
|
||||
"integrity": "sha512-WhtuaP3LCW42Xtu1pK6+NY3oe8BVpPzMgaVn5OnDBqupula0IViY6YgTI86YhCSarhl56sMmvnq1KeuLXPt7uA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@vuepress/client": "2.0.0-rc.0",
|
||||
"@vuepress/shared": "2.0.0-rc.0",
|
||||
"@vuepress/utils": "2.0.0-rc.0",
|
||||
"@vueuse/core": "^10.6.1",
|
||||
"cheerio": "1.0.0-rc.12",
|
||||
"dayjs": "^1.11.10",
|
||||
"execa": "^8.0.1",
|
||||
"fflate": "^0.8.1",
|
||||
"gray-matter": "^4.0.3",
|
||||
"semver": "^7.5.4",
|
||||
"striptags": "^3.2.0",
|
||||
"vue": "^3.3.9",
|
||||
"vue-router": "^4.2.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.16.0",
|
||||
"npm": ">=8",
|
||||
"pnpm": ">=7",
|
||||
"yarn": ">=2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vuepress": "2.0.0-rc.0",
|
||||
"vuepress-vite": "2.0.0-rc.0",
|
||||
"vuepress-webpack": "2.0.0-rc.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"vuepress": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress-vite": {
|
||||
"optional": true
|
||||
},
|
||||
"vuepress-webpack": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vuepress-plugin-redirect/node_modules/yallist": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/vuepress-plugin-rtl": {
|
||||
"version": "2.0.0-rc.0",
|
||||
"resolved": "https://registry.npmjs.org/vuepress-plugin-rtl/-/vuepress-plugin-rtl-2.0.0-rc.0.tgz",
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
"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.0",
|
||||
"vuepress-theme-hope": "^2.0.0-rc.0"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user