Skip to content

Commit bd11a74

Browse files
committed
copy tutorials
1 parent 9cd1392 commit bd11a74

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/source/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,21 @@
33
# For the full list of built-in configuration values, see the documentation:
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55
import os
6+
import shutil
67
import sys
8+
from pathlib import Path
79

810
sys.path.insert(0, os.path.abspath("../src"))
911

12+
# Copy tutorial notebooks from project root to docs/source/tutorials/
13+
tutorials_source = Path(__file__).parent.parent.parent / "tutorials"
14+
tutorials_dest = Path(__file__).parent / "tutorials"
15+
16+
if tutorials_source.exists():
17+
tutorials_dest.mkdir(exist_ok=True)
18+
for notebook in tutorials_source.glob("*.ipynb"):
19+
shutil.copy2(notebook, tutorials_dest / notebook.name)
20+
1021

1122
# -- Project information -----------------------------------------------------
1223
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

0 commit comments

Comments
 (0)