Skip to content

docs: render undocumented enum members in the API reference - #839

Open
MaxonT wants to merge 1 commit into
aws:masterfrom
MaxonT:contrib/162-auto
Open

MaxonT wants to merge 1 commit into
aws:masterfrom
MaxonT:contrib/162-auto

Conversation

@MaxonT

@MaxonT MaxonT commented Nov 25, 2026

Copy link
Copy Markdown

The thread's suggestion to use undoc-members was easy to try, so I added it to autodoc_default_options in doc/conf.py; the identifiers page went from 24 to 70 names, but I built with Sphinx 7.4.7, not the pinned 5.3.0.

Fixes #162

The module pages are generated by autosummary with autodoc_default_options = {"show-inheritance": True, "members": True}, and enum members such as AlgorithmSuite.AES_128_GCM_IV12_TAG16 have no docstring, so autodoc skips them. This adds "undoc-members": True to those defaults in doc/conf.py.

I built the docs with Sphinx before and after the change and compared the generated pages by anchor id. From what I saw here, aws_encryption_sdk.identifiers goes from 24 to 70 documented names, which includes the AlgorithmSuite members, and nothing that was there before is removed. The same option also lists a few other undocumented attributes: 6 on key_providers.kms, 2 on internal.structures and 1 on key_providers.raw. If you would rather keep this to the enum page only, I can switch to per-module :undoc-members:, but that needs a custom autosummary template.

Checked with sphinx-build -b html doc on Sphinx 7.4.7 (the pinned 5.3.0 did not install on my Python 3.14), warnings are the same as before the change (including the existing intersphinx_mapping deprecation notice). Not verified: the pinned Sphinx 5.3.0 and the rendered look of the pages in the RTD theme.

Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
@MaxonT
MaxonT requested a review from a team as a code owner November 25, 2026 04:45

This branch has not been deployed

No deployments
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.

sphinx is not rendering enum members

1 participant