nextstrain / sphinx-theme

A Sphinx theme for Nextstrain's documentation, based on Read The Docs' default theme.
https://docs.nextstrain.org/projects/sphinx-theme/
MIT License
0 stars 5 forks source link

auto expand toctree sections #7

Open eharkins opened 3 years ago

eharkins commented 3 years ago

toctrees define the expandable sections in the sidebar navigation on read the docs. I think it's true in general that we would like these to be expanded by default to reveal the entries within them, rather than them being hidden by default.

See https://github.com/nextstrain/ncov/pull/709#issuecomment-904963501, https://github.com/nextstrain/ncov/pull/709#issuecomment-904276901

tsibley commented 3 years ago

This will be addressed (at least partially), by the change for #8. We'd want to expand only one-level deep, yeah?

eharkins commented 3 years ago

We'd want to expand only one-level deep

That sounds good as a starting point / default.

jameshadfield commented 3 years ago

This issue has been addressed for the main docs project but not yet for the subprojects (e.g. ncov). @tsibley was this achieved by https://github.com/nextstrain/docs.nextstrain.org/commit/7533335cf54266f810c347b9b2ab360e3417d090 ?

tsibley commented 2 years ago

@jameshadfield Yep.