-
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathconf.py
More file actions
100 lines (80 loc) · 2.7 KB
/
conf.py
File metadata and controls
100 lines (80 loc) · 2.7 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
92
93
94
95
96
97
98
99
100
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import sys
from pathlib import Path
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'astropy.org'
copyright = '2026, Astropy Community'
author = 'Astropy Community'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
intersphinx_mapping = {
"python": ("https://docs.python.org/3/",
(None, "http://data.astropy.org/intersphinx/python3.inv")),
"astropy": ("https://docs.astropy.org/en/stable", None),
"astropy-dev": ("https://docs.astropy.org/en/latest", None),
}
sys.path.append(Path("exts").absolute().as_posix())
extensions = [
"sphinx.ext.intersphinx",
"myst_parser",
"sphinx_design",
"sphinx_copybutton",
"rawfiles",
]
templates_path = ['_templates']
exclude_patterns = [
'_build',
'Thumbs.db',
'.DS_Store',
'LICENSE.rst',
'README.md',
'CONTRIBUTING.md',
'.tox/**',
]
rawfiles = ["annoucement_banner.html", "roles.json", "affiliated/registry.json"]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'astropy-unified'
html_static_path = ['_static']
html_theme_options = {
"show_prev_next": False,
"sst_is_root": True,
}
html_sidebars = {
"**": [],
}
html_css_files = [
"css/astropy-org.css"
]
html_js_files = [
"js/functions.js",
"https://code.jquery.com/jquery-3.7.1.min.js",
]
html_title = ""
html_favicon = "_static/img/favicon.ico"
################################################################################
# Other Trickery
################################################################################
# We want to get the credits.rst file from astropy core, but not keep it in the repo
from urllib.request import urlretrieve
urlretrieve(
"https://raw.githubusercontent.com/astropy/astropy/refs/heads/main/docs/credits.rst",
filename="credits.rst",
)
# Linkcheck
linkcheck_ignore = [
# These sites blocked CI
r"https://doi\.org/\d+",
"http://joinslack.astropy.org",
"https://www.astrobetter.com/",
"https://numfocus.medium.com/",
# This page has cloudflare captcha on it
"https://aas.org/press/astropy-collaboration-receive-2025-berkeley-prize",
]
linkcheck_anchors = False
linkcheck_timeout = 20
linkcheck_workers = 10