File: notes.txt

package info (click to toggle)
python-trio 0.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,920 kB
  • sloc: python: 28,766; sh: 144; makefile: 25
file content (20 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
it's possible from extension/configuration modules to get sphinx to
know about new roles and even new autodoc types.

See curio docs, which cribbed from the python docs and have a link to
them

and also:

https://github.com/aio-libs/sphinxcontrib-asyncio/pull/1/files

which added autodoc hooks to sphinxcontrib-asyncio


it looks like there's a table of cross-reference roles in
sphinx/domains/python.py (look for PyXRefRole), which inherits from
sphinx.roles.XRefRole, which has some notes on how to subclass and
change rendering (see 'result_nodes' method)

so..... it might even be possible to give async functions/methods their
own color :-)