Skip to main content

Sphinx extensions and configuration specific to the Astropy project

Project description

Zenodo DOI CI Status

This package serves two purposes: it provides a default Sphinx configuration and set of extensions specific to the Astropy project, and it acts as a meta-package by installing all required Sphinx extensions for the core Astropy package and other packages.

Sphinx configuration

The default Sphinx configuration can be imported by putting:

from sphinx_astropy.conf import *

at the top of your conf.py file. You can then override specific settings from this default configuration, such as adding extensions or intersphinx packages. To give a clearer error messages for users, you can instead write:

try:
    from sphinx_astropy.conf import *
except ImportError:
    print('ERROR: the documentation requires the sphinx-astropy package to be installed')
    sys.exit(1)

Dependencies/extensions

Installing sphinx-astropy will automatically install (if not already present):

  • Sphinx

  • astropy-sphinx-theme - the default ‘bootstrap’ theme use by Astropy and a number of affiliated packages. This goes with sphinx_astropy.conf.v1.

  • sphinx-automodapi - an extension that makes it easy to automatically generate API documentation.

  • sphinx-gallery - an extension to generate example galleries

  • numpydoc - an extension to parse docstrings in NumpyDoc format

  • pillow - a package to deal with images, used by some examples in the astropy core documentation.

  • pytest-doctestplus - providing the ‘doctestplus’ extension to skip code snippets in narrative documentation.

pydata-sphinx-theme (confv2)

To use the new pydata-sphinx-theme with sphinx_astropy.conf.v2, you have to install the optional [confv2] dependencies:

pip install sphinx-astropy[confv2]

That would pull in the following as well:

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

sphinx_astropy-1.10.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_astropy-1.10-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_astropy-1.10.tar.gz.

File metadata

  • Download URL: sphinx_astropy-1.10.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sphinx_astropy-1.10.tar.gz
Algorithm Hash digest
SHA256 408aa180d8de0d3cf3c91ce4abd83701b09457b722804b7194e6692e2fe534e2
MD5 61f702f3b73a165e3b74b5e36cda3ef9
BLAKE2b-256 2fd47f653bf677d253bf569e40d19da5effaed9c89d107f8b130d05a88e9dde2

See more details on using hashes here.

File details

Details for the file sphinx_astropy-1.10-py3-none-any.whl.

File metadata

  • Download URL: sphinx_astropy-1.10-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sphinx_astropy-1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 27da035a4154e10a92e04201fc5aad0c582d1b7a58b0d7dd6a705e56bd2fc0f3
MD5 bfb7574670d1e3a1bf7c0bfc813178e7
BLAKE2b-256 9b5f310bca0b125d3e3919708311339a3dd518136b9dd70a8c7d15fa2ad4a86c

See more details on using hashes here.

Supported by

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