| 1 |
import sys, os |
| 2 |
from sphinx.highlighting import lexers |
| 3 |
from pygments.lexers.web import PhpLexer |
| 4 |
|
| 5 |
|
| 6 |
lexers['php'] = PhpLexer(startinline=True, linenos=1) |
| 7 |
lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1) |
| 8 |
primary_domain = 'php' |
| 9 |
|
| 10 |
extensions = [] |
| 11 |
templates_path = ['_templates'] |
| 12 |
source_suffix = '.rst' |
| 13 |
master_doc = 'index' |
| 14 |
project = u'Guzzle' |
| 15 |
copyright = u'2015, Michael Dowling' |
| 16 |
version = '6' |
| 17 |
html_title = "Guzzle Documentation" |
| 18 |
html_short_title = "Guzzle 6" |
| 19 |
|
| 20 |
exclude_patterns = ['_build'] |
| 21 |
html_static_path = ['_static'] |
| 22 |
|
| 23 |
##### Guzzle sphinx theme |
| 24 |
|
| 25 |
import guzzle_sphinx_theme |
| 26 |
html_translator_class = 'guzzle_sphinx_theme.HTMLTranslator' |
| 27 |
html_theme_path = guzzle_sphinx_theme.html_theme_path() |
| 28 |
html_theme = 'guzzle_sphinx_theme' |
| 29 |
|
| 30 |
# Custom sidebar templates, maps document names to template names. |
| 31 |
html_sidebars = { |
| 32 |
'**': ['logo-text.html', 'globaltoc.html', 'searchbox.html'] |
| 33 |
} |
| 34 |
|
| 35 |
# Register the theme as an extension to generate a sitemap.xml |
| 36 |
extensions.append("guzzle_sphinx_theme") |
| 37 |
|
| 38 |
# Guzzle theme options (see theme.conf for more information) |
| 39 |
html_theme_options = { |
| 40 |
|
| 41 |
# Set the path to a special layout to include for the homepage |
| 42 |
# "index_template": "homepage.html", |
| 43 |
|
| 44 |
# Allow a separate homepage from the master_doc |
| 45 |
# homepage = index |
| 46 |
|
| 47 |
# Set the name of the project to appear in the nav menu |
| 48 |
# "project_nav_name": "Guzzle", |
| 49 |
|
| 50 |
# Set your Disqus short name to enable comments |
| 51 |
# "disqus_comments_shortname": "my_disqus_comments_short_name", |
| 52 |
|
| 53 |
# Set you GA account ID to enable tracking |
| 54 |
# "google_analytics_account": "my_ga_account", |
| 55 |
|
| 56 |
# Path to a touch icon |
| 57 |
# "touch_icon": "", |
| 58 |
|
| 59 |
# Specify a base_url used to generate sitemap.xml links. If not |
| 60 |
# specified, then no sitemap will be built. |
| 61 |
"base_url": "http://guzzlephp.org" |
| 62 |
|
| 63 |
# Allow the "Table of Contents" page to be defined separately from "master_doc" |
| 64 |
# tocpage = Contents |
| 65 |
|
| 66 |
# Allow the project link to be overriden to a custom URL. |
| 67 |
# projectlink = http://myproject.url |
| 68 |
} |
| 69 |
|