From a2e3bb0dd1c297416c64640f47ce290331b3aec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Canouil?= <8896044+mcanouil@users.noreply.github.com> Date: Sun, 26 Jul 2026 19:23:57 +0200 Subject: [PATCH] fix: configure the atelier format instead of replacing it The project declared `format: html`, which replaced the `atelier-html` format set by the project type rather than configuring it. Every format contribution was dropped without a warning: the skip link, focus ring, external-link, ordinal-date and navbar-tooltip scripts were never injected, the language fell back to `en` from `en-GB`, and the extension stylesheet had to be listed by path to come back at all. Declare `atelier-html` instead. The format supplies its own stylesheet again, so the hardcoded path into the extension can go, and the project layer still wins the cascade. --- docs/_quarto.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/_quarto.yml b/docs/_quarto.yml index 9cfe348..66cd0f8 100644 --- a/docs/_quarto.yml +++ b/docs/_quarto.yml @@ -33,20 +33,20 @@ metadata-files: brand: _brand.yml +# The `atelier` project type sets `format: atelier-html`. Declaring `html` +# here would replace that format rather than configure it, silently dropping +# the accessibility scripts, `lang: en-GB`, the colour-scheme handling, and +# the extension stylesheet. The theme lists below extend the format's own, +# which is why the project layer wins the cascade. They are written out twice +# rather than shared through a YAML anchor, which the schema check rejects. format: - html: - # A project `theme` replaces the one contributed by the `atelier` project - # type rather than extending it, so the extension stylesheet is listed - # explicitly before the project layer. The two lists are written out - # rather than shared through a YAML anchor, which the schema check rejects. + atelier-html: theme: light: - brand - - _extensions/mcanouil/atelier/html/theme.scss - assets/stylesheets/theme.scss dark: - brand - - _extensions/mcanouil/atelier/html/theme.scss - assets/stylesheets/theme.scss filters: