Table of Contents
Generate DOCX documents from structured text files.
2. Options
--style-source(required)-
Path to a source DOCX template for style extraction.
--style-mapping-
Path to a style mapping YAML configuration file.
--verbose,-v-
Show parsing progress and element counts.
3. Supported input formats
- YAML (
.yml/.yaml) -
Content array with
elementandtextkeys. - Markdown (
.md) -
Headings (
#), notes (> NOTE), and body text paragraphs.
4. Examples
Generate from YAML:
uniword generate content.yml output.docx --style-source template.dotx
Generate from Markdown:
uniword generate document.md output.docx --style-source template.dotx
With style mapping:
uniword generate content.yml output.docx \
--style-source iso.dotx \
--style-mapping config/style_mappings/iso_publication.yml
Verbose output:
uniword generate content.yml output.docx --style-source template.dotx -v