Skip to content
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

"Edit on Github" leads to 404 #2719

Closed
goerz opened this issue Mar 11, 2017 · 3 comments
Closed

"Edit on Github" leads to 404 #2719

goerz opened this issue Mar 11, 2017 · 3 comments

Comments

@goerz
Copy link

goerz commented Mar 11, 2017

Details

Description

Several pages of my documentation are autogenerated with apidoc, e.g. http://qnet.readthedocs.io/en/latest/API/qnet.algebra.abstract_algebra.html These pages still have an "Edit on Github" link at the top. However, since there is no corresponding ReST file in the repository, the link produces a 404 error.

Is there any way to disable the "Edit on Github" link completely? I think the option html_show_sourcelink = False in conf.py does this when I compile the documentation locally, but it appears to be ignored on the RTD server.

@polyzen
Copy link

polyzen commented Mar 11, 2017

Duplicate of #1820?

@goerz
Copy link
Author

goerz commented Mar 11, 2017

Sort of, except that in #1820 the problem is with mixed-up hashes on Github, whereas my issue is for pages where a corresponding ReST file just doesn't exist. But yeah, the two issues are closely related. This can probably be closed, and I'll just add a brief comment on #1820.

In any case, there really should be an option to disable these links.

@goerz
Copy link
Author

goerz commented Mar 11, 2017

As you point out, this is definitely a duplicate of readthedocs/sphinx_rtd_theme#324 Closing here.

@goerz goerz closed this as completed Mar 11, 2017
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

No branches or pull requests

2 participants