-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON output now parses description and moduleDescription as JSON #14871
Conversation
Documentation created with `jsondoc` will now have the actual description and module description as a parsed tree of JSON nodes that can more easily be turned into different formats or entered into a database.
I like it but since it adds yet more code to the Nim compiler, please make |
That would require the separate tool to understand the Nim command line syntax as well though, meaning that e.g. switches would need to be reflected in both places. Is this really the best way? I guess the compiler could only spit out the machine-readable JSON doc format, and then the external tool could translate it to HTML/Latex/whatever. That way the compiler will stay small, the |
It's what nimsuggest does too. |
this is the best way forward and also what I recommended here #14439 (comment) (ignore the 2nd paragraph there are multiple ways to do that, here's one:
=> no code breaks, it'd be a transparent change for users |
Hmm, I think |
fine with that |
This is rebased on the latest devel, with resolved merge conflicts, in PR #15999. I guess we can continue the discussion there. |
This means that the JSON output format can be used to output other document formats like Markdown.