File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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+
3035intersphinx_mapping = {
3136 'python' : ('https://docs.python.org/3' , None ),
3237 'numpy' : ('https://numpy.org/doc/stable' , None ),
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments