Skip to content

Commit

Permalink
MAINT move sphinx gallery download and try buttons on the left side b…
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre authored Sep 4, 2024
1 parent af3fb77 commit c7ca807
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,14 @@ a.sk-btn-orange {
a.sk-btn-orange:hover {
background-color: #fcb575; /* --sk-orange-tint-3 */
}

/* Download/laucher links and top hint (sphinx-gallery) */

.sphx-glr-download-link-note,
.binder-badge,
.lite-badge,
.sphx-glr-download-jupyter,
.sphx-glr-download-python,
.sphx-glr-download-zip {
display: none;
}
8 changes: 7 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,13 @@
# "article_footer_items": ["prev-next.html", "test.html", "test.html"],
# "content_footer_items": ["prev-next.html", "test.html", "test.html"],
# "footer_start": ["test.html", "test.html"],
# "secondary_sidebar_items": ["index.html"], # Remove the source buttons
# When specified as a dictionary, the keys should follow glob-style patterns, as in
# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-exclude_patterns
# In particular, "**" specifies the default for all pages
# Use :html_theme.sidebar_secondary.remove: for file-wide removal
"secondary_sidebar_items": {
"**": ["page-toc", "sourcelink", "sg_download_links", "sg_launcher_links"]
},
"switcher": {
"json_url": (
"https://raw.githubusercontent.com/skrub-data/skrub/main/doc/version.json"
Expand Down

0 comments on commit c7ca807

Please sign in to comment.