Skip to content

Commit 5280879

Browse files
committed
Sync conf with symfony.com
1 parent 9209e20 commit 5280879

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: sudo apt-get install python-dev build-essential
3131

3232
- name: "Cache pip"
33-
uses: actions/cache@v1
33+
uses: actions/cache@v2
3434
with:
3535
path: ~/.cache/pip
3636
key: ${{ runner.os }}-pip-${{ hashFiles('_build/.requirements.txt') }}

_build/conf.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# adding PhpLexer
2222
from sphinx.highlighting import lexers
2323
from pygments.lexers.compiled import CLexer
24+
from pygments.lexers.shell import BashLexer
2425
from pygments.lexers.special import TextLexer
2526
from pygments.lexers.text import RstLexer
2627
from pygments.lexers.web import PhpLexer
@@ -34,11 +35,12 @@
3435
# Add any Sphinx extension module names here, as strings. They can be extensions
3536
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
3637
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',
4042
'sphinxcontrib.phpdomain',
41-
'symfonycom.sphinx'
43+
'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode', 'sensio.sphinx.bestpractice'
4244
#,'sphinxcontrib.spelling'
4345
]
4446

@@ -114,16 +116,18 @@
114116
lexers['php-standalone'] = PhpLexer(startinline=True)
115117
lexers['php-symfony'] = PhpLexer(startinline=True)
116118
lexers['rst'] = RstLexer()
119+
lexers['varnish2'] = CLexer()
117120
lexers['varnish3'] = CLexer()
118121
lexers['varnish4'] = CLexer()
119122
lexers['terminal'] = TerminalLexer()
123+
lexers['env'] = BashLexer()
120124

121125
config_block = {
122126
'apache': 'Apache',
123127
'markdown': 'Markdown',
124128
'nginx': 'Nginx',
125129
'rst': 'reStructuredText',
126-
'terminal': 'Terminal',
130+
'varnish2': 'Varnish 2',
127131
'varnish3': 'Varnish 3',
128132
'varnish4': 'Varnish 4'
129133
}
@@ -132,7 +136,7 @@
132136
primary_domain = 'php'
133137

134138
# 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'
136140

137141

138142
# -- Options for HTML output ---------------------------------------------------

0 commit comments

Comments
 (0)