Skip to content

Commit 0e49cb8

Browse files
committed
update
1 parent f86f2cc commit 0e49cb8

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.jenkins/build.sh

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
5858

5959
make download
6060
python .jenkins/sphinx_files.py
61+
mkdir docs
62+
cp -r beginner docs
63+
cp -r intermediate docs
64+
cp -r prototype docs
65+
cp -r recipes docs
66+
cp -r advanced docs
6167

6268
# Step 3.1: Run the post-processing script:
6369
python .jenkins/post_process_notebooks.py
@@ -109,6 +115,12 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
109115
done
110116
set -x
111117

118+
mv docs/prototype docs/prototype_source
119+
mv docs/beginner docs/beginner_source
120+
mv docs/advanced docs/advanced_source
121+
mv docs/intermediate docs/intermediate_source
122+
mv docs/recipes docs/recipes_source
123+
112124
# Step 5: Remove INVISIBLE_CODE_BLOCK from .html/.rst.txt/.ipynb/.py files
113125
bash $DIR/remove_invisible_code_block_batch.sh docs
114126
python .jenkins/validate_tutorials_built.py
@@ -117,10 +129,6 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
117129
7z a worker_${WORKER_ID}.7z docs
118130
awsv2 s3 cp worker_${WORKER_ID}.7z s3://${BUCKET_NAME}/${COMMIT_ID}/worker_${WORKER_ID}.7z
119131
elif [[ "${JOB_TYPE}" == "manager" ]]; then
120-
# Step 1: Generate no-plot HTML pages for all tutorials
121-
make html-noplot
122-
cp -r _build/html docs
123-
124132
# Step 2: Wait for all workers to finish
125133
# Don't actually need to do this because gha will wait
126134

@@ -129,9 +137,13 @@ elif [[ "${JOB_TYPE}" == "manager" ]]; then
129137
for ((worker_id=1;worker_id<NUM_WORKERS+1;worker_id++)); do
130138
awsv2 s3 cp s3://${BUCKET_NAME}/${COMMIT_ID}/worker_$worker_id.7z worker_$worker_id.7z
131139
7z x worker_$worker_id.7z -oworker_$worker_id
132-
yes | cp -R worker_$worker_id/docs/* docs_with_plot/docs
140+
yes | cp -R worker_$worker_id/docs/* .
133141
done
134142

143+
# Step 1: Generate no-plot HTML pages for all tutorials
144+
make html-noplot
145+
cp -r _build/html docs
146+
135147
# Step 4: Copy all generated files into docs
136148
rsync -av docs_with_plot/docs/ docs --exclude='**aws_distributed_training_tutorial*'
137149

0 commit comments

Comments
 (0)