MPM Documentation Kit v1.3 (CW-034)
MPM Document Standard 1.3, mpmdoc build engine, templates for TN, INS, SOP, BOM, SVY, TAP, DWG, TSB, PRO, SOW and WO (Chinese editions for TN and DWG), glossary, MPM fonts and logos, and the mpm-technical-documents plugin 1.3.0. Worked examples ship in the kit zip on Drive only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NWatTMmqmGatgHjDZvWs5b
This commit is contained in:
143 files changed
+4097
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
# MPM Documentation Kit: one-time setup for building PDFs (macOS / Linux). Safe to run again.
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
PY=$(command -v python3 || true)
|
||||
[ -z "$PY" ] && { echo "Python 3.10+ is required: https://www.python.org/downloads/"; exit 1; }
|
||||
"$PY" -c 'import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)' || { echo "Python 3.10+ is required"; exit 1; }
|
||||
echo "• Python packages"
|
||||
"$PY" -m pip install --user -q -r requirements.txt 2>/dev/null || "$PY" -m pip install -q -r requirements.txt --break-system-packages
|
||||
echo "• Chromium (renders the PDFs)"
|
||||
"$PY" -m playwright install chromium
|
||||
if ! command -v pdftotext >/dev/null; then
|
||||
echo "• poppler (places the revision block)"
|
||||
if command -v brew >/dev/null; then brew install poppler
|
||||
elif command -v apt-get >/dev/null; then sudo apt-get install -y poppler-utils
|
||||
else echo " Install poppler yourself (pdftotext); builds still work without it, but the revision block isn't anchored."; fi
|
||||
fi
|
||||
if [ -d "_EXAMPLES/COMMTRAN PINGO P2.5/source" ]; then
|
||||
echo "• Test build"
|
||||
( cd "_EXAMPLES/COMMTRAN PINGO P2.5/source" && "$PY" build.py >/dev/null ) && echo "Ready. See START_HERE.md."
|
||||
else
|
||||
"$PY" -c "import playwright, fontTools, brotli, PIL" && echo "Ready. See START_HERE.md."
|
||||
fi
|
||||
Reference in new issue
Block a user