From 3c7c1a41abaef53b91be10916936f74f6e29fbc7 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Tue, 10 Mar 2026 12:06:34 +0100 Subject: [PATCH] Add Hugo to reference sidebar and warn on missing JSON Hugo was restored in #1948 but only added to `reference.yml` (index listing), not to `_quarto.yml` (sidebar). Without the sidebar entry the page renders without navigation and the reference tables are empty on deploy previews. Also add a warning in `reference.lua` when the sibling JSON file is not found, so silent rendering failures are easier to diagnose. (cherry picked from commit 55db1b976d195feb8e0aff02f61a6e2c23eb4672) --- _quarto.yml | 2 ++ docs/reference/reference.lua | 3 +++ 2 files changed, 5 insertions(+) diff --git a/_quarto.yml b/_quarto.yml index a252cac963..943fa24909 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -522,6 +522,8 @@ website: href: docs/reference/formats/markdown/gfm.qmd - text: "CommonMark" href: docs/reference/formats/markdown/commonmark.qmd + - text: "Hugo" + href: docs/reference/formats/markdown/hugo.qmd - text: "Markua" href: docs/reference/formats/markdown/markua.qmd - section: "Wikis" diff --git a/docs/reference/reference.lua b/docs/reference/reference.lua index 8307bb4005..cd01e0b670 100644 --- a/docs/reference/reference.lua +++ b/docs/reference/reference.lua @@ -39,6 +39,9 @@ function Pandoc(doc) local refJsonPath = stem .. ".json" local refJsonFile = io.open(refJsonPath, "r") + if refJsonFile == nil then + quarto.log.warning("Reference JSON not found: " .. refJsonPath) + end if refJsonFile ~= nil then io.input(refJsonFile) local refJson = io.read("*all")