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

Use both class docstring and init docstring for autoapi #1451

Merged

Conversation

Ruwann
Copy link
Member

@Ruwann Ruwann commented Feb 1, 2022

The generated API reference documentation only used the class docstring, this PR changes this such that both the class docstring and the __init__ docstring are used [1]. For example, the FlaskApp and AbstractApp only contain documentation in the init methods.

[1] https://sphinx-autoapi.readthedocs.io/en/latest/reference/config.html#confval-autoapi_python_class_content

Before: https://connexion.readthedocs.io/en/stable/autoapi/connexion/apps/flask_app/index.html#connexion.apps.flask_app.FlaskApp
After: https://connexion--1451.org.readthedocs.build/en/1451/autoapi/connexion/apps/flask_app/index.html#connexion.apps.flask_app.FlaskApp

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.05% when pulling 0c89d24 on Ruwann:feature/autoapi-class-docstring into 1f07bde on zalando:main.

Copy link
Member

@RobbeSneyders RobbeSneyders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx Ruwan!

@RobbeSneyders RobbeSneyders merged commit a67baa5 into spec-first:main Feb 5, 2022
@Ruwann Ruwann deleted the feature/autoapi-class-docstring branch February 10, 2022 19:56
vbxx3 pushed a commit to Savannah-Group/connexion that referenced this pull request Apr 9, 2022
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.

None yet

3 participants