mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fix readthedocs compilation
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user