From 382815495ca3b718735766a34198f5fa0c4a327a Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 9 Jul 2026 22:42:51 +0100 Subject: [PATCH 1/2] docs: shared PyAuto brand layer for the Furo docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: #7c4dff / #9d7aff (purple). Sphinx warning count unchanged vs baseline; docs CI (phase A) guards it. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GziFkivBHz1d11eFYUszmy --- docs/conf.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 7549d313e..ea4e8def2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -124,11 +124,18 @@ language = "en" +html_static_path = ["_static"] +html_css_files = ["pyauto.css"] + html_theme_options = { "light_css_variables": { - "color-brand-primary": "#7C4DFF", - "color-brand-content": "#7C4DFF", - } + "color-brand-primary": "#7c4dff", + "color-brand-content": "#7c4dff", + }, + "dark_css_variables": { + "color-brand-primary": "#9d7aff", + "color-brand-content": "#9d7aff", + }, } from sphinx.builders.html import StandaloneHTMLBuilder From 2eba5ab2647b4fa5cee2d57d5ee6d8cd18167092 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 10 Jul 2026 08:34:47 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20commit=20pyauto.css=20=E2=80=94=20do?= =?UTF-8?q?cs/=5Fstatic=20was=20gitignored?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docs CI caught the miss on PR #598: .gitignore's docs/_static entry made 'git add -A' silently skip the new stylesheet, so CI built with a dangling html_static_path (135 warnings vs baseline 134). Lift the ignore (as PyAutoFit#1343 did) and commit the asset. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01GziFkivBHz1d11eFYUszmy --- .gitignore | 135 ++++++++++++++++++++-------------------- docs/_static/pyauto.css | 32 ++++++++++ 2 files changed, 99 insertions(+), 68 deletions(-) create mode 100644 docs/_static/pyauto.css diff --git a/.gitignore b/.gitignore index 184ed2074..c06ec098b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,69 +1,68 @@ -.envr -*.ipynb -.projprofile -*.pyc -pip-selfcheck.json -.Python -bin/ -include/ -lib/ -.ipynb_checkpoints -.cache -.idea -.env -.pytest_cache -MultiNest/ -hyper -hyper_galaxies -files -Nonesubplots -scripts -subplots -test_files -scripts/ -subplots/ -multinest -.DS_Store -temp.txt -*.log -*.swp -.coverage -dist/ -PyAutoLens.egg-info/ -autolens.egg-info/ -__pycache__/ -prof/ -config/*.pyc -test/integration/data/ -test/output/ -test/test_files/plotting/ -test/integration/tests/simulate_and_fit/datas/ -output -test/integration/datas/ -search.py -bfg-1.13.0.jar -error.log -workspace/scraps -workspace_jam/ -workspace_amy/ -workspace/runners/cosma/ -workspace/ -test/integration/data_temp/ -autolens/lens/lens_fit/__pycache__ -test/integration/hyper/ -test/integration/image/ -test/data/ -test/unit/data/test_files/ -test_autolens/integration/data_temp/ -test_autolens/dataset/ -.eggs/ -__MACOSX/ - -#docs -docs/_build -docs/_static -docs/_templates -docs/generated -docs/api/generated -autolens_workspace_test/ +.envr +*.ipynb +.projprofile +*.pyc +pip-selfcheck.json +.Python +bin/ +include/ +lib/ +.ipynb_checkpoints +.cache +.idea +.env +.pytest_cache +MultiNest/ +hyper +hyper_galaxies +files +Nonesubplots +scripts +subplots +test_files +scripts/ +subplots/ +multinest +.DS_Store +temp.txt +*.log +*.swp +.coverage +dist/ +PyAutoLens.egg-info/ +autolens.egg-info/ +__pycache__/ +prof/ +config/*.pyc +test/integration/data/ +test/output/ +test/test_files/plotting/ +test/integration/tests/simulate_and_fit/datas/ +output +test/integration/datas/ +search.py +bfg-1.13.0.jar +error.log +workspace/scraps +workspace_jam/ +workspace_amy/ +workspace/runners/cosma/ +workspace/ +test/integration/data_temp/ +autolens/lens/lens_fit/__pycache__ +test/integration/hyper/ +test/integration/image/ +test/data/ +test/unit/data/test_files/ +test_autolens/integration/data_temp/ +test_autolens/dataset/ +.eggs/ +__MACOSX/ + +#docs +docs/_build +docs/_templates +docs/generated +docs/api/generated +autolens_workspace_test/ docs/api/_autosummary diff --git a/docs/_static/pyauto.css b/docs/_static/pyauto.css new file mode 100644 index 000000000..465d218f5 --- /dev/null +++ b/docs/_static/pyauto.css @@ -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; +}