@@ -10,6 +10,9 @@ export LANG=C.UTF-8
10
10
11
11
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
12
12
13
+
14
+ pip install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git@csl/handle_new_sphinx_version#egg=pytorch_sphinx_theme
15
+
13
16
# Update root certificates by installing new libgnutls30
14
17
15
18
# Install pandoc (does not install from pypi)
@@ -57,7 +60,7 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
57
60
export FILES_TO_RUN
58
61
59
62
# Step 3: Run `make docs` to generate HTML files and static files for these tutorialis
60
- pip3 install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
63
+ pip3 install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git@csl/handle_new_sphinx_version #egg=pytorch_sphinx_theme
61
64
make docs
62
65
63
66
# Step 3.1: Run the post-processing script:
@@ -119,7 +122,7 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
119
122
awsv2 s3 cp worker_${WORKER_ID} .7z s3://${BUCKET_NAME} /${COMMIT_ID} /worker_${WORKER_ID} .7z
120
123
elif [[ " ${JOB_TYPE} " == " manager" ]]; then
121
124
# Step 1: Generate no-plot HTML pages for all tutorials
122
- pip3 install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
125
+ pip3 install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git@csl/handle_new_sphinx_version #egg=pytorch_sphinx_theme
123
126
make html-noplot
124
127
cp -r _build/html docs
125
128
@@ -152,11 +155,11 @@ elif [[ "${JOB_TYPE}" == "manager" ]]; then
152
155
if [[ " $COMMIT_SOURCE " == " refs/heads/master" || " $COMMIT_SOURCE " == " refs/heads/main" ]]; then
153
156
git clone https://github.com/pytorch/tutorials.git -b gh-pages gh-pages
154
157
# Clean up directories that contain tutorials
155
-
158
+
156
159
for dir in beginner intermediate prototype recipes advanced distributed vision text audio; do
157
160
rm -rf " gh-pages/$dir "
158
161
done
159
-
162
+
160
163
cp -r docs/* gh-pages/
161
164
pushd gh-pages
162
165
# DANGER! DO NOT REMOVE THE `set +x` SETTING HERE!
0 commit comments