Skip to content

Commit

Permalink
MAINT: SED magic to clean up superflous captions from the main document
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Aug 30, 2024
1 parent ff3d9c6 commit 7a58d1b
Showing 1 changed file with 4 additions and 0 deletions.
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 7a58d1b

Please sign in to comment.