It's hard to know what to suggest, because the goal is a bit vague. It would help to have a screenshot of the complexity of the document in mind, as OP's analogy to BasicPrimitives leaves a lot of room for variation.
With that in mind, if the demands were at the simple end, then a shared StackEdit.io document (essentially Markdown with some additional bells-and-whistles) might meet the need.
StackEdit includes support for:
- and simple flowcharts
It might be that this scenario does not allow for sufficient complexity, but it does meet these needs:
- single file
- shareable
- dynamic
- plus "publish" to (e.g.) Blogger, Wordpress, Tumblr, or "export" to HTML, PDF (if "sponsor"), etc.
On the other hand, it might be that this is too basic to meet the needs of OP.