Skip to content
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

Raw switch for jsondoc #24568

Open
wants to merge 12 commits into
base: devel
Choose a base branch
from
Open

Conversation

ire4ever1190
Copy link
Contributor

Implements #21928

Adds a --raw (since thats what the original issue used, suggestions welcome) switch which stops the jsondoc gen from rendering rst/markdown.

Implemented by making genComment check if it needs to return the raw string or not. This required switching the related procs to using Option to handle how nil values were returned before. The nil returns were eventually ignored so just ignoring none(T) has the same effect.

Doesn't support runnableExamples since jsondocs doesn't support them either

Chose that name since thats what the issue had, open to suggestions for any other name
Now we remove the rst field so that it doesn't try and render it and instead set the description ourselves
…ess edge cases from needing to handle it at the edges

Uses optionals to represent the nil state
Add newline between each section
Add entry into changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant