|
8 | 8 |
|
9 | 9 | lexers['php'] = PhpLexer(startinline=True, linenos=1) |
10 | 10 |
|
11 | | -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
12 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
13 | | - import sphinx_rtd_theme |
14 | | - html_theme = 'sphinx_rtd_theme' |
15 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
16 | | - |
17 | 11 | primary_domain = 'php' |
18 | 12 | highlight_language = 'php' |
19 | 13 |
|
20 | | -# If extensions (or modules to document with autodoc) are in another directory, |
21 | | -# add these directories to sys.path here. If the directory is relative to the |
22 | | -# documentation root, use os.path.abspath to make it absolute, like shown here. |
23 | | -#sys.path.insert(0, os.path.abspath('.')) |
24 | | - |
25 | | -# -- General configuration ----------------------------------------------------- |
26 | | - |
27 | | -# If your documentation needs a minimal Sphinx version, state it here. |
28 | | -#needs_sphinx = '1.0' |
29 | | - |
30 | | -# Add any Sphinx extension module names here, as strings. They can be extensions |
31 | | -# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
32 | 14 | extensions = [ |
33 | | - 'sphinx.ext.intersphinx', |
34 | | - 'sphinxcontrib.phpdomain', |
35 | | - 'sensio.sphinx.configurationblock', |
36 | | - 'sensio.sphinx.phpcode', |
37 | | - 'sphinxcontrib.spelling' |
| 15 | + 'sphinxcontrib.spelling', |
| 16 | + 'sphinx_rtd_theme', |
38 | 17 | ] |
39 | 18 |
|
40 | 19 | # Spelling configuration |
|
62 | 41 | # built documents. |
63 | 42 | # |
64 | 43 | # The short X.Y version. |
65 | | -version = '2.0.0' |
| 44 | +version = '2.x' |
66 | 45 | # The full version, including alpha/beta/rc tags. |
67 | 46 | release = '2.0.0' |
68 | 47 |
|
69 | 48 | # The language for content autogenerated by Sphinx. Refer to documentation |
70 | 49 | # for a list of supported languages. |
71 | | -#language = None |
| 50 | +language = 'en' |
72 | 51 |
|
73 | 52 | # There are two options for replacing |today|: either, you set today to some |
74 | 53 | # non-false value, then it is used: |
|
103 | 82 |
|
104 | 83 | # -- Options for HTML output --------------------------------------------------- |
105 | 84 |
|
| 85 | +html_theme = 'sphinx_rtd_theme' |
| 86 | + |
106 | 87 | # Theme options are theme-specific and customize the look and feel of a theme |
107 | 88 | # further. For a list of options available for each theme, see the |
108 | 89 | # documentation. |
|
214 | 195 | #latex_domain_indices = True |
215 | 196 |
|
216 | 197 |
|
217 | | -# -- Options for manual page output -------------------------------------------- |
218 | | - |
219 | | -# One entry per manual page. List of tuples |
220 | | -# (source start file, name, description, authors, manual section). |
221 | | -man_pages = [ |
222 | | - ('index', 'foshttptpcachebundle', 'FOSHttptpCacheBundle Documentation', |
223 | | - ['David de Boer, David Buchmann'], 1) |
224 | | -] |
225 | | - |
226 | | -# If true, show URL addresses after external links. |
227 | | -#man_show_urls = False |
228 | | - |
229 | | - |
230 | | -# -- Options for Texinfo output ------------------------------------------------ |
231 | | - |
232 | | -# Grouping the document tree into Texinfo files. List of tuples |
233 | | -# (source start file, target name, title, author, |
234 | | -# dir menu entry, description, category) |
235 | | -texinfo_documents = [ |
236 | | - ('index', 'FOSHttpCacheBundle', 'FOSHttpCacheBundle Documentation', |
237 | | - 'David de Boer, David Buchmann', 'FOSHttpCacheBundle', 'A Symfony bundle to help with HTTP caching and invalidation', |
238 | | - 'Miscellaneous'), |
239 | | -] |
240 | | - |
241 | | -# Documents to append as an appendix to all manuals. |
242 | | -#texinfo_appendices = [] |
243 | | - |
244 | | -# If false, no module index is generated. |
245 | | -#texinfo_domain_indices = True |
246 | | - |
247 | | -# How to display URL addresses: 'footnote', 'no', or 'inline'. |
248 | | -#texinfo_show_urls = 'footnote' |
249 | | - |
| 198 | +# -------------- |
250 | 199 |
|
251 | | -# Example configuration for intersphinx: refer to the Python standard library. |
252 | 200 | intersphinx_mapping = {'foshttpcache': ('http://foshttpcache.readthedocs.org/en/latest/', None)} |
253 | 201 |
|
254 | 202 | rst_epilog = """ |
|
0 commit comments