diff --git a/Makefile b/Makefile index 5ecb52700..cc4c8cb97 100644 --- a/Makefile +++ b/Makefile @@ -188,12 +188,12 @@ DESTINATION = ./index.html.md ############################################################################### build-docs: - cd docs && \ - while read p; do \ - (git checkout $${p} . && npm install && VUEPRESS_BASE="/$${p}/" npm run build) ; \ - mkdir -p ~/output/$${p} ; \ - cp -r .vuepress/dist/* ~/output/$${p}/ ; \ - cp ~/output/$${p}/index.html ~/output ; \ + @cd docs && \ + while read -r branch path_prefix; do \ + (git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \ + mkdir -p ~/output/$${path_prefix} ; \ + cp -r .vuepress/dist/* ~/output/$${path_prefix}/ ; \ + cp ~/output/$${path_prefix}/index.html ~/output ; \ done < versions ; .PHONY: build-docs diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 6f0ce077c..24f1afec1 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -160,5 +160,5 @@ module.exports = { ga: 'UA-51029217-11' } ] - ], + ] }; diff --git a/docs/package.json b/docs/package.json index 57ac60d0a..f8d241372 100644 --- a/docs/package.json +++ b/docs/package.json @@ -6,6 +6,9 @@ "dependencies": { "vuepress-theme-cosmos": "^1.0.173" }, + "devDependencies": { + "watchpack": "^1.6.1" + }, "scripts": { "preserve": "./pre.sh", "serve": "trap 'exit 0' SIGINT; vuepress dev --no-cache", diff --git a/docs/versions b/docs/versions index 1e6a12928..3a065dfeb 100644 --- a/docs/versions +++ b/docs/versions @@ -1,3 +1,3 @@ -v0.32 -v0.33 -master +master master +v0.32 v0.32 +cyrus/0.33-version v0.33 \ No newline at end of file