Skip to content

Commit 6231eb0

Browse files
Jammy2211claude
authored andcommitted
docs: shared PyAuto brand layer for the Furo docs
Phase B of the docs middle path (pyautolabs.github.io#1; census PyAutoLabs/PyAutoFit#1341): adds the stack-wide docs/_static/pyauto.css (identical file in PyAutoFit/PyAutoGalaxy/PyAutoLens — the PyAuto family gradient strip and sidebar wordmark styling) and this project's Furo accent via light_css_variables/dark_css_variables: #0f766e / #2dd4bf (teal). Sphinx warning count unchanged vs baseline; docs CI (phase A) guards it. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GziFkivBHz1d11eFYUszmy
1 parent 88445a3 commit 6231eb0

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

docs/_static/pyauto.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* PyAuto shared docs brand layer — identical file in PyAutoFit, PyAutoGalaxy,
2+
PyAutoLens (docs/_static/pyauto.css). The per-project accent is set via
3+
Furo's color-brand-* variables in each repo's conf.py; this file carries
4+
the elements common to the whole stack. */
5+
6+
/* The PyAuto family signature: a thin gradient strip across the top of every
7+
docs page, running through the three stack accents (Fit / Galaxy / Lens). */
8+
body::before {
9+
content: "";
10+
position: fixed;
11+
top: 0;
12+
left: 0;
13+
right: 0;
14+
height: 3px;
15+
background: linear-gradient(90deg, #c2410c 0%, #0f766e 50%, #7c4dff 100%);
16+
z-index: 1000;
17+
pointer-events: none;
18+
}
19+
@media (prefers-color-scheme: dark) {
20+
body:not([data-theme="light"])::before {
21+
background: linear-gradient(90deg, #f28c38 0%, #2dd4bf 50%, #9d7aff 100%);
22+
}
23+
}
24+
body[data-theme="dark"]::before {
25+
background: linear-gradient(90deg, #f28c38 0%, #2dd4bf 50%, #9d7aff 100%);
26+
}
27+
28+
/* Project wordmark in the sidebar. */
29+
.sidebar-brand-text {
30+
font-weight: 700;
31+
letter-spacing: -0.01em;
32+
}

docs/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@
124124

125125
language = "en"
126126

127+
html_static_path = ["_static"]
128+
html_css_files = ["pyauto.css"]
129+
130+
html_theme_options = {
131+
"light_css_variables": {
132+
"color-brand-primary": "#0f766e",
133+
"color-brand-content": "#0f766e",
134+
},
135+
"dark_css_variables": {
136+
"color-brand-primary": "#2dd4bf",
137+
"color-brand-content": "#2dd4bf",
138+
},
139+
}
140+
127141
from sphinx.builders.html import StandaloneHTMLBuilder
128142

129143
StandaloneHTMLBuilder.supported_image_types = ["image/gif", "image/png", "image/jpeg"]

0 commit comments

Comments
 (0)