How do I include metadata-files
in an extension?
#10568
-
DescriptionHello! I'm running into a puzzling issue when trying to create a metadata extension. I have an extension that I'd like to add contributes:
metadata:
project:
output-dir: _mysite
metadata-files:
- draft-list.yml When I render this website, the draft list does not appear to have taken effect. It will work, however, if I adjust project:
type: website
website:
sidebar:
contents:
- index.qmd
- about.qmd
metadata-files:
- draft-list.yml Which suggests the issue is in merging the Minimal example is here: https://github.com/andrewpbray/reprex-metadata-merge The docs on metadata extensions state "Currently, metadata extensions only merge project-level metadata. This limitation will be lifted in the future." I had assumed "project-level metadata" is anything that appears in The real use-case here is the scheduled-docs extension. It has a pre and post render script (that run just fine) that generate a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Looks like quarto-docs also would benefit from this being possible: ![]() |
Beta Was this translation helpful? Give feedback.
-
I haven't investigated this, but my suspicion is the same as yours wrt merging order of metadata. I'm going to create an issue. |
Beta Was this translation helpful? Give feedback.
I haven't investigated this, but my suspicion is the same as yours wrt merging order of metadata. I'm going to create an issue.