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 (v2)

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

pip install sphinx-astropy[v2]

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.9.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

sphinx_astropy-1.9.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-astropy-1.9.0.tar.gz.

File metadata

  • Download URL: sphinx-astropy-1.9.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for sphinx-astropy-1.9.0.tar.gz
Algorithm Hash digest
SHA256 a52fe65ceeb686683803fca3c7ae8963d64867c686d167bb13a0cc57c7bb17a7
MD5 1f7bf94bda42a5b51f196c8efa5f66ea
BLAKE2b-256 2efa6c85ca96d2ea2482d91fe047c2b34f9bc5b9996dece28e554c1ec6fa6c47

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sphinx_astropy-1.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9775ed03e979b57736ca82bcb0334e254914559ad7d91e29e7cbae8430f207c4
MD5 989d625a902b79c7350433ec2aa87079
BLAKE2b-256 6ead768cd92c31cba16aa1a93272717f0750cc786eb3331acdf100afdf70e869

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