adjust docs build steps in makefile (#10727)
This commit is contained in:
parent
78e98a60c4
commit
52f6fc29da
4
Makefile
4
Makefile
|
@ -184,11 +184,13 @@ godocs:
|
|||
build-docs:
|
||||
@cd docs && \
|
||||
while read -r branch path_prefix; do \
|
||||
(git checkout $${branch} && npm install && VUEPRESS_BASE="/$${path_prefix}/" npm run build) ; \
|
||||
echo "building branch $${branch}" ; \
|
||||
(git clean -fdx && git reset --hard && 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
|
||||
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in New Issue