Workflow abstraction
Starting point
We start with a collection of markdown files containing terms and definitions. We want to create a “specification” from these markdownfiles. This is going to be an index.html
file.
User Entry Point is a Command Line Menu:
,---. . . --.--
`---.,---.,---.,---. | |,---. |
|| ||---'| ---| || |--- |
`---'|---'`---'`---' `---'|---' `
| |
Please choose one of the following options:
[0] Add content
[1] Render specification
[2] Export to PDF
[3] Collect external references (cache, faster)
[4] Collect external references (no cache, slower)
[5] Add, remove or view xref source
[6] Configure
[7] Open documentation website
[8] Freeze specification
[Q] Quit
An xref is a reference to another repository.
Enter your choice:
End result
The end result is an index.html
file that is “self containing”, in this case meaning that it has all the styling (CSS) and behaviour (JS) and data (a JS variable) inside.
Menu option [0] Add content
Shows simple instructions on how to add content.
Menu option [1] Render specification
Steps: |
– BEGIN –
– 1 –
create-term-index.js
Read all the user-created term files (markdown).
Make an ordered list (JSON) of all the names of the terms files (“term index”).