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

Support Sphinx inline parameter syntax. #33

Merged
merged 1 commit into from
Feb 7, 2015
Merged

Support Sphinx inline parameter syntax. #33

merged 1 commit into from
Feb 7, 2015

Conversation

denniskempin
Copy link

Sphinx allows types of parameters to be specified in the :param tag without
a separate :type line, such as ":param int a: desc", which results in a more
compact docstring.
This change adds support by extending the docstring parser to parse these lines.
Various test cases are included.

Note: My IDE removed a couple of trailing whitespaces in the edited files.

Sphinx allows types of parameters to be specified in the :param tag without
a separate :type line, such as ":param int a: desc", which results in a more
compact docstring.
This change adds support by extending the docstring parser to parse these lines.
Various test cases are included.

Note: My IDE removed a couple of trailing whitespaces in the edited files.
@denniskempin
Copy link
Author

Documentation on the Sphinx syntax for parameter types: http://sphinx-doc.org/domains.html#info-field-lists.

@AndreaCensi
Copy link
Owner

Thanks! I don't have time to review this, but merging in master for the time being.

AndreaCensi added a commit that referenced this pull request Feb 7, 2015
Support Sphinx inline parameter syntax. (Dennis Kempin, Google)
@AndreaCensi AndreaCensi merged commit 859ecc5 into AndreaCensi:master Feb 7, 2015
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.

2 participants