-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
:github_url: as a theme option #529
Comments
You can reproduce this locally by changing your html_context = {
'display_github': True,
'github_user': 'username',
'github_repo': 'reponame',
'github_version': 'master'
} Related to #156. |
@jessetan Thanks a lot. That's exactly what I needed. However, I had to slightly modify it:
Note the subdir after the branch/version, and the trailing slash. I close this, because the question is solved. But you might want to reopen it to keep track of the pending documentation. |
This is a duplicate of #465 |
You don't need to have a slash in I'll add a comment on #465. |
Try to modify RTD theme accordingly readthedocs/sphinx_rtd_theme#465 readthedocs/sphinx_rtd_theme#529
This took me a bit to find out since it's poorly documented: * https://sphinx-rtd-theme.readthedocs.io/en/latest/configuring.html * readthedocs/sphinx_rtd_theme#529 * https://stackoverflow.com/q/62904172/1174102
I am trying to reproduce locally the output I get in RTD (see readthedocs-docker-images#47). According to the README here, it seems that I need to manually add
:github_url:
to each page in order to have 'Edit on GitHub' instead of 'View page source'. I would expect this option to be available as a theme option, so that the same sources produce the same result in RTD and locally.The text was updated successfully, but these errors were encountered: