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

header links #1

Open
pdurbin opened this issue Nov 6, 2024 · 0 comments
Open

header links #1

pdurbin opened this issue Nov 6, 2024 · 0 comments

Comments

@pdurbin
Copy link
Member

pdurbin commented Nov 6, 2024

The header links are a bit hard to control. Here's how they looks now, as of eb28186, on https://sphinx.dataverse.org

Screenshot 2024-11-06 at 3 49 18 PM

The reason you see these links...

  • Researchers
  • Journals
  • Institutions
  • Developers

... is explained this way:

"The header navigation bar is at the top of each page and contains top-level navigation across pages in your documentation, as well as extra links and components that you can add." -- https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/header-links.html

The top level navigation is coming from here in source/index.md:

```{toctree}
:hidden:
about/index
community/index
best-practices/index
software/index
contact/index
researchers/index
journals/index
institutions/index
developers/index

Plus I added the "Working Groups" link like this in source/config.py:

html_theme_options = {
  "show_prev_next": False,
  "header_links_before_dropdown": 5,
  # see https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/source-buttons.html
  "use_edit_page_button": True,
  "external_links": [
      {"name": "Working Groups", "url": "https://www.gdcc.io/working-groups.html"}
  ]
}

In the old site the heading links are fairly divorced from the the hierarchy of pages:

Screenshot 2024-11-06 at 3 55 31 PM

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

No branches or pull requests

1 participant