Skip to content

📝 docs: keep the logo script out of the built docs - #37

Merged
nstarman merged 1 commit into
mainfrom
docs/exclude-logo-script
Oct 4, 2026
Merged

nstarman merged 1 commit into
mainfrom
docs/exclude-logo-script

Conversation

@nstarman

@nstarman nstarman commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

html_static_path = ["_static"] copies everything in docs/_static/, so the logo generator added in #36 was published alongside the docs as _static/make_logo.py. Harmless, but it isn't part of the site.

exclude_patterns also filters the static copy, so this adds "**/make_logo.py" to it. The **/ is needed: Sphinx's copy_asset matches a top-level static file as ./make_logo.py, which a bare make_logo.py doesn't match.

Checked: a local docs build publishes _static/favicon.svg, which is still the favicon and sidebar logo, and no make_logo.py. pre-commit passes on docs/conf.py.

The same fix was made in cosmology-api/cosmology.api#145, after a review there noticed it.

🤖 Generated with Claude Code

html_static_path copies everything in docs/_static/, so make_logo.py was
published as _static/make_logo.py. exclude_patterns also filters that copy;
the pattern needs the **/ prefix, since Sphinx matches a top-level static
file as ./make_logo.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nstarman nstarman added this to the v0.1 milestone Oct 4, 2026
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.02%. Comparing base (e80213b) to head (6914659).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #37   +/-   ##
=======================================
  Coverage   94.02%   94.02%           
=======================================
  Files           7        7           
  Lines          67       67           
=======================================
  Hits           63       63           
  Misses          4        4           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nstarman
nstarman merged commit 1c679c3 into main Oct 4, 2026
16 checks passed
@nstarman
nstarman deleted the docs/exclude-logo-script branch October 4, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant