fix readthedocs compilation

This commit is contained in:
2021-03-25 18:05:29 +01:00
parent 18b2af113b
commit 2ea880c6fa
2 changed files with 60 additions and 44 deletions

View File

@@ -25,7 +25,8 @@ on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
#sys.path.insert(0, os.path.abspath('.'))
if not on_rtd:
sys.path.append(os.path.abspath('./../_exts/sphinx-php'))
# sys.path.append(os.path.abspath('./../_exts/sphinx-php'))
pass
# adding PhpLexer
@@ -51,37 +52,38 @@ extensions = [
'sphinx.ext.todo',
]
try:
import sensio.sphinx.refinclude
except ImportError:
print('sensio.sphinx.refinclude is not available')
else:
extensions += ['sensio.sphinx.refinclude']
try:
import sensio.sphinx.configurationblock
except ImportError:
print('sensio.sphinx.configurationblock is not available')
else:
extensions += ['sensio.sphinx.configurationblock']
try:
import sensio.sphinx.phpcode
except ImportError:
print('sensio.sphinx.phpcode')
else:
extensions += ['sensio.sphinx.phpcode']
try:
import sensio.sphinx.bestpractice
except ImportError:
print('sensio.sphinx.bestpractice is not avaialble')
else:
extensions += ['sensio.sphinx.bestpractice']
# desactivated
# try:
# import sensio.sphinx.refinclude
# except ImportError:
# print('sensio.sphinx.refinclude is not available')
# else:
# extensions += ['sensio.sphinx.refinclude']
#
# try:
# import sensio.sphinx.configurationblock
# except ImportError:
# print('sensio.sphinx.configurationblock is not available')
# else:
# extensions += ['sensio.sphinx.configurationblock']
#
# try:
# import sensio.sphinx.phpcode
# except ImportError:
# print('sensio.sphinx.phpcode')
# else:
# extensions += ['sensio.sphinx.phpcode']
#
# try:
# import sensio.sphinx.bestpractice
# except ImportError:
# print('sensio.sphinx.bestpractice is not avaialble')
# else:
# extensions += ['sensio.sphinx.bestpractice']
#add configuration for api url
api_url = 'http://api.chill.social/master/%s'
# api_url = 'http://api.chill.social/master/%s'
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -104,9 +106,9 @@ copyright = '2014-2016, Champs-Libres, published under the terms of the GNU Free
# built documents.
#
# The short X.Y version.
version = '1.0'
version = '2.0'
# The full version, including alpha/beta/rc tags.
release = '1.0'
release = '2.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.