-
-
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
GitHub edit link is aggressively stripped #1788
Comments
The github repo that we link to is the github repo that is set up with the project. I'm curious why this needs to be changed. If your source repo isn't correct, can't you change it on the project? |
Hi Again, sorry for the very late reply.
I don't know if this is working for me. Both the repository url and project homepage (under the RTFD admin) is set to my documentation repository on github, I'd expect the link to point to that. However when I created the RTFD project I used a different name, simple 'esp'. The reason my RTFD project name is different for my repository is because my RTFD site is really for my organisation https://github.com/esp, not that organisations sub repositories. In my case all the sub repos are just implementations of a similar pattern that can be discussed in one documentation site. It appears that that the 'edit in git hub' link is actually inferred from the RTFD project name, not admin settings that point to the doco source repo. I hope this makes sense :) |
It seems what might be happening here is that the |
Thanks for coming back. Not sure what I'll do on my end for now but at least the issues is capture for now. |
I was able to reproduce this, the issue is on the regex that checks the repo url, the |
Hi
I'm trying to override the value of
github_repo
which is used to create the 'edit in git hub' link on the doco site. In my case this value isn't the default (which appears to be that of the RTD project name).I've set
html_context
in myconf.py
to overridegithub_repo
however I see in the build logs that RTD seems to extend this and blow away my changes:I need to override this value as I'm using RTD to host a single doco site for 2 projects (1,2).
I need
github_repo
to beesp.github.io
so it correctly points to the doco src.I think the fix to in rtfd's conf.py may be something like this (assuming it's safe to replace html_context):
Possibly related to #743
Appreciate any help or suggestions on how to fix the link this
Keith
The text was updated successfully, but these errors were encountered: