Re:Ask HN: What's the best source code you've read?
by tlarkworthy on Sunday September 11, 2022 @06:45AM
(#32798526)
The imports are chunk reuse. Each notebook is an es6 module you can import from any npm package.json
You don't need to export it as documentation, it is executable documentation which is better, though you can print it if you want. The footer backs up the source to github
Your stuck on Knuth's definition of literate programming but this is better than that
Re:Ask HN: What's the best source code you've read?
by aljungberg on Sunday September 11, 2022 @03:45AM
(#32797620)
Sounds like nbdev which indeed exports code and documentation from a single notebook, plus unit tests for external execution.
Have you seen actual literate programming documents? The Noweb tool’s page has examples.