From f2bf9805b10f8ab3af243e6d5829eca53b13b481 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 3 Oct 2014 14:28:37 +0200 Subject: [PATCH] support Varnish in configuration blocks --- _exts | 2 +- conf.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/_exts b/_exts index 03bc1c60172..bb540b67288 160000 --- a/_exts +++ b/_exts @@ -1 +1 @@ -Subproject commit 03bc1c60172a280619e3476f22b111b4a187895d +Subproject commit bb540b6728898b48d7ec61e52065a18c391951fe diff --git a/conf.py b/conf.py index b8ffe20fc86..fe7fd835847 100644 --- a/conf.py +++ b/conf.py @@ -23,6 +23,7 @@ # adding PhpLexer from sphinx.highlighting import lexers from pygments.lexers.web import PhpLexer +from pygments.lexers.agile import RubyLexer # -- General configuration ----------------------------------------------------- @@ -100,6 +101,15 @@ lexers['php-annotations'] = PhpLexer(startinline=True) lexers['php-standalone'] = PhpLexer(startinline=True) lexers['php-symfony'] = PhpLexer(startinline=True) +lexers['varnish2'] = RubyLexer() +lexers['varnish3'] = RubyLexer() +lexers['varnish4'] = RubyLexer() + +config_block = { + 'varnish2': 'Varnish 2', + 'varnish3': 'Varnish 3', + 'varnish4': 'Varnish 4' +} # use PHP as the primary domain primary_domain = 'php' @@ -264,3 +274,4 @@ # Use PHP syntax highlighting in code examples by default highlight_language='php' +