вторник, 14 апреля 2015 г., 11:18:13 UTC+3 пользователь Luc Saffre написал:
>
> I have something like this in my conf.py::
>
> import os
> on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
> if on_rtd:
> ...
> else:
> ...
>
> This is documented here:
>
> http://docs.readthedocs.org/en/latest/faq.html
>
Thank you. This is not exactly what I'm looking for, but if there is no way
to determine sphinx version from conf.py, then I'll live with that
workaround.
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.