-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Help with removing "Edit on Github" option with ReadTheDocs theme #2386
Comments
Sorry, I donkt know how to disable it because the feature is provided by readthedocs building system. So, please contact to https://github.com/rtfd/readthedocs.org or https://github.com/snide/sphinx_rtd_theme. |
Hi,
I've no revision ### after the copyright. If you want to remove the revision in the title bar you can do
You can also have some fun with creating a
Hope this helps. |
@escribis I had already tried The suggestion of using the details below works great when using Sphinx only, but once again, not on readthedocs.org.
readthedocs github suggested the _templates tweaks you've noted above, however, I don't have the experience necessary and am feeling lost. Thanks for your help thus far, anything else you can do would be greatly appreciated. Thanks & Cheers! |
@escribis This is the template I'm using, are you saying I'd copy the source of it, remove the "edit on github" option, which I'm not even sure where it is based on a quick read of it, add this to my local repo and push for RTD to re-build it? https://github.com/snide/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html Thanks! (If I had to guess the line I'd remove it would be this https://github.com/snide/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html#L147) |
@escribis actually, found it in breadcrumbs.html, but using Thank you so much! |
I found myself in your situation where I wanted to remove certain elements from the page. I ended up doing them via javascript. You know if you include def setup(app):
app.add_stylesheet('css/style.css?v=1')
app.add_javascript('js/script.css?v=1') in |
Okay, I figured out the "Edit on Github" portion a while ago and thought I'd share my fixes here for anyone else looking to accomplish this. I've also documented this on my StackOverflow question. Assuming you're using the ReadTheDocs default theme this should work just fine.
References
|
This doesn't work right now because setting |
Just for record, the right way is now documented here: https://docs.readthedocs.io/en/stable/guides/remove-edit-buttons.html And if you want to only hide these links on some pages (e.g. on pages generated by In
On the page which should not have github link, add to the very beginning:
|
Hello,
When using http://readthedocs.org with the ReadTheDocs theme is it possible to remove the following elements? If so, how? I couldn't find anything in the documentation about this, if I overlooked it, please point me in the right direction.
Thanks!
The text was updated successfully, but these errors were encountered: