non explicit reference to _quarto.yaml #3144
-
I make a lot of use of the _quarto.yaml file to set up general settings. This way, all documents, for example, presentations share the same settings, and I do not have to add the yaml to each file. Though this is very convenient, I do not get why this dependency is implicit. I would rather explicitly refer to the relevant yaml file in the yaml header of a document. Is this possible? That way, I could even share yaml templates with others in my organization. For example through a public URL. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We don't currently support sharing settings via things like URL directly reference in YAML, but you can include external YAML files via: https://quarto.org/docs/projects/quarto-projects.html#metadata-includes In addition, I think it would be worth considering whether it would make sense to create a new format for your document types. This has more overhead than a simple metadata file but will make usage explicit and allow the document to conditionally target that output format. https://quarto.org/docs/extensions/formats.html HTH! |
Beta Was this translation helpful? Give feedback.
-
If I may, Maybe, the solution or a solution would be to have different layer of configuration:
Note on sharing through URL, for reproducibility and security reasons, the settings should be from a local file, even if user has to copy/paste the content or download the file from an URL. Footnotes |
Beta Was this translation helpful? Give feedback.
We don't currently support sharing settings via things like URL directly reference in YAML, but you can include external YAML files via:
https://quarto.org/docs/projects/quarto-projects.html#metadata-includes
In addition, I think it would be worth considering whether it would make sense to create a new format for your document types. This has more overhead than a simple metadata file but will make usage explicit and allow the document to conditionally target that output format.
https://quarto.org/docs/extensions/formats.html
HTH!