Skip to content

Commit e9da6fc

Browse files
committed
Updating to ensure proper relative pathing
Removing input to update_timestamps_batch sh file
1 parent 05e3818 commit e9da6fc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.jenkins/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
5757
export FILES_TO_RUN
5858

5959
# Step 2.1: Add timestamps to .py and .rst files in source directories
60-
bash $DIR/update_timestamps_batch.sh .
60+
bash $DIR/update_timestamps_batch.sh
6161

6262
# Step 3: Run `make docs` to generate HTML files and static files for these tutorialis
6363
pip3 install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
@@ -123,7 +123,7 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
123123
elif [[ "${JOB_TYPE}" == "manager" ]]; then
124124

125125
# Step 0.9: Add timestamps to .py and .rst files in source directories
126-
bash $DIR/update_timestamps_batch.sh .
126+
bash $DIR/update_timestamps_batch.sh
127127

128128
# Step 1: Generate no-plot HTML pages for all tutorials
129129
pip3 install -e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme

.jenkins/update_timestamps_batch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ IFS='|' read -r -a file_array <<< "$SPHINX_SHOULD_RUN"
1414

1515
# Loop through each file and update timestamps if it exists
1616
for file in "${file_array[@]}"; do
17-
file="../$file"
17+
file="$DIR/../$file"
1818
if [ -f "$file" ]; then
1919
python "$DIR/update_timestamps.py" "$file"
2020
fi

0 commit comments

Comments
 (0)