Skip to content

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

Closed
pllim opened this issue Apr 4, 2019 · 7 comments
Closed

How do disable "On GitHub" options in RTD footer #5570

pllim opened this issue Apr 4, 2019 · 7 comments
Labels
Feature New feature Needed: design decision A core team decision is required

Comments

@pllim
Copy link
Contributor

pllim commented Apr 4, 2019

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!

@stsewd
Copy link
Member

stsewd commented Apr 4, 2019

I don't think this is possible right now with css, we should put classes to the html tags to make it work.

@stsewd
Copy link
Member

stsewd commented Apr 4, 2019

@pllim
Copy link
Contributor Author

pllim commented Apr 4, 2019

@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?

@stsewd
Copy link
Member

stsewd commented Apr 4, 2019

I believe this should work

.rst-other-versions > dl:nth-child(3) {
   display: none;
}

@pllim
Copy link
Contributor Author

pllim commented Apr 5, 2019

@stsewd , ah, the snippets you posted were meant for the RTD codebase and not downstream in our own project?

@stsewd
Copy link
Member

stsewd commented Apr 5, 2019

You need put it on your project

@stsewd
Copy link
Member

stsewd commented Apr 24, 2019

Closing as duplicated of #3507

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

2 participants