Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ test_autofit/config/priors/old

# docs
docs/_build
docs/_static
docs/_templates
docs/generated
docs/api/generated
Expand Down Expand Up @@ -279,7 +278,6 @@ test_autofit/config/priors/old

# docs
docs/_build
docs/_static
docs/_templates
docs/generated
docs/api/generated
Expand Down
32 changes: 32 additions & 0 deletions docs/_static/pyauto.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* PyAuto shared docs brand layer — identical file in PyAutoFit, PyAutoGalaxy,
PyAutoLens (docs/_static/pyauto.css). The per-project accent is set via
Furo's color-brand-* variables in each repo's conf.py; this file carries
the elements common to the whole stack. */

/* The PyAuto family signature: a thin gradient strip across the top of every
docs page, running through the three stack accents (Fit / Galaxy / Lens). */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #c2410c 0%, #0f766e 50%, #7c4dff 100%);
z-index: 1000;
pointer-events: none;
}
@media (prefers-color-scheme: dark) {
body:not([data-theme="light"])::before {
background: linear-gradient(90deg, #f28c38 0%, #2dd4bf 50%, #9d7aff 100%);
}
}
body[data-theme="dark"]::before {
background: linear-gradient(90deg, #f28c38 0%, #2dd4bf 50%, #9d7aff 100%);
}

/* Project wordmark in the sidebar. */
.sidebar-brand-text {
font-weight: 700;
letter-spacing: -0.01em;
}
14 changes: 14 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@

language = "en"

html_static_path = ["_static"]
html_css_files = ["pyauto.css"]

html_theme_options = {
"light_css_variables": {
"color-brand-primary": "#c2410c",
"color-brand-content": "#c2410c",
},
"dark_css_variables": {
"color-brand-primary": "#f28c38",
"color-brand-content": "#f28c38",
},
}

from sphinx.builders.html import StandaloneHTMLBuilder

StandaloneHTMLBuilder.supported_image_types = ["image/gif", "image/png", "image/jpeg"]
Expand Down
Loading