Hi,
I'm trying to document a C extension module containing a number of
constants. I'd like both their names and values to appear in the
sphinx HTML output. I'm using sphinx.autodoc extension, but it ignores
the constants.

The constants are defined as instances of uuid.UUID.
I have:
.. automodule:: systemd.id128
   :members:
   :undoc-members:

This shows everything I want except the constants.

If I list one of the constants like:

  .. autoattribute: SD_MESSAGES_COREDUMP

then it is appears in the output.

Is there a way to avoid listing all the constants and telling
autodoc to the job?

Thanks,
Zbyszek

PS. FWIW, pydoc3.3 systemd.id128 shows:
    ...
DATA
    SD_MESSAGE_COREDUMP = UUID('fc2e22bc-6ee6-47b6-b907-29ab34a250b1')
    SD_MESSAGE_FORWARD_SYSLOG_MISSED = ...

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to