linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* typedef output question/issue?
@ 2024-11-21  4:59 Randy Dunlap
  2024-11-21 11:19 ` Jani Nikula
  0 siblings, 1 reply; 6+ messages in thread
From: Randy Dunlap @ 2024-11-21  4:59 UTC (permalink / raw)
  To: open list:DOCUMENTATION

Hi,

If I print a typedef in html (make htmldocs) from a .rst file,
I see:

type dma_cookie_t
    an opaque DMA cookie

Description

if dma_cookie_t is >0 it’s a DMA request cookie, <0 it’s an error code

~~~~~~~~~~~~~~~~~~~

If I print the same typedef in man format, it says 'typedef' instead of
'type', which is what I expect to see.

man formatted output:

Kernel API(9)                     API Manual                     Kernel API(9)

NAME
       typedef dma_cookie_t - an opaque DMA cookie

Description
       if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code

November 2024                    dma_cookie_t                    Kernel API(9)



I am using python311-Sphinx 8.0.2-1.2-noarch from openSUSE.

[internet search ...]

The $internet says that one option is to install and use:
Add 'sphinx_autodoc_typehints' to the extensions list in your conf.py file.
I tried that but now I get:
Extension error:
Unknown event name: autodoc-process-signature

Another option is to try a different theme so I reverted to
sphinx_rtd_theme but that didn't help either.

Does anyone know a good solution to this?

thanks.
-- 
~Randy

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-25  0:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21  4:59 typedef output question/issue? Randy Dunlap
2024-11-21 11:19 ` Jani Nikula
2024-11-21 11:19   ` Jani Nikula
2024-11-21 17:38     ` Randy Dunlap
2024-11-21 19:28       ` Jani Nikula
2024-11-25  0:05         ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).