forked from AstarVienna/irdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
91 lines (74 loc) · 2.44 KB
/
conf.py
File metadata and controls
91 lines (74 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- coding: utf-8 -*-
"""Sphinx configuration for the Instrument Reference Database."""
import os
import sys
from pathlib import Path
sys.path.insert(0, os.path.abspath("."))
sys.path.insert(0, os.path.abspath("docs"))
project = "Instrument Reference Database"
copyright = "2024, A* Vienna Software Team"
author = "A* Vienna Software Team"
extensions = [
"sphinx.ext.todo",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"sphinx_copybutton",
"myst_nb",
"sphinx_design",
"docs.source._ext.validation_report",
]
myst_enable_extensions = ["colon_fence"]
todo_include_todos = True
napoleon_numpy_docstring = True
napoleon_use_admonition_for_references = True
source_encoding = "utf-8"
source_suffix = {
".rst": "restructuredtext",
".myst": "myst-nb",
".md": "myst-nb",
".ipynb": "myst-nb",
}
nb_execution_mode = "off"
master_doc = "index"
exclude_patterns = [
"_build",
"docs/ScopeSim_guide.md", # shared include file, not a standalone page
]
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"astropy": ("https://docs.astropy.org/en/stable/", None),
"synphot": ("https://synphot.readthedocs.io/en/latest/", None),
"scopesim": ("https://scopesim.readthedocs.io/en/latest/", None),
"scopesim_templates": ("https://scopesim-templates.readthedocs.io/en/latest/", None),
"pyckles": ("https://pyckles.readthedocs.io/en/latest/", None),
"anisocado": ("https://anisocado.readthedocs.io/en/latest/", None),
}
html_theme = "sphinx_book_theme"
html_theme_options = {
"repository_url": "https://github.com/AstarVienna/irdb",
"use_repository_button": True,
"use_download_button": True,
"home_page_in_toc": True,
}
html_logo = "docs/source/_static/logos/T_favicon.png"
html_favicon = "docs/source/_static/logos/T_favicon.png"
html_sidebars = {
"**": [
"navbar-logo.html",
"search-field.html",
"sbt-sidebar-nav.html",
]
}
html_static_path = ["docs/source/_static"]
html_css_files = ["validation_report.css"]
html_js_files = ["clickable_rows.js"]
def remove_inst_pkgs_symlink():
"""Remove inst_pkgs symlinks."""
for path in list(Path(".").rglob("inst_pkgs")):
if path.is_symlink():
path.unlink()
remove_inst_pkgs_symlink()