fix readthedocs compilation

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

View File

@ -1,13 +1,27 @@
alabaster==0.7.10 alabaster==0.7.12
Babel==2.4.0 Babel==2.9.0
docutils==0.13.1 certifi==2020.12.5
imagesize==0.7.1 chardet==4.0.0
Jinja2==2.10.1 docutils==0.16
MarkupSafe==1.0 idna==2.10
Pygments==2.2.0 imagesize==1.2.0
pytz==2017.2 Jinja2==2.11.3
requests==2.20.0 MarkupSafe==1.1.1
six==1.10.0 packaging==20.9
snowballstemmer==1.2.1 pkg-resources==0.0.0
Sphinx==1.3.6 Pygments==2.8.1
git+https://github.com/fabpot/sphinx-php.git@7312eccce9465640752e51373a480da700e02345#egg_name=sphinx-php pyparsing==2.4.7
pytz==2021.1
requests==2.25.1
six==1.15.0
snowballstemmer==2.1.0
Sphinx==3.5.3
sphinx-php==1.0
sphinx-rtd-theme==0.5.1
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
urllib3==1.26.4

View File

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