Over the past few weeks, we compiled an open-source Chinese manufacturing reference repository aligned with China's national industry classification standard GB/T 4754-2017, spanning 31 major categories and 51 industry sub-libraries (714 Markdown files, CC BY 4.0):
- GitHub Repository: https://github.com/life908/china-manufacturing-knowledge-base
- English Index & Per-Industry ZIP Downloads: https://zhizaofde.com/en/kb/
- Author Profile & Notes: https://zhizaofde.com/en/xuwen/
Each industry folder follows a consistent 12-chapter template: industry overview, bilingual glossary, common product parameters, process & cost structure, domestic/export compliance standards, quality inspection checkpoints, quotation logic, export channels, buyer FAQs, cited sources with authority grades (A–D), and practical AI implementation scenarios.
This post walks through three engineering problems we had to solve when publishing the corpus simultaneously to GitHub and a static web reader.
1. Withholding Unverified Numbers Without Breaking Standards or Links
Because the v0.1 draft was compiled with AI-assisted research before full human verification, some internal working notes contained unconfirmed numeric estimates (unit costs, percentages, or thresholds). We refused to publish unverified numbers on the open web.
Instead of editing 700+ files by hand, our export script (导出公开版.py) runs a three-step filter:
- Protect Markdown links first using temporary placeholders so digits inside URLs are never misread.
- Strip standard identifiers (
GB/T,ISO,IEC,UL,ASTM, section numbers) before checking whether a sentence actually contains an unverified numeric claim. - Redact or soften: sentences combining a pending-verification flag with numeric figures are removed (table cells become
"figure withheld pending verification"in Chinese), while internal audit logs and gap checklists are excluded entirely.
2. Rewriting Relative GitHub Links Into Static Web Routes
Inside GitHub, cross-industry references use relative paths like ../lighting/05-standards.md. On a static site, those .md links would 404.
During build time (build.py), we construct an absolute-path-to-URL dictionary across all 51 libraries (README.md → /wiki/<slug>/, chapters → /wiki/<slug>/<chapter-slug>/), rewrite every internal Markdown link while keeping #fragments, and assert zero broken internal links across all 743 generated HTML pages before packaging.
3. Avoiding Cross-Platform Encoding Issues in Per-Industry ZIP Archives
Each industry page lets readers download an offline bundle (a self-contained HTML reader + raw Markdown + LICENSE.txt). Early tests showed that Chinese filenames inside a ZIP archive created on macOS often garble when extracted with Windows Explorer.
The fix is simple: keep ASCII-only folder and file names inside the ZIP archive (e.g., hardware-metal-products/index.html, markdown/01-overview.md) while keeping the friendly localized download name on the HTML <a download="..."> attribute.
Current Status & Limitations
This v0.1 release is explicitly an ongoing draft—every page states its verification boundary and links to GitHub Issues for errata. Next steps include uploading a structured JSONL dataset card to Hugging Face and expanding the bilingual Q&A guides for export factories at https://zhizaofde.com/en/q/.
