What problem does it solve?
Converting raw Chinese legal texts into a structured, deployable documentation site involves repetitive formatting, category routing, sidebar configuration, and version management that is error-prone when done by hand.
Core Features & Use Cases
- Automated Normalization: Converts law Markdown files from
.temp/laws_md into classified A/B/C-type deliverables under docs/{category}/{slug}/, formatting articles, headings, attachments, and tables (optionally reading paired Word files for table grids).
- Site Configuration Sync: With
--apply-site, updates category pages, VuePress sidebar entries for multi-part laws, and LAWS_PROGRESS.md collection status and statistics.
- Multi-Version Management: Maintains
versions.json metadata and versions/{effectiveFrom}/ directories for future and historical law versions, with validation and effective-date rotation via npm scripts.
- Use Case: When a newly amended law is published, run the pipeline in preview mode to inspect warnings, then apply it to archive the old text, promote the new version, and rebuild the site.
Quick Start
Normalize the law Markdown files in .temp/laws_md into the Just Laws site, preview the warnings first, then apply the site updates and run the build.