Skip to main content

Matplotlib theme for Sphinx

Project description

This is the official Sphinx theme for Matplotlib documentation. It extends the pydata-sphinx-theme project, but adds custom styling and a navigation bar.

When creating a Matplotlib subproject you can include this theme by changing this line in your conf.py file

html_theme = 'mpl_sphinx_theme'

And by including mpl_sphinx_theme as a requirement in your documentation installation.

See the docs/conf.py file for other settings.

There are three main templates that replace the defaults in pydata-sphinx-theme:

navbar_start = mpl_navbar_logo.html
navbar_center = mpl_nav_bar.html
navbar_end = mpl_icon_links.html

Note that the option html_logo need not be specified as it is included in mpl_sphinx_theme/mpl_navbar_logo.html. The logo is stored at mpl_sphinx_theme/static/images/logo2.svg.

To change the top navbar, edit mpl_sphinx_theme/mpl_nav_bar.html

To change the social icons, edit mpl_sphinx_theme/mpl_icon_links.html

To change the style, edit mpl_sphinx_theme/static/css/style.css

Releasing

Manually for now… see the todo below for how we hope to eventually do it automagically.

$ git checkout <commit-hash>
$ git tag -a x.y.z -m 'Version x.y.z'
$ git push upstream main --tags
$ python -m build -s -w
$ twine upload dist/mpl_sphinx_theme-x.y.z*

TODO: This project uses GitHub Actions to automatically push a new release to PyPI whenever a git tag is pushed. For example, to release a new x.y.z version of mpl-sphinx-theme, checkout the commit you would like to release, add a git tag, and push the tag to the main branch of the matplotlib/mpl-sphinx-theme repository:

TODO: After a new release is published on PyPI, a pull request to the mpl-sphinx-theme conda-forge feedstock for the new x.y.z release will automatically be opened by conda-forge bots.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpl_sphinx_theme-3.5.0.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

mpl_sphinx_theme-3.5.0-py3-none-any.whl (50.8 kB view details)

Uploaded Python 3

File details

Details for the file mpl_sphinx_theme-3.5.0.tar.gz.

File metadata

  • Download URL: mpl_sphinx_theme-3.5.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3

File hashes

Hashes for mpl_sphinx_theme-3.5.0.tar.gz
Algorithm Hash digest
SHA256 fce659c2ae3840affbacbc26338de26decf2ea430c153134fe723b58b4e19a46
MD5 ceb5a244af9b76d272d7073729db07a1
BLAKE2b-256 b60520d70af8fbc1a53a4995e83e074d3051563427af67cc92caca8877b68fc3

See more details on using hashes here.

Provenance

File details

Details for the file mpl_sphinx_theme-3.5.0-py3-none-any.whl.

File metadata

  • Download URL: mpl_sphinx_theme-3.5.0-py3-none-any.whl
  • Upload date:
  • Size: 50.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3

File hashes

Hashes for mpl_sphinx_theme-3.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce82de5b7bc69b2b4cac8e2caf97c423e29f444c9dc545a7877dd1a5566cdd1d
MD5 7db8dd2e7420b1993955f655075db1ef
BLAKE2b-256 9993b3041c3fadffd3c74e5baf1684c353239f089a1d2de3ab73ba51f292ecbe

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page