Skip to content

🐛 fix(setup): remove hard-coded custom.css reference#290

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix-custom-css
Mar 2, 2026
Merged

🐛 fix(setup): remove hard-coded custom.css reference#290
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix-custom-css

Conversation

@gaborbernat
Copy link
Member

@gaborbernat gaborbernat commented Mar 2, 2026

The extension unconditionally registered a custom.css stylesheet via app.add_css_file("custom.css"), but never provided the file itself. 🐛 This caused 404 errors in the browser console for any theme that doesn't happen to ship its own custom.css — which includes popular themes like sphinx_rtd_theme and sphinx_immaterial.

The fix removes the line entirely. The extension has no custom styles to inject, so the call served no purpose.

Fixes #82

@gaborbernat gaborbernat added the bug Something isn't working label Mar 2, 2026
The extension unconditionally added a custom.css stylesheet reference
that it never provided, causing 404 errors on themes that don't ship
their own custom.css.

Fixes tox-dev#82
@gaborbernat gaborbernat merged commit 56ac49d into tox-dev:main Mar 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hard relation to custom.css will lead to 404 when using different theme

1 participant