Skip to content

Conversation

@santisoler
Copy link
Member

@santisoler santisoler commented Nov 29, 2024

Fix the "Edit on Github" links by removing the _templates/breadcrumbs.html file: Sphinx and the RTD theme can generate those links if the docs are correctly configured. Add "conf_py_path" to the html_context dictionary in Sphinx configuration file, so the links to the source files work correctly. Minor updates on the configuration file to avoid some warnings: remove the language=None and html_theme_path.

Alternative solution to #575

Fix the "Edit on Github" links by removing the
`_templates/breadcrumbs.html` file: Sphinx and the RTD theme can
generate those links if the docs are correctly configured.
Add `"conf_py_path"` to the `html_context` dictionary in Sphinx
configuration file, so the links to the source files work correctly.
Minor updates on the configuration file to avoid some warnings: remove
the `language=None` and `html_theme_path`.
@santisoler
Copy link
Member Author

@lheagy this should fix those links without having to create our own Sphinx extension: RTD is capable of resolving those links out of the box if the configuration is correctly set. I noticed that the breadcrums.html file was overriding those links, using an invalid variable.

@santisoler santisoler merged commit d669b82 into main Dec 4, 2024
1 check failed
@santisoler santisoler deleted the fix-edit-on-github branch December 4, 2024 21:54
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