Skip to content

Commit

Permalink
Merge pull request #79 from sylvaincom/sylvaincom-improve-doc
Browse files Browse the repository at this point in the history
fix(docs): Move button for notebooks on the side bar
  • Loading branch information
GaelVaroquaux authored Nov 17, 2024
2 parents 749467e + 4dea391 commit 7af0407
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,13 @@ div.docutils.container.index-box {
}
}

/* 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 @@ -74,7 +74,13 @@
"icon": "fa-brands fa-github",
},
],

# 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"]
},
}

# Sphinx-Copybutton configuration
Expand Down

0 comments on commit 7af0407

Please sign in to comment.