| 1 |
Metadata-Version: 2.4 |
| 2 |
Name: astropy-sphinx-theme |
| 3 |
Version: 3.1 |
| 4 |
Summary: The sphinx theme for Astropy and affiliated packages. |
| 5 |
Author-email: The Astropy Developers <[email protected]> |
| 6 |
License-Expression: BSD-3-Clause |
| 7 |
Project-URL: Homepage, https://github.com/astropy/astropy-sphinx-theme |
| 8 |
Classifier: Intended Audience :: Developers |
| 9 |
Classifier: Operating System :: OS Independent |
| 10 |
Classifier: Programming Language :: Python |
| 11 |
Requires-Python: >=3.10 |
| 12 |
Description-Content-Type: text/x-rst |
| 13 |
License-File: LICENSE.rst |
| 14 |
Requires-Dist: sphinx>6 |
| 15 |
Requires-Dist: sunpy-sphinx-theme>=2.1.1 |
| 16 |
Provides-Extra: test |
| 17 |
Requires-Dist: packaging; extra == "test" |
| 18 |
Requires-Dist: pytest>=9; extra == "test" |
| 19 |
Provides-Extra: docs |
| 20 |
Requires-Dist: sphinx; extra == "docs" |
| 21 |
Dynamic: license-file |
| 22 |
|
| 23 |
Astropy Sphinx Theme(s) |
| 24 |
----------------------- |
| 25 |
|
| 26 |
This is the repository for the default Astropy project documentation |
| 27 |
theme(s). To use this theme, simply install this package then add the |
| 28 |
following line to your documentation's ``conf.py`` file: |
| 29 |
|
| 30 |
.. code:: python |
| 31 |
|
| 32 |
html_theme = 'bootstrap-astropy' |
| 33 |
|
| 34 |
This requires Sphinx 1.6 or later to work properly. For older versions |
| 35 |
of Sphinx, you will need to do: |
| 36 |
|
| 37 |
.. code:: python |
| 38 |
|
| 39 |
import astropy_sphinx_theme |
| 40 |
html_theme_path = astropy_sphinx_theme.get_html_theme_path() |
| 41 |
html_theme = 'bootstrap-astropy' |
| 42 |
|
| 43 |
``bootstrap-astropy`` is the only theme that is currently available, but |
| 44 |
the structure of the package allows more themes to be added in future if |
| 45 |
needed. |
| 46 |
|
| 47 |
Several options for the theme can be set in the ``conf.py`` file: |
| 48 |
|
| 49 |
.. code:: python |
| 50 |
|
| 51 |
html_theme_options = { |
| 52 |
'logotext1': 'packagename', # white, semi-bold |
| 53 |
'logotext2': '', # orange, light |
| 54 |
'logotext3': ':docs', # white, light |
| 55 |
'astropy_project_menubar': True |
| 56 |
} |
| 57 |
|
| 58 |
The ``logotext?`` options can be used to customize the top left logo, while |
| 59 |
the ``astropy_project_menubar`` option can be set to ``True`` for packages |
| 60 |
that are managed by the project itself (this will add links to find out more |
| 61 |
about the Astropy project, about the team, and so on). |
| 62 |
|
| 63 |
.. image:: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main.svg?style=svg |
| 64 |
:target: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main |