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
Possible to set "Edit on GitHub" link targets manually? #314
Comments
I'm seeing the same issue with my project which isn't hosted on github. The top link says "View page source" and doesn't link to the specified url (which points to our github mirror). The metadata also makes it to the html header in my case. |
i have the same problem here. i have looked and looked, and it seems possible to set arbitrary locations for that "View page source" link, according to pull request #182 anyways. however, i can't for the life of me figure out where According to #205, it seems it would be possible to abuse the
it would be nice to not be treated like a second-class citizen here, just because our stuff isn't hosted on Github... :) |
ugh... so the problem was that i was running an old version of sphinx-rtd.. the fix was of course to upgrade. I was running version 1.6, and 1.9 fixed the problem for me. the only config that was required was, in the end:
|
@anarcat thank you!! I was trying to accomplish this by overriding the template/block and then injecting custom variables... but this was such an easy fix! |
Someone please close. |
Hi all,
I'm using this theme to generate documentation for my project, and have run into a small issue with the "Edit on GitHub" links. I've been able to get the "Edit on GitHub" links to appear in the documentation, and link to the corresponding rst source for each page. However, I am using autodoc extensively, and the rst files themselves aren't particularly useful. It would be preferable for the "Edit on GitHub" links on each page to simply target the root of my repository. It looks like this is intended to be possible by setting
github_url
in the metadata for each page, by adding:To the header of each rst source file. I see that this metadata does make it into the header of the html file, but the "Edit on Github" links still point to the rst files. Is there some other setting that is necessary in order to set the link targets manually?
Thanks,
Karl Debiec
The text was updated successfully, but these errors were encountered: