Understand the RhinoScriptSyntax Docstring Format
rhino-8.xThe rhinoscriptsyntax library uses a specific docstring format to generate context help in the editor and API documentation. The format is inspired by PEP 257, PEP 216, and Google Style Docstrings.
Key sections used in a standard docstring include:
- Delimiters: Uses triple quotes
"""to start and end the docstring. - Description: A short summary of the function. Multi-line descriptions must have the second line and subsequent lines indented by two spaces.
- Parameters: A section starting with
Parameters:describing input arguments. - Returns: A section starting with
Returns:describing the output. - Example: A section starting with
Example:containing functional, self-contained code. - See Also: A section listing related functions.