mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-19 01:01:41 +03:00
Upgrade: Bump vuepress from 2.0.0-beta.19 to 2.0.0-beta.20
This commit is contained in:
parent
b7761b31f1
commit
3d5f8bbff5
@ -3,6 +3,11 @@ import type { DefaultThemeOptions } from "@vuepress/theme-default";
|
|||||||
import * as sidebar from "./config/sidebar";
|
import * as sidebar from "./config/sidebar";
|
||||||
import * as navbar from "./config/navbar";
|
import * as navbar from "./config/navbar";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
|
import { ThemeConfig } from "@vuepress/core";
|
||||||
|
import {
|
||||||
|
DefaultThemeLocaleOptions,
|
||||||
|
DefaultThemePluginsOptions,
|
||||||
|
} from "@vuepress/theme-default/lib/shared";
|
||||||
|
|
||||||
const isProduction = process.env.NODE_ENV === "production";
|
const isProduction = process.env.NODE_ENV === "production";
|
||||||
|
|
||||||
@ -49,7 +54,6 @@ export default defineUserConfig<DefaultThemeOptions>({
|
|||||||
},
|
},
|
||||||
locales: {
|
locales: {
|
||||||
"/": {
|
"/": {
|
||||||
ToggleText: "切换主题",
|
|
||||||
repoLabel: "查看源码",
|
repoLabel: "查看源码",
|
||||||
editLinkText: "帮助我们改善此页面!",
|
editLinkText: "帮助我们改善此页面!",
|
||||||
tip: "提示",
|
tip: "提示",
|
||||||
@ -89,7 +93,6 @@ export default defineUserConfig<DefaultThemeOptions>({
|
|||||||
navbar: navbar.hans,
|
navbar: navbar.hans,
|
||||||
},
|
},
|
||||||
"/en/": {
|
"/en/": {
|
||||||
ToggleText: "Toggle Theme",
|
|
||||||
repoLabel: "Source",
|
repoLabel: "Source",
|
||||||
selectLanguageName: "English (WIP)",
|
selectLanguageName: "English (WIP)",
|
||||||
// TODO: translation
|
// TODO: translation
|
||||||
@ -148,3 +151,5 @@ export default defineUserConfig<DefaultThemeOptions>({
|
|||||||
},
|
},
|
||||||
//postcss: { plugins: [require("autoprefixer")] }
|
//postcss: { plugins: [require("autoprefixer")] }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
interface DocsThemeConfig extends ThemeConfig, DefaultThemeLocaleOptions {}
|
||||||
|
@ -11,7 +11,6 @@ export function getConfigSidebar(
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: feature,
|
text: feature,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "features/vless.md",
|
path + "features/vless.md",
|
||||||
path + "features/xtls.md",
|
path + "features/xtls.md",
|
||||||
@ -22,7 +21,6 @@ export function getConfigSidebar(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: config,
|
text: config,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "",
|
path + "",
|
||||||
path + "log.md",
|
path + "log.md",
|
||||||
@ -40,7 +38,6 @@ export function getConfigSidebar(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: inbound,
|
text: inbound,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "inbounds/",
|
path + "inbounds/",
|
||||||
path + "inbounds/dokodemo.md",
|
path + "inbounds/dokodemo.md",
|
||||||
@ -54,7 +51,6 @@ export function getConfigSidebar(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: outbound,
|
text: outbound,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "outbounds/",
|
path + "outbounds/",
|
||||||
path + "outbounds/blackhole.md",
|
path + "outbounds/blackhole.md",
|
||||||
@ -70,7 +66,6 @@ export function getConfigSidebar(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: transport,
|
text: transport,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "transports/",
|
path + "transports/",
|
||||||
path + "transports/grpc.md",
|
path + "transports/grpc.md",
|
||||||
@ -91,7 +86,6 @@ export function getDocumentLv0Sidebar(
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: title,
|
text: title,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "ch01-preface.md",
|
path + "ch01-preface.md",
|
||||||
path + "ch02-preparation.md",
|
path + "ch02-preparation.md",
|
||||||
@ -114,7 +108,6 @@ export function getDocumentLv1Sidebar(
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: title,
|
text: title,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "fallbacks-lv1.md",
|
path + "fallbacks-lv1.md",
|
||||||
path + "routing-lv1-part1.md",
|
path + "routing-lv1-part1.md",
|
||||||
@ -133,7 +126,6 @@ export function getDocumentLv2Sidebar(
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: title,
|
text: title,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "transparent_proxy/transparent_proxy.md",
|
path + "transparent_proxy/transparent_proxy.md",
|
||||||
path + "tproxy.md",
|
path + "tproxy.md",
|
||||||
@ -152,14 +144,12 @@ export function getDevelopmentSidebar(
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: title,
|
text: title,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "intro/compile.md",
|
path + "intro/compile.md",
|
||||||
path + "intro/design.md",
|
path + "intro/design.md",
|
||||||
path + "intro/guide.md",
|
path + "intro/guide.md",
|
||||||
{
|
{
|
||||||
text: protocols,
|
text: protocols,
|
||||||
isGroup: true,
|
|
||||||
children: [
|
children: [
|
||||||
path + "protocols/vless.md",
|
path + "protocols/vless.md",
|
||||||
path + "protocols/vmess.md",
|
path + "protocols/vmess.md",
|
||||||
|
10
package.json
10
package.json
@ -8,12 +8,12 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bootstrap": "^5.0.16",
|
"@types/bootstrap": "^5.0.16",
|
||||||
"@types/jquery": "^3.5.5",
|
"@types/jquery": "^3.5.5",
|
||||||
"@vuepress/bundler-vite": "2.0.0-beta.19",
|
"@vuepress/bundler-vite": "^2.0.0-beta.20",
|
||||||
"@vuepress/plugin-back-to-top": "^2.0.0-beta.19",
|
"@vuepress/plugin-back-to-top": "^2.0.0-beta.20",
|
||||||
"@vuepress/plugin-debug": "^2.0.0-beta.19",
|
"@vuepress/plugin-debug": "^2.0.0-beta.20",
|
||||||
"@vuepress/plugin-search": "^2.0.0-beta.19",
|
"@vuepress/plugin-search": "^2.0.0-beta.20",
|
||||||
"postcss-loader": "^6.1.0",
|
"postcss-loader": "^6.1.0",
|
||||||
"prettier": "^2.3.0",
|
"prettier": "2.3.2",
|
||||||
"sass": "1.35.1",
|
"sass": "1.35.1",
|
||||||
"sass-loader": "^12.1.0",
|
"sass-loader": "^12.1.0",
|
||||||
"vue-property-decorator": "^9.1.2",
|
"vue-property-decorator": "^9.1.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user