Debian Codegraph @

docs/notes.txt

raw
1 it's possible from extension/configuration modules to get sphinx to
2 know about new roles and even new autodoc types.
3
4 See curio docs, which cribbed from the python docs and have a link to
5 them
6
7 and also:
8
9 https://github.com/aio-libs/sphinxcontrib-asyncio/pull/1/files
10
11 which added autodoc hooks to sphinxcontrib-asyncio
12
13
14 it looks like there's a table of cross-reference roles in
15 sphinx/domains/python.py (look for PyXRefRole), which inherits from
16 sphinx.roles.XRefRole, which has some notes on how to subclass and
17 change rendering (see 'result_nodes' method)
18
19 so..... it might even be possible to give async functions/methods their
20 own color :-)