Public Documentation Scripts
This directory contains helper scripts used for generating and serving the public-facing documentation site rabs-public.
publicpush.js
publicpush.js creates a stripped-down, code-sanitised version of the project documentation and launches it with Docsify.
Usage
node ./scripts/publicpush.js
Process
By default, the script outputs to a sibling directory named rabs-public and will:
- Clean the destination – remove all existing files except the
.gitdirectory. - Copy documentation – replicate every Markdown file while removing source code. Only lines containing the marker
// {K}are retained to provide high-level context. - Generate navigation – create
index.htmland a dynamic_sidebar.mdfor Docsify. - Commit & push – automatically commit any changes in
rabs-publicand push to its remote. - Serve locally – launch the docs site at
http://localhost:3005for quick review.