Skip to content

Commit

Permalink
Update versions of Sphinx and its plugins (fatiando#472)
Browse files Browse the repository at this point in the history
Bump versions of Sphinx and its plugins in `environment.yml` and in
`requirements-docs.txt`. Add CSS `dark-light` class to Harmonica logo in
the `index.rst` to make its background transparent even in dark mode.
Remove Harmonica logo in the left panel.
  • Loading branch information
santisoler authored Mar 27, 2024
1 parent eb00981 commit 2d39034
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ doc/_build
doc/api/generated
doc/gallery
doc/sample_data
doc/sg_execution_times.rst
.ipynb_checkpoints
*.egg-info
MANIFEST
Expand Down
4 changes: 3 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
# HTML output configuration
# -----------------------------------------------------------------------------
html_title = f'{project} <span class="project-version">{version}</span>'
html_logo = "_static/harmonica-logo.png"
# Don't use the logo since it gets in the way of the project name and is
# repeated in the front page.
# html_logo = "_static/harmonica-logo.png"
html_favicon = "_static/favicon.png"
html_last_updated_fmt = "%b %d, %Y"
html_copy_source = True
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

.. image:: ./_static/harmonica-logo.svg
:width: 200px
:class: sd-m-auto
:class: sd-m-auto dark-light

**Harmonica** is a Python library for processing and modeling gravity and
magnetic data.
Expand Down
10 changes: 5 additions & 5 deletions env/requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Documentation building requirements
sphinx==4.5.*
sphinx-book-theme==0.2.*
sphinx-gallery==0.10.*
sphinx-design==0.2.*
sphinx==7.2.*
sphinx-book-theme==1.1.*
sphinx-gallery==0.15.*
sphinx-design==0.5.*
sphinx-copybutton==0.5.*
jupyter-sphinx==0.4.*
jupyter-sphinx==0.5.*
ipykernel
boule
pyproj
Expand Down
10 changes: 5 additions & 5 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ dependencies:
- coverage
- boule
# Documentation requirements
- sphinx==4.5.*
- sphinx-book-theme==0.2.*
- sphinx-gallery==0.10.*
- sphinx-design==0.2.*
- sphinx==7.2.*
- sphinx-book-theme==1.1.*
- sphinx-gallery==0.15.*
- sphinx-design==0.5.*
- sphinx-copybutton==0.5.*
- jupyter-sphinx==0.4.*
- jupyter-sphinx==0.5.*
- ipykernel
- pyproj
- matplotlib
Expand Down

0 comments on commit 2d39034

Please sign in to comment.