|
21 | 21 | # adding PhpLexer
|
22 | 22 | from sphinx.highlighting import lexers
|
23 | 23 | from pygments.lexers.compiled import CLexer
|
| 24 | +from pygments.lexers.shell import BashLexer |
24 | 25 | from pygments.lexers.special import TextLexer
|
25 | 26 | from pygments.lexers.text import RstLexer
|
26 | 27 | from pygments.lexers.web import PhpLexer
|
|
34 | 35 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
35 | 36 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
36 | 37 | extensions = [
|
37 |
| - 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', |
38 |
| - 'sensio.sphinx.codeblock', 'sensio.sphinx.phpcode', |
39 |
| - 'sensio.sphinx.configurationblock', 'sensio.sphinx.bestpractice', |
| 38 | + 'sphinx.ext.autodoc', 'sphinx.ext.doctest', |
| 39 | + 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.ifconfig', |
| 40 | + 'sphinx.ext.viewcode', 'sphinx.ext.extlinks', |
| 41 | + 'sensio.sphinx.codeblock', |
40 | 42 | 'sphinxcontrib.phpdomain',
|
41 |
| - 'symfonycom.sphinx' |
| 43 | + 'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode', 'sensio.sphinx.bestpractice' |
42 | 44 | #,'sphinxcontrib.spelling'
|
43 | 45 | ]
|
44 | 46 |
|
|
114 | 116 | lexers['php-standalone'] = PhpLexer(startinline=True)
|
115 | 117 | lexers['php-symfony'] = PhpLexer(startinline=True)
|
116 | 118 | lexers['rst'] = RstLexer()
|
| 119 | +lexers['varnish2'] = CLexer() |
117 | 120 | lexers['varnish3'] = CLexer()
|
118 | 121 | lexers['varnish4'] = CLexer()
|
119 | 122 | lexers['terminal'] = TerminalLexer()
|
| 123 | +lexers['env'] = BashLexer() |
120 | 124 |
|
121 | 125 | config_block = {
|
122 | 126 | 'apache': 'Apache',
|
123 | 127 | 'markdown': 'Markdown',
|
124 | 128 | 'nginx': 'Nginx',
|
125 | 129 | 'rst': 'reStructuredText',
|
126 |
| - 'terminal': 'Terminal', |
| 130 | + 'varnish2': 'Varnish 2', |
127 | 131 | 'varnish3': 'Varnish 3',
|
128 | 132 | 'varnish4': 'Varnish 4'
|
129 | 133 | }
|
|
132 | 136 | primary_domain = 'php'
|
133 | 137 |
|
134 | 138 | # set url for API links
|
135 |
| -api_url = 'http://api.symfony.com/master/%s' |
| 139 | +api_url = 'https://github.com/symfony/symfony/blob/master/src/%s.php' |
136 | 140 |
|
137 | 141 |
|
138 | 142 | # -- Options for HTML output ---------------------------------------------------
|
|
0 commit comments