astropy_sphinx_theme/bootstrap_astropy.py
raw| 1 | """Astropy Sphinx Theme""" |
| 2 | |
| 3 | from pathlib import Path |
| 4 | |
| 5 | |
| 6 | # This is kept for backwards compatibility reasons (see __init__.py) |
| 7 | def get_html_theme_path(): |
| 8 | return [str(Path(__file__).resolve().parent)] |
| 9 | |
| 10 | |
| 11 | def setup(app): |
| 12 | app.add_html_theme( |
| 13 | "bootstrap-astropy", |
| 14 | Path(__file__).resolve().parent / "bootstrap-astropy", |
| 15 | ) |
| 16 | |
| 17 | return { |
| 18 | "parallel_read_safe": False, |
| 19 | "parallel_write_safe": False, |
| 20 | } |