# -*- coding: utf-8 -*- import sys import os import shlex # import graceful in order to retrieve version info import graceful sys.path.append(os.path.dirname(os.path.abspath(__file__))) # this is quite dirty approach but we're not working at NASA and nobody can die # because of that. Am I right? on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: from convert_readme import convert_md convert_md() # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']
import sys import os import shlex # import graceful in order to retrieve version info import graceful sys.path.append(os.path.dirname(os.path.abspath(__file__))) # this is quite dirty approach but we're not working at NASA and nobody can die # because of that. Am I right? on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: from convert_readme import convert_md convert_md() # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon', ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates']