Open mwoehlke opened 1 month ago
FYI @autoantwort, this should fix a couple of the issues you raised. I'd appreciate if you can verify whether I did it right; thanks!
A suggestion, why not invert the generator to have rst
be generated from json-schema
(with sphinx-jsonschema
). Reasoning is that the json schema can be much more powerful, e.g. checking sem-version, conditional dependencies, etc. which are less intuitive to define in the rst format. JSON format is of course rather cumbersome to navigate, so maybe having it in a yaml file would be better
Add a link to the JSON schema from the main documentation. Pretty-print said schema and add
format
anddefault
, with the latter also moving to the "machine readable" block in the primary documentation. Add custom Pygments style to reflect the coloring used elsewhere in the documentation, and "fix" the language of the sample CPS file. Factor out some duplicated code. Fix someflake8
warnings.