File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ - [ Sparse Finch] ( examples/sparse_finch.ipynb )
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ plugins:
5252 - gen-files :
5353 scripts :
5454 - scripts/gen_ref_pages.py
55+ - scripts/copy_notebooks.py
5556 - literate-nav
5657 - mkdocstrings :
5758 handlers :
@@ -75,6 +76,8 @@ plugins:
7576 include_source : true
7677 execute : true
7778 ignore : ["__init__.py", "utils.py", "gen_logo.py"]
79+ include :
80+ - examples/*.ipynb
7881
7982nav :
8083 - Home :
100103 - completed-tasks.md
101104 - changelog.md
102105 - conduct.md
106+ - Notebooks :
107+ - notebooks.md
Original file line number Diff line number Diff line change 1+ import shutil
2+ from pathlib import Path
3+
4+ source_dir = Path ("examples" )
5+ dest_dir = Path ("docs/examples" )
6+
7+ dest_dir .mkdir (parents = True , exist_ok = True )
8+
9+ for notebook in source_dir .glob ("*.ipynb" ):
10+ shutil .copy2 (notebook , dest_dir / notebook .name )
You can’t perform that action at this time.
0 commit comments