Skip to content

Commit 0574abc

Browse files
committed
update
1 parent 0e49cb8 commit 0574abc

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.jenkins/build.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,8 @@ if [[ "${JOB_TYPE}" == "worker" ]]; then
5656
# Files to run must be accessible to subprocessed (at least to `download_data.py`)
5757
export FILES_TO_RUN
5858

59-
make download
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
59+
# Step 3: Run `make docs` to generate HTML files and static files for these tutorials
60+
make docs
6761

6862
# Step 3.1: Run the post-processing script:
6963
python .jenkins/post_process_notebooks.py

.jenkins/sphinx_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def main() -> None:
77
env = os.environ.copy()
88
for file in files_to_run.split(" "):
99
print(f"Running {file}")
10-
env["GALLERY_PATTERN"] = file
10+
env["RUNTHIS"] = file
1111
subprocess.check_output(["make", "html"], env=env)
1212

1313

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def reset_seeds(gallery_conf, fname):
102102
'examples_dirs': ['beginner_source', 'intermediate_source',
103103
'advanced_source', 'recipes_source', 'prototype_source'],
104104
'gallery_dirs': ['beginner', 'intermediate', 'advanced', 'recipes', 'prototype'],
105-
'filename_pattern': re.compile(SPHINX_SHOULD_RUN),
105+
'filename_pattern': os.getenv("RUNTHIS"),
106106
'promote_jupyter_magic': True,
107107
'backreferences_dir': None,
108108
'first_notebook_cell': ("# For tips on running notebooks in Google Colab, see\n"

0 commit comments

Comments
 (0)