File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# For the full list of built-in configuration values, see the documentation:
44# https://www.sphinx-doc.org/en/master/usage/configuration.html
55import os
6+ import shutil
67import sys
8+ from pathlib import Path
79
810sys .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
You can’t perform that action at this time.
0 commit comments