3 ms·
Show HN: One-file docs generator in 478 lines of AWK
I struggled to find a docs generator that isn't itself a whole project to embed Markdown as offline documentation into our product.
Result: a single cross-platform, zero-dependency AWK script that converts Markdown to raw HTML.
478loc, vanilla HTML, web-safe colors, zero JS/CSS/inline styles, frameset navigation, contenteditable for copy & paste.
Demo: https://www.tirreno.com/hellodocs/ https://www.tirreno.com/hellodocs/
Input MD: https://github.com/tirrenotechnologies/hellodocs/ https://github.com/tirrenotechnologies/hellodocs/
Try it: git clone https://github.com/tirrenotechnologies/hellodocs.git https://github.com/tirrenotechnologies/hellodocs.git && cd hellodocs && awk -f hellodocs.awk -v title='Hello, Docs!' README.md