This project provides Python scripts, for generating MD and XLS documentation out of provided JSON objects.
- the documentor script does not prompt for additional props that might be missing from the documented json (the props that are present in the json are the props, that will be documented)
- complex, nested objects are documented only two level deep
- the documentor script assumes every item in an array is of similar type and structure and it generates item documentation based on first item in the array
- the documentor script does not support documenting arrays containing arrays (the type will be specified as
NestedArray
and traversing values is skipped)
- In repo root, execute
python json-to-md.py
- Specify the path of the input json
- When prompted, specify a description for each property in provided JSON
- The generated MD file is dumped into the
output-md
dir
- In repo root, execute
python md-to-xls.py
- Specify the name of the previously output MD file (note: MD file is expected to reside in
output-md
dir) - The generated XLS file is dumped into the
output-xls
dir
Repo root contains example.json
you can play with.