Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[MXNET-744] Docs build tools update (#11990)
Browse files Browse the repository at this point in the history
[MXNET-744] Docs build tools update (#11990)
  • Loading branch information
aaronmarkham authored and nswamy committed Aug 15, 2018
1 parent da2ce8f commit c220974
Show file tree
Hide file tree
Showing 9 changed files with 1,673 additions and 59 deletions.
11 changes: 7 additions & 4 deletions ci/docker/runtime_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -837,11 +837,14 @@ build_docs() {
pushd .
cd /work/mxnet/docs/build_version_doc
# Parameters are set in the Jenkins pipeline: restricted-website-build
# $1 is the list of branches to build; $2 is the list of tags to display
# $1: the list of branches/tags to build
# $2: the list of tags to display
# So you can build from the 1.2.0 branch, but display 1.2.1 on the site
./build_all_version.sh $1 $2
# $3 is the default version tag for the website; $4 is the base URL
./update_all_version.sh $2 $3 $4
# $3: the fork URL
./build_all_version.sh $1 $2 $3
# $4: the default version tag for the website
# $5: the base URL
./update_all_version.sh $2 $4 $5
cd VersionedWeb
tar -zcvf ../artifacts.tgz .
popd
Expand Down
2 changes: 1 addition & 1 deletion docs/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ core_logic: {
ws('workspace/docs') {
utils.init_git()
timeout(time: max_time, unit: 'MINUTES') {
sh "ci/build.py -p ubuntu_cpu --docker-registry ${env.DOCKER_CACHE_REGISTRY} --docker-build-retries 3 /work/runtime_functions.sh build_docs ${params.tags_to_build} ${params.tag_list} ${params.tag_default} ${params.domain}"
sh "ci/build.py -p ubuntu_cpu --docker-registry ${env.DOCKER_CACHE_REGISTRY} --docker-build-retries 3 /work/runtime_functions.sh build_docs ${params.tags_to_build} ${params.tag_list} ${params.fork} ${params.tag_default} ${params.domain}"
archiveArtifacts 'docs/build_version_doc/artifacts.tgz'
build 'restricted-website-publish'
}
Expand Down
2 changes: 2 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ livehtml:
sphinx-autobuild --ignore "web-data/*" -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

html:
export BUILD_VER=$(BUILD_VER)
@echo "Env var set for BUILD_VER: $(BUILD_VER)"
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
Expand Down
Loading

0 comments on commit c220974

Please sign in to comment.