Any ways to create sphinx docs using both python2.x and python3.x ecosystems?

I have a project that supports both Python 2.7 and Python 3.x using a single code base. In it, I used optional futures:

If the application runs on Python 2.x, then Twisted is available.

If the application runs on Python 3.2+, then concurent.futures available.

I want to create documents using Sphinx for the entire project, but how can I do this for both ecosystems?

+4
source share
1 answer

To solve the problem, I release the mockautodoc sphinx extension

+1
source

All Articles