Skip to content

Torchvision docs #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions jenkins/pytorch/build_nimbix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@ if [ "$OS" == "LINUX" ]; then
echo "Rebuilding and publishing sphinx docs"
pip install --upgrade pip
pip install --upgrade setuptools

pushd vision/docs
# Make sure it is uninstalled!
pip uninstall -y sphinx_rtd_theme || true
pip uninstall -y sphinx_rtd_theme || true
pip install -r requirements.txt || true
make html
popd

pushd docs
# Make sure it is uninstalled!
pip uninstall -y sphinx_rtd_theme || true
Expand All @@ -261,11 +270,20 @@ if [ "$OS" == "LINUX" ]; then
echo $GITHUB_TOKEN >/tmp/token
git clone https://pytorchbot:[email protected]/pytorch/pytorch.github.io -b master tmp --quiet 2>&1 | grep -v $GITHUB_TOKEN || true
cd tmp

# add pytorch docs
git rm -rf docs/master || true
mv ../build/html docs/master
find docs/master -name "*.html" -print0 | xargs -0 sed -i -E 's/master[[:blank:]]\([[:digit:]]\.[[:digit:]]\.[[:digit:]]+\+[[:xdigit:]]+[[:blank:]]\)/<a href="http:\/\/pytorch.org\/docs\/versions.html">& \&#x25BC<\/a>/g'
git add docs/master || true
git status

# add torchvision docs
git rm -rf docs/torchvision || true
mv ../../vision/build/html docs/torchvision

This comment was marked as off-topic.

git add docs/torchvision || true
git status

git config user.email "[email protected]"
git config user.name "pytorchbot"
git commit -m "auto-generating sphinx docs"
Expand Down