Skip to content

Commit

Permalink
Fix path to logo in docs (include _static in path) (python-graphbla…
Browse files Browse the repository at this point in the history
…s#400)

* Fix path to logo in docs (include `_static` in path)

* Fix dark mode for docs

- Update and pin pydata-sphinx-theme to 0.13.1
- Remove circle around light/dark theme change icon
- Remove "Show Source" button

---------

Co-authored-by: Jim Kitchen <[email protected]>
  • Loading branch information
eriknw and jim22k authored Mar 10, 2023
1 parent 80a92e7 commit 673650d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
24 changes: 24 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}

.intro-card {
background-color: var(--pst-color-background);
margin-bottom: 30px;
}

Expand Down Expand Up @@ -51,6 +52,29 @@ p.rubric {
border-bottom: none;
}

button.navbar-btn.rounded-circle {
padding: 0.25rem;
}

button.navbar-btn.search-button {
color: var(--pst-color-text-muted);
padding: 0;
}

button.navbar-btn:hover
{
color: var(--pst-color-primary);
}

button.theme-switch-button {
font-size: calc(var(--pst-font-size-icon) - .1rem);
border: none;
}

button span.theme-switch:hover {
color: var(--pst-color-primary);
}

/* Styling for Jupyter Notebook ReST Exports */

.dataframe tbody th, .dataframe tbody td {
Expand Down
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@
html_static_path = ["_static"]
html_theme_options = {
"logo": {
"image_light": "img/logo-name-light.svg",
"image_dark": "img/logo-name-dark.svg",
"image_light": "_static/img/logo-name-light.svg",
"image_dark": "_static/img/logo-name-dark.svg",
},
"github_url": "https://github.com/python-graphblas/python-graphblas",
}
html_show_sourcelink = False

autodoc_member_order = "groupwise"

Expand Down
4 changes: 2 additions & 2 deletions docs/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ dependencies:
- commonmark # For RTD
- nbsphinx
- numpydoc
- pydata-sphinx-theme
- sphinx-panels
- pydata-sphinx-theme=0.13.1
- sphinx-panels=0.6.0

0 comments on commit 673650d

Please sign in to comment.