ys2843 commented on a change in pull request #19190:
URL: https://github.com/apache/incubator-mxnet/pull/19190#discussion_r491651187
##########
File path: ci/docker/runtime_functions.sh
##########
@@ -1173,18 +1173,21 @@ build_c_docs() {
build_docs() {
pushd docs/_build
tar -xzf jekyll-artifacts.tgz
- api_folder='html/api'
+ BRANCH=$(git branch --show-current)
+ python_doc_folder="html/versions/$BRANCH"
+
# Python has it's own landing page/site so we don't put it in /docs/api
- mkdir -p $api_folder/python/docs && tar -xzf python-artifacts.tgz
--directory $api_folder/python/docs
+ mkdir -p $python_doc_folder/python/docs && tar -xzf python-artifacts.tgz
--directory $python_doc_folder/python/docs
GZIP=-9 tar -zcvf full_website.tgz -C html .
popd
}
build_docs_beta() {
pushd docs/_build
tar -xzf jekyll-artifacts.tgz
- api_folder='html/api'
- mkdir -p $api_folder/python/docs && tar -xzf python-artifacts.tgz
--directory $api_folder/python/docs
+ BRANCH=$(git branch --show-current)
Review comment:
looks like `--show-current` breaks the `prepare` process
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]