I have a package that is primarily Python, and mostly meant to be used with Python. But also there are a few extra functions that are available when the module is used under Sage. The problem is that Sage doctests must be prefixed by sage:
rather than >>>
, and Sphinx doesn't pick these up when generating the documentation.
Is there a way to get Sphinx to recognize the sage:
prefix as being equivalent to >>>
when generating the HTML (or other) docs?