fixed pygments style output location

This commit is contained in:
Daniel Fichtinger 2025-07-03 02:19:28 -04:00
parent 22a0a39d81
commit 49b4242519

View file

@ -100,9 +100,9 @@ class ZonaBuilder:
# write code highlighting stylesheet # write code highlighting stylesheet
if self.config.markdown.syntax_highlighting.enabled: if self.config.markdown.syntax_highlighting.enabled:
pygments_style = zmd.get_style_defs(self.config) pygments_style = zmd.get_style_defs(self.config)
(self.layout.content / "static" / "pygments.css").write_text( pygments_path = self.layout.output / "static" / "pygments.css"
pygments_style util.ensure_parents(pygments_path)
) pygments_path.write_text(pygments_style)
for item in self.item_map.values(): for item in self.item_map.values():
dst = item.destination dst = item.destination
# print(item) # print(item)