Upgrade: Bump vuepress from 2.0.0-beta.19 to 2.0.0-beta.20

This commit is contained in:
hmol233
2021-06-26 23:22:33 +08:00
parent b7761b31f1
commit 3d5f8bbff5
4 changed files with 353 additions and 350 deletions
+7 -2
View File
@@ -3,6 +3,11 @@ import type { DefaultThemeOptions } from "@vuepress/theme-default";
import * as sidebar from "./config/sidebar";
import * as navbar from "./config/navbar";
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";
@@ -49,7 +54,6 @@ export default defineUserConfig<DefaultThemeOptions>({
},
locales: {
"/": {
ToggleText: "切换主题",
repoLabel: "查看源码",
editLinkText: "帮助我们改善此页面!",
tip: "提示",
@@ -89,7 +93,6 @@ export default defineUserConfig<DefaultThemeOptions>({
navbar: navbar.hans,
},
"/en/": {
ToggleText: "Toggle Theme",
repoLabel: "Source",
selectLanguageName: "English (WIP)",
// TODO: translation
@@ -148,3 +151,5 @@ export default defineUserConfig<DefaultThemeOptions>({
},
//postcss: { plugins: [require("autoprefixer")] }
});
interface DocsThemeConfig extends ThemeConfig, DefaultThemeLocaleOptions {}
-10
View File
@@ -11,7 +11,6 @@ export function getConfigSidebar(
return [
{
text: feature,
isGroup: true,
children: [
path + "features/vless.md",
path + "features/xtls.md",
@@ -22,7 +21,6 @@ export function getConfigSidebar(
},
{
text: config,
isGroup: true,
children: [
path + "",
path + "log.md",
@@ -40,7 +38,6 @@ export function getConfigSidebar(
},
{
text: inbound,
isGroup: true,
children: [
path + "inbounds/",
path + "inbounds/dokodemo.md",
@@ -54,7 +51,6 @@ export function getConfigSidebar(
},
{
text: outbound,
isGroup: true,
children: [
path + "outbounds/",
path + "outbounds/blackhole.md",
@@ -70,7 +66,6 @@ export function getConfigSidebar(
},
{
text: transport,
isGroup: true,
children: [
path + "transports/",
path + "transports/grpc.md",
@@ -91,7 +86,6 @@ export function getDocumentLv0Sidebar(
return [
{
text: title,
isGroup: true,
children: [
path + "ch01-preface.md",
path + "ch02-preparation.md",
@@ -114,7 +108,6 @@ export function getDocumentLv1Sidebar(
return [
{
text: title,
isGroup: true,
children: [
path + "fallbacks-lv1.md",
path + "routing-lv1-part1.md",
@@ -133,7 +126,6 @@ export function getDocumentLv2Sidebar(
return [
{
text: title,
isGroup: true,
children: [
path + "transparent_proxy/transparent_proxy.md",
path + "tproxy.md",
@@ -152,14 +144,12 @@ export function getDevelopmentSidebar(
return [
{
text: title,
isGroup: true,
children: [
path + "intro/compile.md",
path + "intro/design.md",
path + "intro/guide.md",
{
text: protocols,
isGroup: true,
children: [
path + "protocols/vless.md",
path + "protocols/vmess.md",