|
11 | 11 | lexers['varnish3'] = CLexer() |
12 | 12 | lexers['varnish4'] = CLexer() |
13 | 13 |
|
14 | | -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
15 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
16 | | - import sphinx_rtd_theme |
17 | | - html_theme = 'sphinx_rtd_theme' |
18 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
19 | | - |
20 | 14 | primary_domain = 'php' |
21 | 15 | highlight_language = 'php' |
22 | 16 |
|
|
29 | 23 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. |
30 | 24 | extensions = [ |
31 | 25 | 'sphinx.ext.coverage', |
32 | | - 'sphinx.ext.extlinks', |
| 26 | + 'sphinx_rtd_theme', |
| 27 | + 'sphinx_tabs.tabs', |
33 | 28 | 'sphinxcontrib.phpdomain', |
34 | | - 'sensio.sphinx.configurationblock', |
35 | | - 'sensio.sphinx.phpcode', |
36 | 29 | 'sphinxcontrib.spelling' |
37 | 30 | ] |
38 | 31 |
|
|
102 | 95 |
|
103 | 96 | # -- Options for HTML output --------------------------------------------------- |
104 | 97 |
|
| 98 | +html_theme = 'sphinx_rtd_theme' |
| 99 | + |
105 | 100 | # Theme options are theme-specific and customize the look and feel of a theme |
106 | 101 | # further. For a list of options available for each theme, see the |
107 | 102 | # documentation. |
|
132 | 127 | # so a file named "default.css" will overwrite the builtin "default.css". |
133 | 128 | html_static_path = ['_static'] |
134 | 129 |
|
135 | | -html_js_files = [ |
136 | | - 'tabs.js', |
137 | | -] |
138 | | - |
139 | 130 | html_css_files = [ |
140 | | - 'tabs.css', |
| 131 | + 'custom.css', |
141 | 132 | 'fos.css', |
142 | 133 | ] |
143 | 134 |
|
|
226 | 217 | # If false, no module index is generated. |
227 | 218 | #latex_domain_indices = True |
228 | 219 |
|
229 | | - |
230 | | -# -- Options for manual page output -------------------------------------------- |
231 | | - |
232 | | -# One entry per manual page. List of tuples |
233 | | -# (source start file, name, description, authors, manual section). |
234 | | -man_pages = [ |
235 | | - ('index', 'foshttpcache', 'FOSHttpCache Documentation', |
236 | | - ['David Buchmann, David de Boer'], 1) |
237 | | -] |
238 | | - |
239 | | -# If true, show URL addresses after external links. |
240 | | -#man_show_urls = False |
241 | | - |
242 | | - |
243 | | -# -- Options for Texinfo output ------------------------------------------------ |
244 | | - |
245 | | -# Grouping the document tree into Texinfo files. List of tuples |
246 | | -# (source start file, target name, title, author, |
247 | | -# dir menu entry, description, category) |
248 | | -texinfo_documents = [ |
249 | | - ('index', 'FOSHttpCache', 'FOSHttpCache Documentation', |
250 | | - 'David Buchmann, David de Boer', 'FOSHttpCache', 'One line description of project.', |
251 | | - 'Miscellaneous'), |
252 | | -] |
253 | | - |
254 | | -# Documents to append as an appendix to all manuals. |
255 | | -#texinfo_appendices = [] |
256 | | - |
257 | | -# If false, no module index is generated. |
258 | | -#texinfo_domain_indices = True |
259 | | - |
260 | | -# How to display URL addresses: 'footnote', 'no', or 'inline'. |
261 | | -#texinfo_show_urls = 'footnote' |
262 | | - |
263 | 220 | rst_epilog = """ |
264 | 221 | .. _FOSHttpCacheBundle: https://github.com/FriendsOfSymfony/FOSHttpCacheBundle |
265 | 222 | .. _GitHub: https://github.com/FriendsOfSymfony/FOSHttpCache |
266 | 223 | """ |
267 | | - |
268 | | -extlinks = {'source': ('https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/%s', '') } |
269 | | - |
270 | | -config_block = { |
271 | | - 'varnish3': 'Varnish 3', |
272 | | - 'varnish4': 'Varnish 4 - 6' |
273 | | -} |
0 commit comments