Skripte zum Befuellen der Kapitelstruktur aus dem Fortna-Rohmaterial und Aufbau eines vollstaendigen Sphinx/LaTeX-Builds (nur Code/Config/Doku, generierte RST/Bilder/PDFs und Rohmaterial via .gitignore ausgeschlossen). - lib/fortna_inventory.py: Rohmaterial scannen, Sprache+Zielkapitel+Aktion zuordnen, results/fortna_inventory.json schreiben - lib/fortna_convert_chapters.py: 5 Hauptanleitungen volltextig (Text+Bilder) konvertieren, Verzeichnislisten (index.de.rst) fuer uebrige Kapitel - lib/fortna_init_project.py: projekte/fortna/ (anlage.json, overrides, images) - lib/build_index.py: index.rst mit toctrees aus chapters/**/*.de.rst generieren - lib/extract_products.py: Symbolfont-Zeichen (PUA) auf Unicode mappen (clean_pua) - conf.py: Sphinx-Build (lualatex, babel statt polyglossia, iconpackage=none) - bin/: .bat/.sh-Wrapper fuer alle Skripte + build_pdf - doc/: Konzept-Plan (plan_fortna_extraktion.md) und lib-Skript-Uebersicht - requirements.txt: Sphinx + myst-parser ergaenzt Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
# ================================================================
|
|
# Vollstaendiger PDF-Build der Fortna-Dokumentation (DE)
|
|
# 1. index.rst generieren
|
|
# 2. sphinx-build -b latex
|
|
# 3. lualatex (via latexmk)
|
|
# Voraussetzung: chapters/ ist befuellt (fortna_convert_chapters.sh --apply)
|
|
# ================================================================
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/setenv.sh"
|
|
|
|
if [ ! -d "$PROJECT/.venv" ]; then
|
|
echo "FEHLER: .venv nicht gefunden. Bitte zuerst install_py.sh ausfuehren."
|
|
exit 1
|
|
fi
|
|
|
|
source "$PROJECT/.venv/bin/activate" 2>/dev/null || source "$PROJECT/.venv/Scripts/activate"
|
|
|
|
echo ""
|
|
echo "[1/3] index.rst generieren ..."
|
|
python "$PV_LIB/build_index.py"
|
|
|
|
echo ""
|
|
echo "[2/3] LaTeX-Quellen erzeugen (sphinx-build -b latex) ..."
|
|
python -m sphinx -b latex "$PROJECT" "$PROJECT/_build/latex"
|
|
|
|
echo ""
|
|
echo "[3/3] PDF erzeugen (lualatex) ..."
|
|
( cd "$PROJECT/_build/latex" && latexmk -lualatex -interaction=nonstopmode Fortna_Dokumentation_DE.tex )
|
|
|
|
echo ""
|
|
echo "Fertig. PDF: $PROJECT/_build/latex/Fortna_Dokumentation_DE.pdf"
|
|
deactivate
|