-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Thank you to Frans for pointing to missing snippet. DocNet is working great.
Have used it a bit, and have a few suggestions. Feel free to use or not.
-
auto-generate structure
It seems backwards to me that I have to edit a JSON file with structure to generate the files. it should be simple, at least by option, to have a JSON file with "global" parameters such as default template and then automatically generate the layout from the directory structure of the source files. Navigation title either from H1 level in source, or from a head matter. By option, user could choose either method. -
variable structure
Sometimes I could use just-in-time variables that could be used inside the templates. It would be possible in the JSON file to have a variable array that could be used inside templates:
"Variables" : { "Testvar1" : "This is my testvar1", "testvar2" : "Another variable", "XYZ" : "123" } ,
and then to use that simply by referencing{{Testvar1}}in template. not present => rendered empty. -
all options by command line
Combine above / some of above, so that options can be specified by command line.
Docnet -name "This is my name" -dest "..\" etc etc
or at least specify JSON file to use by command line.
Docnet -j source\thisConfig.json
Thanks for great software !