Chore: upgrade to vuepress@next-beta.11
parent
d8cfaa5536
commit
31dc1094ff
|
@ -3,9 +3,27 @@ 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";
|
||||||
|
|
||||||
|
const isProduction = process.env.NODE_ENV === "production";
|
||||||
|
|
||||||
export default defineUserConfig<DefaultThemeOptions>({
|
export default defineUserConfig<DefaultThemeOptions>({
|
||||||
theme: path.join(__dirname, "./theme"),
|
theme: path.join(__dirname, "./theme"),
|
||||||
plugins: ["@vuepress/back-to-top", "vuepress-plugin-mermaidjs"],
|
plugins: [
|
||||||
|
["@vuepress/back-to-top"],
|
||||||
|
["vuepress-plugin-mermaidjs"],
|
||||||
|
[
|
||||||
|
"@vuepress/plugin-search",
|
||||||
|
{
|
||||||
|
locales: {
|
||||||
|
"/": {
|
||||||
|
placeholder: "Search",
|
||||||
|
},
|
||||||
|
"/zh/": {
|
||||||
|
placeholder: "搜索",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
],
|
||||||
base: "/Xray-docs-next/",
|
base: "/Xray-docs-next/",
|
||||||
locales: {
|
locales: {
|
||||||
"/": {
|
"/": {
|
||||||
|
@ -71,6 +89,7 @@ export default defineUserConfig<DefaultThemeOptions>({
|
||||||
extendsMarkdown: (md) => {
|
extendsMarkdown: (md) => {
|
||||||
md.use(require("markdown-it-footnote"));
|
md.use(require("markdown-it-footnote"));
|
||||||
},
|
},
|
||||||
|
//bundler: isProduction ? "@vuepress/webpack" : "@vuepress/vite",
|
||||||
bundlerConfig: {
|
bundlerConfig: {
|
||||||
chainWebpack: (config) => {
|
chainWebpack: (config) => {
|
||||||
config.module
|
config.module
|
||||||
|
|
|
@ -37,5 +37,5 @@ export default defineComponent({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "~bootstrap/scss/bootstrap";
|
@import "node_modules/bootstrap/scss/bootstrap";
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -59,7 +59,7 @@ export default defineComponent({
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "~bootstrap/scss/bootstrap";
|
@import "node_modules/bootstrap/scss/bootstrap";
|
||||||
|
|
||||||
button.nav-link {
|
button.nav-link {
|
||||||
color: var(--textColor);
|
color: var(--textColor);
|
||||||
|
|
|
@ -25,6 +25,10 @@ html[theme="dark"] {
|
||||||
--dangerBgDarkColor: #{$dangerBgDarkColor};
|
--dangerBgDarkColor: #{$dangerBgDarkColor};
|
||||||
--warningBgDarkColor: #{$warningBgDarkColor};
|
--warningBgDarkColor: #{$warningBgDarkColor};
|
||||||
--miniCodeBgColor: #{$miniCodeBgDarkColor};
|
--miniCodeBgColor: #{$miniCodeBgDarkColor};
|
||||||
|
--search-border-color: #{$miniCodeBgDarkColor};
|
||||||
|
--search-item-focus-bg-color: #{$kbdBackgroundDarkColor};
|
||||||
|
--search-accent-color: #{$accentDarkColor};
|
||||||
|
--search-text-color: #{$textDarkColor};
|
||||||
|
|
||||||
--textColorLighten10: #{lighten($textDarkColor, 7%)};
|
--textColorLighten10: #{lighten($textDarkColor, 7%)};
|
||||||
--textColorLighten25: #{lighten($textDarkColor, 10%)};
|
--textColorLighten25: #{lighten($textDarkColor, 10%)};
|
||||||
|
@ -34,7 +38,7 @@ html[theme="dark"] {
|
||||||
--accentColorLighten30: #{lighten($accentDarkColor, 30%)};
|
--accentColorLighten30: #{lighten($accentDarkColor, 30%)};
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html[theme="light"] {
|
||||||
--accentColor: #{$accentLightColor};
|
--accentColor: #{$accentLightColor};
|
||||||
--textColor: #{$textLightColor};
|
--textColor: #{$textLightColor};
|
||||||
--borderColor: #{$borderLightColor};
|
--borderColor: #{$borderLightColor};
|
||||||
|
@ -56,6 +60,7 @@ html {
|
||||||
--dangerBgDarkColor: #{$dangerBgLightColor};
|
--dangerBgDarkColor: #{$dangerBgLightColor};
|
||||||
--warningBgDarkColor: #{$warningBgLightColor};
|
--warningBgDarkColor: #{$warningBgLightColor};
|
||||||
--miniCodeBgColor: #{$miniCodeBgLightColor};
|
--miniCodeBgColor: #{$miniCodeBgLightColor};
|
||||||
|
--search-accent-color: #{$accentLightColor};
|
||||||
|
|
||||||
--textColorLighten10: #{lighten($textLightColor, 10%)};
|
--textColorLighten10: #{lighten($textLightColor, 10%)};
|
||||||
--textColorLighten25: #{lighten($textLightColor, 20%)};
|
--textColorLighten25: #{lighten($textLightColor, 20%)};
|
||||||
|
|
|
@ -21,3 +21,24 @@
|
||||||
scroll-behavior: auto;
|
scroll-behavior: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
html[theme="dark"] {
|
||||||
|
.search-box {
|
||||||
|
input {
|
||||||
|
background-color: var(--backgroundColor);
|
||||||
|
}
|
||||||
|
.suggestions {
|
||||||
|
background: var(--backgroundColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
html[theme="light"] {
|
||||||
|
.search-box {
|
||||||
|
input {
|
||||||
|
background-color: var(--backgroundColor);
|
||||||
|
}
|
||||||
|
.suggestions {
|
||||||
|
background: var(--backgroundColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -6,15 +6,16 @@
|
||||||
"author": "Arthur Morgan, Project X Community",
|
"author": "Arthur Morgan, Project X Community",
|
||||||
"license": "CC-BY-SA-4.0",
|
"license": "CC-BY-SA-4.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bootstrap": "^5.0.11",
|
"@types/bootstrap": "^5.0.13",
|
||||||
"@types/jquery": "^3.5.5",
|
"@types/jquery": "^3.5.5",
|
||||||
"@vuepress/plugin-back-to-top": "^2.0.0-beta.8",
|
"@vuepress/plugin-back-to-top": "^2.0.0-beta.11",
|
||||||
|
"@vuepress/plugin-search": "^2.0.0-beta.11",
|
||||||
"postcss-loader": "^5.2.0",
|
"postcss-loader": "^5.2.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"sass": "^1.32.8",
|
"sass": "^1.32.12",
|
||||||
"sass-loader": "^11.0.1",
|
"sass-loader": "^11.0.1",
|
||||||
"vue-property-decorator": "^9.1.2",
|
"vue-property-decorator": "^9.1.2",
|
||||||
"vuepress": "^2.0.0-beta.8"
|
"vuepress": "^2.0.0-beta.11"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docs:dev": "vuepress dev docs",
|
"docs:dev": "vuepress dev docs",
|
||||||
|
|
Loading…
Reference in New Issue