|
|
@ -1,18 +1,17 @@
|
|
|
|
const { localTheme } = require("./theme/index");
|
|
|
|
import { localTheme } from "./theme/index";
|
|
|
|
const { loadVersionPlugin } = require("./plugins/vuepress-plugin-loadVersion");
|
|
|
|
import { loadVersionPlugin } from "./plugins/vuepress-plugin-loadVersion";
|
|
|
|
|
|
|
|
import { head, navbarEN, navbarZH, sidebarEN, sidebarZH } from "./configs";
|
|
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
import { activeHeaderLinksPlugin } from "@vuepress/plugin-active-header-links";
|
|
|
|
activeHeaderLinksPlugin,
|
|
|
|
import { copyCodePlugin } from "vuepress-plugin-copy-code2";
|
|
|
|
} = require("@vuepress/plugin-active-header-links");
|
|
|
|
import { docsearchPlugin } from "@vuepress/plugin-docsearch";
|
|
|
|
const { docsearchPlugin } = require("@vuepress/plugin-docsearch");
|
|
|
|
import { redirectPlugin } from "vuepress-plugin-redirect";
|
|
|
|
const { copyCodePlugin } = require("vuepress-plugin-copy-code2");
|
|
|
|
import { defineUserConfig } from "vuepress";
|
|
|
|
const { redirectPlugin } = require("vuepress-plugin-redirect");
|
|
|
|
|
|
|
|
const { searchPlugin } = require("@vuepress/plugin-search");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
export default defineUserConfig({
|
|
|
|
title: "arthas",
|
|
|
|
title: "arthas",
|
|
|
|
description: "arthas user document",
|
|
|
|
description: "arthas user document",
|
|
|
|
head: require("./configs/head"),
|
|
|
|
head,
|
|
|
|
locales: {
|
|
|
|
locales: {
|
|
|
|
"/": {
|
|
|
|
"/": {
|
|
|
|
lang: "zh-CN",
|
|
|
|
lang: "zh-CN",
|
|
|
@ -31,6 +30,9 @@ module.exports = {
|
|
|
|
repo: "alibaba/arthas",
|
|
|
|
repo: "alibaba/arthas",
|
|
|
|
docsDir: "site/docs",
|
|
|
|
docsDir: "site/docs",
|
|
|
|
docsBranch: "master",
|
|
|
|
docsBranch: "master",
|
|
|
|
|
|
|
|
themePlugins: {
|
|
|
|
|
|
|
|
activeHeaderLinks: false,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
locales: {
|
|
|
|
locales: {
|
|
|
|
"/": {
|
|
|
|
"/": {
|
|
|
@ -51,20 +53,19 @@ module.exports = {
|
|
|
|
"这是一个 404 页面",
|
|
|
|
"这是一个 404 页面",
|
|
|
|
"看起来我们进入了错误的链接",
|
|
|
|
"看起来我们进入了错误的链接",
|
|
|
|
],
|
|
|
|
],
|
|
|
|
backToHome: "返回首页",
|
|
|
|
|
|
|
|
openInNewWindow: "在新窗口打开",
|
|
|
|
openInNewWindow: "在新窗口打开",
|
|
|
|
toggleColorMode: "切换颜色模式",
|
|
|
|
toggleColorMode: "切换颜色模式",
|
|
|
|
toggleSidebar: "切换侧边栏",
|
|
|
|
toggleSidebar: "切换侧边栏",
|
|
|
|
navbar: require("./configs/navbar/zh"),
|
|
|
|
navbar: navbarZH,
|
|
|
|
sidebar: require("./configs/sidebar/zh"),
|
|
|
|
sidebar: sidebarZH,
|
|
|
|
sidebarDepth: 0,
|
|
|
|
sidebarDepth: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"/en/": {
|
|
|
|
"/en/": {
|
|
|
|
selectLanguageName: "English",
|
|
|
|
selectLanguageName: "English",
|
|
|
|
selectLanguageText: "Languages",
|
|
|
|
selectLanguageText: "Languages",
|
|
|
|
editLinkText: "Edit this page on GitHub",
|
|
|
|
editLinkText: "Edit this page on GitHub",
|
|
|
|
navbar: require("./configs/navbar/en"),
|
|
|
|
navbar: navbarEN,
|
|
|
|
sidebar: require("./configs/sidebar/en"),
|
|
|
|
sidebar: sidebarEN,
|
|
|
|
sidebarDepth: 0,
|
|
|
|
sidebarDepth: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -82,16 +83,6 @@ module.exports = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
searchPlugin({
|
|
|
|
|
|
|
|
locales: {
|
|
|
|
|
|
|
|
"/": {
|
|
|
|
|
|
|
|
placeholder: "搜索文档",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"/en/": {
|
|
|
|
|
|
|
|
placeholder: "Search Docs",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
redirectPlugin({
|
|
|
|
redirectPlugin({
|
|
|
|
config: (app) => {
|
|
|
|
config: (app) => {
|
|
|
|
const redirects = Object.fromEntries(
|
|
|
|
const redirects = Object.fromEntries(
|
|
|
@ -165,4 +156,4 @@ module.exports = {
|
|
|
|
// Local plugin
|
|
|
|
// Local plugin
|
|
|
|
loadVersionPlugin(),
|
|
|
|
loadVersionPlugin(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
|
|
|
});
|
|
|
|