Files
SSAUGenerator/docx
StepanovPlaton d374c26b09 Fix DOCX headings, captions and page breaks; polish PPTX layout
- docx: zero paragraph indent for centered headings/captions/figure notes
  so they no longer shift right (empty <w:ind/> inherited 709 twips)
- docx: use pageBreakBefore instead of a separate break paragraph; drop
  the merger page break to remove the blank page after the title page
- docx: heading numbers separated by space instead of tab
- docx: bullet marker is the Symbol dash U+F02D
- pptx: narrower slide number moved left and bold; content title lower;
  section title on the right half like title/final
2026-10-12 01:01:51 +04:00
..
2026-10-08 06:50:30 +04:00

SSAU Generator DOCX

Генератор отчётов DOCX из Markdown по дизайну СТО 02068410-004-2018. Содержимое задаётся Markdown-файлами и config.yaml проекта; путь выходного файла — ключ document.output.

Полная инструкция по работе с документом: AGENTS.md — CLI, схема конфига, формат контента, директивы и PlantUML.

Быстрый старт

node docx/src/cli.js --content content/example/docx --check   # проверка
node docx/src/cli.js --content content/example/docx           # собрать report.docx

Разработка

npm install
npm run generate   # локальная сборка (node src/cli.js)
npm run check      # проверка конфига и ссылок
npm run init       # создать шаблон проекта

Структура кода: src/cli.js (точка входа), src/config/ (дефолты, загрузка и валидация config.yaml, шаблон), src/markdown/ (markdown-it и директивы), src/render/ (сборка DOCX), src/plantuml/ (рендеринг схем).