refactor(i18n): rename vorlagen/ -> templates/, *-vorlage -> *-template
Final German naming cleanup in dev-process: - vorlagen/ -> templates/ - vorlagen-word/ -> templates-word/ - tools/generate_word_vorlagen.sh -> tools/generate_word_templates.sh - *-vorlage.md / *-vorlage.docx -> *-template.md / *-template.docx - Review-Protokoll-vorlage.* -> Review-Minutes-template.* - angebot-vorlage.* -> quote-template.* - angebot-beispiel.html -> quote-example.html All references in README.md, toolstack/toolstack.md, build_word_template.py, and generate_word_templates.sh updated. The master Word style template (slohmaier-doc-template.docx) was already English-named. The dev-process repo is now fully English in both content and structure.
This commit is contained in:
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
# Convert the formal-document Markdown templates to Word .docx
|
||||
# using slohmaier-doc-template.docx as style reference.
|
||||
#
|
||||
# Word is the industry standard for formal release / ISO 9001 audits.
|
||||
# Markdown remains the source of truth; Word is generated from it.
|
||||
#
|
||||
# These templates are converted to Word:
|
||||
set -euo pipefail
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
SRC="$REPO_ROOT/templates"
|
||||
DST="$REPO_ROOT/templates-word"
|
||||
TEMPLATE="$DST/slohmaier-doc-template.docx"
|
||||
|
||||
if [[ ! -f "$TEMPLATE" ]]; then
|
||||
echo "Building base Word template first..."
|
||||
python3 "$REPO_ROOT/tools/build_word_template.py"
|
||||
fi
|
||||
|
||||
# Formal documents (to Word):
|
||||
FORMAL_DOCS=(
|
||||
PID-template
|
||||
PM-Plan-template
|
||||
QA-Plan-template
|
||||
SWE-Plan-template
|
||||
Test-Plan-template
|
||||
Review-Minutes-template
|
||||
Non-Conformity-template
|
||||
MISRA-Deviation-Permit-template
|
||||
MISRA-Deviation-Record-template
|
||||
quote-template
|
||||
)
|
||||
|
||||
mkdir -p "$DST"
|
||||
|
||||
for doc in "${FORMAL_DOCS[@]}"; do
|
||||
if [[ -f "$SRC/$doc.md" ]]; then
|
||||
echo "Converting: $doc.md -> $doc.docx"
|
||||
pandoc "$SRC/$doc.md" \
|
||||
--reference-doc="$TEMPLATE" \
|
||||
--toc \
|
||||
--toc-depth=3 \
|
||||
-o "$DST/$doc.docx"
|
||||
else
|
||||
echo "WARN: $SRC/$doc.md not found, skipping"
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "Done. Word templates at: $DST/"
|
||||
ls -la "$DST/"
|
||||
Reference in New Issue
Block a user