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 affilited packages.

  • 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.

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

Uploaded Source

Built Distribution

sphinx_astropy-1.8.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sphinx-astropy-1.8.0.tar.gz
Algorithm Hash digest
SHA256 73706f65811fe45192f6379f9a6dc841ad69dc11a162ba421ef66c02783a88ae
MD5 1080a54c73c327fe6511764110b09508
BLAKE2b-256 f453b98b2fe1061ae5a733240c3faca7a56daccee01fb99db10b5ddcaa6c029b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinx_astropy-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 084d692b3c0b8ea1798ecf82a78f1188b7f25a5a11d4aed0a713c2b222ca32ae
MD5 362f043c1074dfcbfa31736edfd54646
BLAKE2b-256 477443f497c066bc0d6b72a94538d2a01b2df463fc60b51ab8e2bd32dea5a83b

See more details on using hashes here.

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