2

In the standard Python documentation, system calls appear as bold, fixed-width font. You can see this 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?

mzjn
  • 48,958
  • 13
  • 128
  • 248
shane
  • 68
  • 6

1 Answers1

1

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.

Andrew Wilkinson
  • 10,682
  • 3
  • 35
  • 38
  • Ah, okay. For some reason I was thinking that it was using docstring, since the source code that you get when you click on the "source code" link on the documentation starts with the same text as the HTML documentation. Looking at your link I see the separate file with documentation. `:cfunc:` is exactly what I wanted! Thanks! – shane Jul 18 '11 at 14:41