Ask HN: Is there a good framework for an interactive user manual?
I need to deliver a technical user guide for field technicians to follow for configuring some devices. The current solution is a word doc which requires some brain power to fill in appropriate values (naming, IP, etc) as you progress in the steps.
I'd like to replace this with some kind of self-contained HTML where they can fill in the "variables" at the top and have it auto-generate throughout the doc. This is pretty simple with HTML/JS, but the code can get messy if not done right.
Is there some framework like ReadTheDocs where I can easily write out RsT or Markdown, inserting variables with jinja2 (as an example) that can be input in an input field, and have it dynamically render live in-browser (which I believe then rules Sphinx out)?
12 comments
[ 4.5 ms ] story [ 18.6 ms ] threadIt wouldn't he hard to make up Sphinx directives to drawn the form and put in the target spans.
But I'm not sure thats the best bet for new work today.
It might be worth looking at interactive fiction tools like https://twinery.org or https://www.inklestudios.com/ink/
They sort of do everything you need already including variable ui+storage, javascript processing, html output and save/reload.
Twine also supports complete backtracking if you use the sugarcube dialect.
I think you could port your Word doc to ObservableHQ and wire up the forms & variables in an afternoon. But, I’m not sure if ObservableHQ will satisfy your other tool requirements. And I haven’t tried the export for myself. I built my first notebook a few days ago and was very impressed.
See here: https://allaboutberlin.com/tools
Perhaps there are tools that do this, but the use case is fairly simple: variable substitution based on user input. For that, I'd stick to simple, client-side tools.
It’s built with python but you don’t need python knowledge at all to build; configure and serve the product.
The plug-in eco system adds the ability to embed variables into the markdown pages also you can embed html, so d3 visualisation or a vue calculator app will all embed just fine.
Really clean extensible base, insanely simple and fast to get started oh and free to use. I push mine to GitHub and have that auto build into GitHub pages or a free Netlify account.
https://squidfunk.github.io/mkdocs-material/
It sounds like you’re looking to use web tech because that’s what you know, maybe not right for the job though. Do you really want to ship a whole JS framework just for people to RTFM?
I.e. ``` <script> var ip = "127.0.0.1" </script> <input type="text" bind:value={ip}>
*Your select ip address is {ip}.* ```
I made it to solve my own problems: document commands & scripts and replace parameters with user input values. Soon I will release a new version with simpler syntax.