Skip to content

Commit

Permalink
Hide "On Read The Docs" and "On GitHub" sections of the versions tab
Browse files Browse the repository at this point in the history
  • Loading branch information
thibgc committed Mar 26, 2021
1 parent f134c6c commit 66ca909
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/_static/css/lockss.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* See https://docs.readthedocs.io/en/stable/guides/remove-edit-buttons.html#remove-on-section-from-versions-menu */
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(3) {
display: none;
}
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(4) {
display: none;
}
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# See https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html
html_css_files = [
'css/lockss.css',
]

# See https://github.com/readthedocs/readthedocs.org/issues/2569
master_doc = 'index'

Expand Down

0 comments on commit 66ca909

Please sign in to comment.