-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Flyout: "On GitHub" section with View
and Edit
buttons
#10742
Comments
Next step here is figuring out if we even want to keep this feature, and if so what's the best way to do it. |
Note that this is related in some way with readthedocs/actions#4 since we require a similar solution there as well. |
I'll also add that the only time I ever find myself clicking on these links in the flyout is when I want to jump to the repo on GitHub, and mostly just for debugging purposes not to view the source file. I always want that link to just go to |
OK. I will close this issue as not planned then. |
The actual flyout has a section called "On GitHub" that shows two links to
View
andEdit
the actual file on GitHub. These are just links to the exact URL for those file undergithub.com/
.This is done via injecting some data in the build process via the
readthedocs-sphinx-ext
: https://github.com/rtfd/readthedocs-sphinx-ext/blob/7c60d1646c12ac0b83d61abfbdd5bcd77d324124/readthedocs_ext/_templates/readthedocs-insert.html.tmpl#L23Keeping in mind this currently work only for Sphinx projects and that we are deprecating this extension, how we can find a reliable way to implement this feature for all the doctools and without having to inject anything in the build process? Do we have to expose this feature in the flyout? Wouldn't be better to rely on the doctool for this since it has all the data to map the source file to the final URL? Note that Read the Docs Sphinx theme already has build-it support for this https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#file-wide-metadata
The text was updated successfully, but these errors were encountered: