Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2bf980

Browse filesBrowse files
committed
support Varnish in configuration blocks
1 parent 7ab6df9 commit f2bf980
Copy full SHA for f2bf980

File tree

Expand file treeCollapse file tree

2 files changed

+12
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-1
lines changed

‎conf.py

Copy file name to clipboardExpand all lines: conf.py
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# adding PhpLexer
2424
from sphinx.highlighting import lexers
2525
from pygments.lexers.web import PhpLexer
26+
from pygments.lexers.agile import RubyLexer
2627

2728
# -- General configuration -----------------------------------------------------
2829

@@ -100,6 +101,15 @@
100101
lexers['php-annotations'] = PhpLexer(startinline=True)
101102
lexers['php-standalone'] = PhpLexer(startinline=True)
102103
lexers['php-symfony'] = PhpLexer(startinline=True)
104+
lexers['varnish2'] = RubyLexer()
105+
lexers['varnish3'] = RubyLexer()
106+
lexers['varnish4'] = RubyLexer()
107+
108+
config_block = {
109+
'varnish2': 'Varnish 2',
110+
'varnish3': 'Varnish 3',
111+
'varnish4': 'Varnish 4'
112+
}
103113

104114
# use PHP as the primary domain
105115
primary_domain = 'php'
@@ -264,3 +274,4 @@
264274

265275
# Use PHP syntax highlighting in code examples by default
266276
highlight_language='php'
277+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.