Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf2bf980

Browse files
committed
support Varnish in configuration blocks
1 parent7ab6df9 commitf2bf980

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎conf.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# adding PhpLexer
2424
fromsphinx.highlightingimportlexers
2525
frompygments.lexers.webimportPhpLexer
26+
frompygments.lexers.agileimportRubyLexer
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)

[8]ページ先頭

©2009-2025 Movatter.jp