@@ -58,6 +58,12 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
58
58
59
59
make download
60
60
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
61
67
62
68
# Step 3.1: Run the post-processing script:
63
69
python .jenkins/post_process_notebooks.py
@@ -109,6 +115,12 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
109
115
done
110
116
set -x
111
117
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
+
112
124
# Step 5: Remove INVISIBLE_CODE_BLOCK from .html/.rst.txt/.ipynb/.py files
113
125
bash $DIR /remove_invisible_code_block_batch.sh docs
114
126
python .jenkins/validate_tutorials_built.py
@@ -117,10 +129,6 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
117
129
7z a worker_${WORKER_ID} .7z docs
118
130
awsv2 s3 cp worker_${WORKER_ID} .7z s3://${BUCKET_NAME} /${COMMIT_ID} /worker_${WORKER_ID} .7z
119
131
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
-
124
132
# Step 2: Wait for all workers to finish
125
133
# Don't actually need to do this because gha will wait
126
134
@@ -129,9 +137,13 @@ elif [[ "${JOB_TYPE}" == "manager" ]]; then
129
137
for (( worker_id= 1 ;worker_id< NUM_WORKERS+ 1 ;worker_id++ )) ; do
130
138
awsv2 s3 cp s3://${BUCKET_NAME} /${COMMIT_ID} /worker_$worker_id .7z worker_$worker_id .7z
131
139
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/* .
133
141
done
134
142
143
+ # Step 1: Generate no-plot HTML pages for all tutorials
144
+ make html-noplot
145
+ cp -r _build/html docs
146
+
135
147
# Step 4: Copy all generated files into docs
136
148
rsync -av docs_with_plot/docs/ docs --exclude=' **aws_distributed_training_tutorial*'
137
149
0 commit comments