Imports
Import shared config to reuse settings across projects.
Basic imports
Section titled “Basic imports”Create a shared config file with common settings:
targets: base_target: figczar: /path/to/figczar.lua csl: /path/to/biomed-central.csl bibdb: /path/to/references.bibImport it in your project:
imports: - /path/to/shared/_markmeld.yamlNow you can use {figczar}, {csl}, and {bibdb} in your commands.
Using environment variables
Section titled “Using environment variables”Point to shared config with an environment variable:
imports: - $MARKMELDInheriting from imported targets
Section titled “Inheriting from imported targets”imports: - /path/to/shared/_markmeld.yaml
targets: my_target: inherit_from: base_target data: md_files: content: manuscript.mdImport priority
Section titled “Import priority”Imports are processed in order. Local settings override imported ones.
Relative imports
Section titled “Relative imports”By default, relative paths in imported files are relative to the importing file. To keep paths relative to the imported file:
imports: - these/paths/relative/to/here/_markmeld.yaml
imports_relative: - these/paths/relative/to/there/_markmeld.yamlAvoid nesting relative imports — it gets confusing.