Skip to content

Commit 07b0588

Browse files
committed
📚 Add comment about the reason for the folder creation
1 parent 6d8c28d commit 07b0588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pydata_sphinx_theme/pygments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,6 @@ def overwrite_pygments_css(app: Sphinx, exception=None):
9999

100100
# re-write pygments.css
101101
pygments_css = Path(app.builder.outdir) / "_static" / "pygments.css"
102+
# Ensure the _static folder exists for all builders
102103
pygments_css.parent.mkdir(exist_ok=True)
103104
pygments_css.write_text(get_pygments_stylesheet(light_theme, dark_theme))

0 commit comments

Comments
 (0)