Skip to content

Commit c6ea2fe

Browse files
committed
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 55db1b9)
1 parent ea6524d commit c6ea2fe

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ website:
522522
href: docs/reference/formats/markdown/gfm.qmd
523523
- text: "CommonMark"
524524
href: docs/reference/formats/markdown/commonmark.qmd
525+
- text: "Hugo"
526+
href: docs/reference/formats/markdown/hugo.qmd
525527
- text: "Markua"
526528
href: docs/reference/formats/markdown/markua.qmd
527529
- section: "Wikis"

docs/reference/reference.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ function Pandoc(doc)
3939
local refJsonPath = stem .. ".json"
4040

4141
local refJsonFile = io.open(refJsonPath, "r")
42+
if refJsonFile == nil then
43+
quarto.log.warning("Reference JSON not found: " .. refJsonPath)
44+
end
4245
if refJsonFile ~= nil then
4346
io.input(refJsonFile)
4447
local refJson = io.read("*all")

0 commit comments

Comments
 (0)