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

pull/70/head
hmol233 2021-06-26 23:22:33 +08:00
parent b7761b31f1
commit 3d5f8bbff5
No known key found for this signature in database
GPG Key ID: D617A9DAB0C992D5
4 changed files with 353 additions and 350 deletions

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 {}

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",

View File

@ -8,12 +8,12 @@
"devDependencies": {
"@types/bootstrap": "^5.0.16",
"@types/jquery": "^3.5.5",
"@vuepress/bundler-vite": "2.0.0-beta.19",
"@vuepress/plugin-back-to-top": "^2.0.0-beta.19",
"@vuepress/plugin-debug": "^2.0.0-beta.19",
"@vuepress/plugin-search": "^2.0.0-beta.19",
"@vuepress/bundler-vite": "^2.0.0-beta.20",
"@vuepress/plugin-back-to-top": "^2.0.0-beta.20",
"@vuepress/plugin-debug": "^2.0.0-beta.20",
"@vuepress/plugin-search": "^2.0.0-beta.20",
"postcss-loader": "^6.1.0",
"prettier": "^2.3.0",
"prettier": "2.3.2",
"sass": "1.35.1",
"sass-loader": "^12.1.0",
"vue-property-decorator": "^9.1.2",

674
yarn.lock

File diff suppressed because it is too large Load Diff