You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really want section headings (e.g. "Analysis" or "Getting started with analysis") to be simply headings in the sidebar, not pages in and of themselves. This holds for all our documentation on RTD, where we often have to create dummy pages with no real content.
Top level section headers (e.g. "HOW TO GUIDES" in the screenshot) are now simply headings for their respective contents, however section headings one level deeper (e.g. "Bioinformatics") are still pages. In my ideal world, clicking "bioinformatics" would behave the same as clicking the "+" icon and result in expansion of pages underneath that (sub-)heading without loading a separate docs page.
Yeah, I hear you about the ideal. Going arbitrary levels deep like that isn't provided for by the RTD Sphinx theme. There's two things I see that we could do here:
Implement the desired sidebar behaviour ourselves by modifying the RTD navigation JS, with the knowledge that it'll be a divergence from both that as well as the way Sphinx models document hierarchies.
Accept the behaviour as good enough and leave it as-is, but instead of making section index pages like "Bioinformatics" a "dummy page with no real content", we could add actual content. :-) I think it'd be very useful to include explanatory material on index pages that discuss the topic and frame the subpages for a reader. We do this already to some degree on the "Sharing analyses" index page, for example.
As @jameshadfield put it here:
According to @tsibley, this is possible: nextstrain/ncov#709 (comment).
The text was updated successfully, but these errors were encountered: