Skip to content

Commit ce5e02e

Browse files
let claude add tht tutorials
1 parent 013f1ec commit ce5e02e

5 files changed

Lines changed: 36 additions & 3 deletions

File tree

.github/workflows/static.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@ jobs:
1818
with:
1919
python-version: '3.x'
2020

21+
- name: Install pandoc
22+
run: sudo apt-get install -y pandoc
23+
2124
- name: Install dependencies
2225
run: |
2326
python -m pip install --upgrade pip
24-
pip install sphinx sphinx-rtd-theme sphinx-autodoc-typehints furo
27+
pip install sphinx sphinx-rtd-theme sphinx-autodoc-typehints furo nbsphinx
2528
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2629
pip install . # Install the local package to make it importable
27-
30+
31+
- name: Copy tutorial notebooks from examples
32+
run: cp examples/*.ipynb docs/source/tutorials/
33+
2834
- name: Build Sphinx Documentation
2935
run: |
3036
sphinx-build -b html docs/source docs/build/html

docs/source/api.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ API Reference
1010
netmap.model
1111
netmap.grn
1212
netmap.masking
13-
netmap.downstream
13+
netmap.downstream.clustering
14+
netmap.downstream.edge_selection
15+
netmap.downstream.gene_clustering
16+
netmap.downstream.markers
17+
netmap.downstream.plotting
18+
netmap.downstream.regulon
1419
netmap.utils

docs/source/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525
'sphinx.ext.viewcode',
2626
'sphinx.ext.intersphinx',
2727
'sphinx_autodoc_typehints',
28+
'nbsphinx',
2829
]
2930

31+
# Never re-execute notebooks during the Sphinx build.
32+
# Notebooks must be pre-run (outputs saved) before committing.
33+
nbsphinx_execute = 'never'
34+
3035
intersphinx_mapping = {
3136
'python': ('https://docs.python.org/3', None),
3237
'numpy': ('https://numpy.org/doc/stable', None),

docs/source/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ Installation
3737
# pip — GPU dependencies must be added manually
3838
pip install -e .
3939
40+
.. toctree::
41+
:maxdepth: 1
42+
:caption: Tutorials
43+
44+
tutorials/index
45+
4046
.. toctree::
4147
:maxdepth: 4
4248
:caption: API Reference

docs/source/tutorials/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Tutorials
2+
=========
3+
4+
Step-by-step notebooks demonstrating the full NETMAP pipeline.
5+
6+
.. toctree::
7+
:maxdepth: 1
8+
:caption: Tutorials
9+
10+
1-preprocess-data
11+
3-downstream

0 commit comments

Comments
 (0)