-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
How do disable "On GitHub" options in RTD footer #5570
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
Comments
I don't think this is possible right now with css, we should put classes to the html tags to make it work. |
You could still do it with a hacky way using the |
@stsewd , thanks for the quick reply. My HTML/CSS skills are very limited. Can you please elaborate on the hacky option? How do I use it to overwrite the footer? |
I believe this should work .rst-other-versions > dl:nth-child(3) {
display: none;
} |
@stsewd , ah, the snippets you posted were meant for the RTD codebase and not downstream in our own project? |
You need put it on your project |
Closing as duplicated of #3507 |
Details
Expected Result
Want to hide the "On GitHub" options (both View and Edit) in RTD footer (that thingy that let you choose version on bottom right).
Actual Result
Not sure how to disable it. I found the code snippet in your repository but how do I customize the footer?
https://github.com/rtfd/readthedocs.org/blob/50cb9a24045cf29c5719ffb92fd22cfdd54b0f34/readthedocs/restapi/views/footer_views.py#L119-L130
https://github.com/rtfd/readthedocs.org/blob/b02baab55ae4646c4d2be70d3abd6fbb798af0a4/readthedocs/restapi/templates/restapi/footer.html#L79-L89
Thank you for this invaluable service to the open source community!
The text was updated successfully, but these errors were encountered: