开发者

How do I get Sphinx to markup C calls in text the way the standard Python docs do?

开发者 https://www.devze.com 2023-03-20 20:07 出处:网络
In the standard Python documentation, system calls appear as bold, fixed-width font. You can see t开发者_开发百科his in the asyncore section, when it mentions select() or poll() for example:

In the standard Python documentation, system calls appear as bold, fixed-width font. You can see t开发者_开发百科his in the asyncore section, when it mentions select() or poll() for example:

http://docs.python.org/py3k/library/asyncore.html

I checked the source code for asyncore, and it has no special markups for these functions, so I'm not sure how one convinces Sphinx to do this. Is there a simple directive I can add to index.rst to make this work like I want?


Where did you see that there is no special markup for the C function calls? When I looked at the latest source for this file it has :cfunc:'select', which I think is old style Sphinx markup for C code. For the latest way of doing it read up on The C Domain.

0

精彩评论

暂无评论...
验证码 换一张
取 消