Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Use toctree titles in the header navbar #915

Merged
merged 1 commit into from Sep 7, 2022

Conversation

12rambau
Copy link
Collaborator

@12rambau 12rambau commented Sep 6, 2022

Fix #911

when building the header navbar titles we were simply using the page title. This title can be overwritten in the toctree directive. In this PR I simply give priority to the overwitten title and use it if set.

Work as expected on my documentation :

before:

after:

Capture d’écran 2022-09-06 à 11 36 19

@12rambau 12rambau marked this pull request as ready for review September 6, 2022 09:37
Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍 nice catch

@choldgraf choldgraf changed the title fix: use the toctree titles in the header navbar ENH: Use toctree titles in the header navbar Sep 7, 2022
@choldgraf choldgraf merged commit 0c0ceae into pydata:main Sep 7, 2022
@12rambau 12rambau deleted the header branch September 7, 2022 09:36
@jarrodmillman jarrodmillman added this to the 0.11 milestone Sep 19, 2022
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.

Top bar no longer respects title overwrites
3 participants