Skip to content Skip to sidebar Skip to footer

Autodoc Directive Works Locally But Not On Readthedocs

My repo is located on github here: https://github.com/AshleySetter/optoanalysis And the docs are in https://github.com/AshleySetter/optoanalysis/tree/master/optoanalysis/docs ReadT

Solution 1:

You have modules written in Cython and compiled to C. I think ReadTheDocs doesn't support C extensions. You have to protect you imports to be generated at ReadTheDocs.

Something like this:

import os
if'READTHEDOCS' not in os.environ:
    import cython_generated_ext

Post a Comment for "Autodoc Directive Works Locally But Not On Readthedocs"