Debian Codegraph @

README.rst

raw
1 Astropy Sphinx Theme(s)
2 -----------------------
3
4 .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.20229586.svg
5 :target: https://doi.org/10.5281/zenodo.20229586
6 :alt: Zenodo DOI
7
8 This is the repository for the default Astropy project documentation
9 theme(s). To use this theme, simply install this package then add the
10 following line to your documentation's ``conf.py`` file:
11
12 .. code:: python
13
14 html_theme = 'bootstrap-astropy'
15
16 This requires Sphinx 1.6 or later to work properly. For older versions
17 of Sphinx, you will need to do:
18
19 .. code:: python
20
21 import astropy_sphinx_theme
22 html_theme_path = astropy_sphinx_theme.get_html_theme_path()
23 html_theme = 'bootstrap-astropy'
24
25 ``bootstrap-astropy`` is the only theme that is currently available, but
26 the structure of the package allows more themes to be added in future if
27 needed.
28
29 Several options for the theme can be set in the ``conf.py`` file:
30
31 .. code:: python
32
33 html_theme_options = {
34 'logotext1': 'packagename', # white, semi-bold
35 'logotext2': '', # orange, light
36 'logotext3': ':docs', # white, light
37 'astropy_project_menubar': True
38 }
39
40 The ``logotext?`` options can be used to customize the top left logo, while
41 the ``astropy_project_menubar`` option can be set to ``True`` for packages
42 that are managed by the project itself (this will add links to find out more
43 about the Astropy project, about the team, and so on).
44
45 .. image:: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main.svg?style=svg
46 :target: https://circleci.com/gh/astropy/astropy-sphinx-theme/tree/main