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

Add breadcrumb navigation #680

Open
pradyunsg opened this issue Jul 15, 2023 Discussed in #139 · 1 comment · May be fixed by #843
Open

Add breadcrumb navigation #680

pradyunsg opened this issue Jul 15, 2023 Discussed in #139 · 1 comment · May be fixed by #843
Labels
enhancement New feature or request

Comments

@pradyunsg
Copy link
Owner

Discussed in #139

@pradyunsg pradyunsg added the enhancement New feature or request label Jul 15, 2023
@nineteendo nineteendo linked a pull request Oct 4, 2024 that will close this issue
@bgmeulem
Copy link

bgmeulem commented Oct 15, 2024

I'm starting out with sphinx and custom theming, so I don't feel comfortable filing a PR yet, but this can be achieved with custom templates using something like below.

{% set parent_module = obj.id.split('.')[:-1] | join('.') | escape %}

.. breadcrumb:

{% if parent_module %}
Back to :mod:`{{ parent_module }}`
{% endif %}

.. title:

{{ obj.short_name }}
{{ "=" * obj.short_name | length }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants