mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-30 02:48:12 +03:00
Remove double build (#563)
* Remove double build The docs are currently built twice, and as a result the docs also appear on https://xtls.github.io/Xray-docs-next/ This doesn't seem necessary and the gh-pages branch of this repo can be deleted. The real gh-pages branch is here: https://github.com/XTLS/XTLS.github.io/tree/gh-pages-next Deleting the gh-pages from this repo will also make clones faster * accidentally removed install step
This commit is contained in:
@@ -15,10 +15,8 @@ import i18nPlugin from "vuepress-plugin-i18n";
|
||||
const __dirname = getDirname(import.meta.url)
|
||||
console.log('>>> __dirname -> ', __dirname)
|
||||
const isProduction = process.env.NODE_ENV === "production";
|
||||
const forMainRepo = process.env.XRAY_DOCS_MAIN_REPO === "true";
|
||||
const useVite = process.env.XRAY_DOCS_USE_VITE === "true";
|
||||
|
||||
console.log("base:", forMainRepo ? "/" : "/Xray-docs-next/");
|
||||
console.log(
|
||||
"bundler:",
|
||||
isProduction && !useVite ? "@vuepress/webpack" : "@vuepress/vite"
|
||||
@@ -52,7 +50,7 @@ export default defineUserConfig(<UserConfig>{
|
||||
componentsDir: path.resolve(__dirname, './theme/components'),
|
||||
}),
|
||||
],
|
||||
base: forMainRepo ? "/" : "/Xray-docs-next/",
|
||||
base: "/",
|
||||
locales: {
|
||||
"/": {
|
||||
lang: "zh-CN",
|
||||
|
||||
Reference in New Issue
Block a user