Skip to content

Fix GitHub Navbar Button Redirecting to PDF #1155

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

Merged
merged 1 commit into from
Jun 7, 2025

Conversation

cowboycodr
Copy link
Contributor

On nix.dev, the GitHub repository button in the navbar was incorrectly pointing to the generated PDF instead of the repository. This issue was linked to enabling both use_issues_button and use_edit_page_button in the Sphinx Book Theme’s html_theme_options. I'm not entirely sure why disabling these options resolves the redirect, but after removal the button now links correctly to the repo.

This change removes those two options from source/conf.py, restoring the repo button’s default behavior (linking to https://github.com/NixOS/nix.dev).

Changes

  • Delete use_issues_button
  • Delete use_edit_page_button

Both entries are removed from html_theme_options in source/conf.py.

@cowboycodr cowboycodr requested a review from a team as a code owner June 7, 2025 00:02
@fricklerhandwerk fricklerhandwerk merged commit eae4fa1 into NixOS:master Jun 7, 2025
4 checks passed
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