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

autodoc2_module_summary = False should still print non-summary API #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidselassie
Copy link

When autodoc2_module_summary = False, each module's page only includes the "Submodules" heading at the top and no other API documentation. I assume this is unintended, and the "summary" being referenced in this config option should only be the tables of each item type at the top of each module.

I think this might have been an off-by-one indentation level error? The code to render the non-summary parts was accidentally indented to the level of the summary check if.

If the existing behavior is the intended behavior of this config option, let me know and maybe we can change this to better document what the behavior should be.

I didn't include any tests because I didn't see a pattern for handling combinations of config options, but I did test manually. If you want me to add something that tests this in isolation, let me know.

Thanks!

When `autodoc2_module_summary = False`, each module's page only
includes the "Submodules" heading at the top and no other API
documentation. I assume this is unintended, and the "summary" being
referenced in this config option should only be the tables of each
item type at the top of each module.

I think this might have been an off-by-one indentation level error?
The code to render the non-summary parts was accidentally indented to
the level of the summary check `if`.

If the existing behavior is the intended behavior of this config
option, let me know and maybe we can change this to better document
what the behavior should be.

I didn't include any tests because I didn't see a pattern for handling
combinations of config options, but I did test manually. If you want
me to add something that tests this in isolation, let me know.

Thanks!
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

1 participant