Skip to content

Commit deb5732

Browse files
committed
Update Makefile to download the json file
Delete the JSON from the main branch
1 parent 5540cd2 commit deb5732

File tree

2 files changed

+8
-2267
lines changed

2 files changed

+8
-2267
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,29 @@ download:
8686
wget https://www.cis.upenn.edu/~jshi/ped_html/PennFudanPed.zip -P $(DATADIR)
8787
unzip -o $(DATADIR)/PennFudanPed.zip -d intermediate_source/data/
8888

89+
download-last-reviewed-json:
90+
curl -o tutorials-review-data.json https://raw.githubusercontent.com/pytorch/tutorials/refs/heads/last-reviewed-data-json/tutorials-review-data.json
91+
8992
docs:
9093
make download
94+
make download-last-reviewed-json
9195
make html
9296
@python insert_last_verified.py $(BUILDDIR)/html
9397
rm -rf docs
9498
cp -r $(BUILDDIR)/html docs
9599
touch docs/.nojekyll
100+
rm -rf tutorials-review-data.json
96101

97102
html-noplot:
98103
$(SPHINXBUILD) -D plot_gallery=0 -b html $(SPHINXOPTS) "$(SOURCEDIR)" "$(BUILDDIR)/html"
99104
# bash .jenkins/remove_invisible_code_block_batch.sh "$(BUILDDIR)/html"
100105
@echo
106+
make download-last-reviewed-json
101107
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
102108
@echo "Running post-processing script to insert 'Last Verified' dates..."
103109
@python insert_last_verified.py $(BUILDDIR)/html
110+
rm -rf tutorials-review-data.json
111+
104112
clean-cache:
105113
make clean
106114
rm -rf advanced beginner intermediate recipes

0 commit comments

Comments
 (0)