1#!/bin/bash 2 3npm i 4set -x 5# Run the Toc 6npm run fix-tocs || exit 1 7 8# setup dist/js with javascript module(s) 9mkdir -p dist dist/js 10cp node_modules/anchor-js/anchor.min.js dist/js 11 12# copy the source .md and other stuff into dist 13cp -vR ../../../docs/ldml/* ./dist/ 14cp tr35.css ./dist/ 15 16# Generate output .html, and zip it all up. 17node archive.js && zip -r tr35.zip dist/*.html dist/images dist/js 18