These Node.js scripts generate the DOCX versions of the three SAM Protocol documents in the V1 IETF-style visual layout (blue accents, header/footer with borders, blue-bordered callouts, centered title block).
npm install docxFrom the repository root:
node build/build_wp.js # → SAM_Protocol_WhitePaper_v1_0_EN.docx
node build/build_onepager.js # → SAM_Protocol_Normative_OnePager.docx
node build/build_appendix.js # → SAM_Protocol_Technical_Appendix.docxEach script writes its output to ../mnt/SAM-PROTOCOL/ by default. Adjust the output paths at the bottom of each script to match your environment.
Once the DOCX files are built, convert them with LibreOffice (headless):
soffice --headless --convert-to pdf SAM_Protocol_WhitePaper_v1_0_EN.docxThese scripts are reference implementations of the V1 visual style, not part of the normative specification. The canonical source of the documents is the Markdown in docs/; the DOCX and PDF are generated artifacts.