Sphinx extensions and configuration specific to the Astropy project
Project description
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):
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:
pydata-sphinx-theme - a clean, three-column, Bootstrap-based Sphinx theme by and for the PyData community.
sphinx-copybutton - a small Sphinx extension to add a “copy” button to code blocks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx-astropy-1.9.1.tar.gz
.
File metadata
- Download URL: sphinx-astropy-1.9.1.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7931c795f445caee38f98754afd75fe7393db7df2c4dcc860f94a011fb162454 |
|
MD5 | da84468f9a8395216a22f8bdf292d43b |
|
BLAKE2b-256 | 18ee957984621943eaa47497be959cc6695ae775745525e5fe9d4ff8174678cc |
File details
Details for the file sphinx_astropy-1.9.1-py3-none-any.whl
.
File metadata
- Download URL: sphinx_astropy-1.9.1-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a6be6addb511c3d83647763608ef4fb9254dbc25ae04504837b3b1139c4b130 |
|
MD5 | 17a3461855bed0edf37e84796f11cfd2 |
|
BLAKE2b-256 | 4add1487887b8fc3be42fb0cf896f4683ea1d21035485407498e5c1d51325987 |