From 49b424251900d02765da41aab492f9e7207e84ba Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 3 Jul 2025 02:19:28 -0400 Subject: [PATCH] fixed pygments style output location --- src/zona/builder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zona/builder.py b/src/zona/builder.py index 0060c61..0e2eb48 100644 --- a/src/zona/builder.py +++ b/src/zona/builder.py @@ -100,9 +100,9 @@ class ZonaBuilder: # write code highlighting stylesheet if self.config.markdown.syntax_highlighting.enabled: pygments_style = zmd.get_style_defs(self.config) - (self.layout.content / "static" / "pygments.css").write_text( - pygments_style - ) + pygments_path = self.layout.output / "static" / "pygments.css" + util.ensure_parents(pygments_path) + pygments_path.write_text(pygments_style) for item in self.item_map.values(): dst = item.destination # print(item)