2013-10-31 15:25:29 -07:00
|
|
|
import sys, os
|
|
|
|
from sphinx.highlighting import lexers
|
|
|
|
from pygments.lexers.web import PhpLexer
|
|
|
|
|
2014-09-18 00:23:01 -07:00
|
|
|
|
2013-10-31 15:25:29 -07:00
|
|
|
lexers['php'] = PhpLexer(startinline=True, linenos=1)
|
|
|
|
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1)
|
|
|
|
primary_domain = 'php'
|
|
|
|
|
2013-10-31 16:41:15 -07:00
|
|
|
extensions = []
|
2013-10-31 15:25:29 -07:00
|
|
|
templates_path = ['_templates']
|
|
|
|
source_suffix = '.rst'
|
|
|
|
master_doc = 'index'
|
|
|
|
project = u'Guzzle'
|
2014-09-18 00:23:01 -07:00
|
|
|
copyright = u'2014, Michael Dowling'
|
|
|
|
version = '5.0.0'
|
|
|
|
html_title = "Guzzle Documentation"
|
2013-10-31 15:25:29 -07:00
|
|
|
html_short_title = "Guzzle"
|
|
|
|
|
2014-09-18 00:23:01 -07:00
|
|
|
exclude_patterns = ['_build']
|
2013-10-31 15:25:29 -07:00
|
|
|
html_static_path = ['_static']
|
|
|
|
|
2014-09-18 00:23:01 -07:00
|
|
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
2013-10-31 15:25:29 -07:00
|
|
|
|
2014-09-18 00:23:01 -07:00
|
|
|
if not on_rtd: # only import and set the theme if we're building docs locally
|
|
|
|
import sphinx_rtd_theme
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|