Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Empty file added docs/notebooks.md
Empty file.
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ plugins:
- gen-files:
scripts:
- scripts/gen_ref_pages.py
- scripts/copy_notebooks.py
- literate-nav
- mkdocstrings:
handlers:
Expand All @@ -75,6 +76,8 @@ plugins:
include_source: true
execute: true
ignore: ["__init__.py", "utils.py", "gen_logo.py"]
include:
- examples/*.ipynb

nav:
- Home:
Expand All @@ -100,3 +103,6 @@ nav:
- completed-tasks.md
- changelog.md
- conduct.md
- Notebooks:
- notebooks.md
- examples/sparse_finch.ipynb
10 changes: 10 additions & 0 deletions scripts/copy_notebooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import shutil
from pathlib import Path

source_dir = Path("examples")
dest_dir = Path("docs/examples")

dest_dir.mkdir(parents=True, exist_ok=True)

for notebook in source_dir.glob("*.ipynb"):
shutil.copy2(notebook, dest_dir / notebook.name)
Loading