Skip to content

Commit

Permalink
Merge pull request #328 from bsipocz/HTML_TOC_structure
Browse files Browse the repository at this point in the history
HTML: adding TOC structure to sidebar
  • Loading branch information
bsipocz authored Aug 30, 2024
2 parents d406fe7 + 7a58d1b commit 235d6bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ brings together data, software, and computing so that researchers can focus on s
```{toctree}
---
maxdepth: 2
caption: Tutorial Notebooks
---
forced_photometry/README
Expand All @@ -21,6 +22,7 @@ light_curves/README
```{toctree}
---
maxdepth: 2
caption: User Documentation
---
documentation/README
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ deps =
allowlist_externals =
bash
git
sed

commands =
pip freeze

buildhtml: git clone --depth 1 https://github.com/nasa-fornax/fornax-documentation.git documentation
buildhtml: sphinx-build -b html . _build/html -D nb_execution_mode=off -nT --keep-going
# SED magic to remove the toctree captions from the rendered index page while keeping them in the sidebar TOC
buildhtml: sed -E -i.bak '/caption-text/{N; s/.+caption-text.+\n<ul>/<ul>/; P;D;}' _build/html/index.html
buildhtml: bash -c 'rm _build/html/index.html.bak'

skip_install = true

0 comments on commit 235d6bd

Please sign in to comment.