From 98937a9aa546749f1d51a42b980b2ce6e0fe85b8 Mon Sep 17 00:00:00 2001 From: Douglas Ezra Morrison Date: Tue, 26 May 2026 09:45:38 -0700 Subject: [PATCH] fix: don't render the macros submodule's .qmd files directly The `macros` submodule supplies macro definitions for include/shortcode use, but its index.qmd / macros-table.qmd were being rendered as standalone site pages. macros-table.qmd uses DT::datatable() (an HTML widget), which errors under the project's PDF format ("Functions that produce HTML output found in document targeting pdf output"), breaking Quarto Publish. Exclude the submodule directory from the project render list (`!macros/`). The files remain available as resources for includes/shortcodes; they're just no longer rendered as pages. Nothing in the qwt site links to them. Co-Authored-By: Claude Opus 4.7 (1M context) --- _quarto-website.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_quarto-website.yml b/_quarto-website.yml index 1748aca..d112d52 100644 --- a/_quarto-website.yml +++ b/_quarto-website.yml @@ -7,6 +7,11 @@ project: - "!README.md" - "!appendix-document-metadata.qmd" - "!references.qmd" + # The `macros` git submodule provides macro definitions for include/ + # shortcode use, not standalone site pages. Don't render its .qmd files + # directly: macros-table.qmd uses DT::datatable() (an HTML widget) that + # errors when the project also renders to PDF. + - "!macros/" website: title: "Quarto Website Template"