Skip to content

Conversation

choldgraf
Copy link
Collaborator

@choldgraf choldgraf commented Mar 26, 2020

Pages with only one header trigger a bug where the "On this page" text doesn't show up, but the header it self does show up. This changes the template so that the TOC is only injected if there's at least one header

An example of this in action is the changelog page: https://pydata-sphinx-theme.readthedocs.io/en/latest/changelog.html, which has a header, and this shows up in the right TOC, but the "On this page" wording does not.

cc @jorisvandenbossche who I think won't find this controversial either :-)

@jorisvandenbossche jorisvandenbossche merged commit 2bad317 into pydata:master Mar 28, 2020
@jorisvandenbossche
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants