From 16103c1413391dac05edbf5071c2923154357177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20O=C3=9Fwald?= Date: Fri, 22 Jul 2016 14:43:01 +0200 Subject: [PATCH] docs with markdown, needs further error search --- docs/conf.py | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 4c2d30f..f11ab56 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,12 +21,12 @@ # import sys # sys.path.insert(0, os.path.abspath('.')) import sphinx_rtd_theme -#from recommonmark.parser import CommonMarkParser -#from sphinx.highlighting import lexers -#from pygments.lexers.web import PhpLexer -#lexers['php'] = PhpLexer(startinline=True, linenos=1) -#lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1) -#primary_domain = 'php' +from recommonmark.parser import CommonMarkParser +from sphinx.highlighting import lexers +from pygments.lexers.web import PhpLexer +lexers['php'] = PhpLexer(startinline=True, linenos=1) +lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1) +primary_domain = 'php' # -- General configuration ------------------------------------------------ @@ -45,11 +45,10 @@ # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: # -#source_parsers = { -# '.md': CommonMarkParser, -#} -#source_suffix = ['.rst','.md'] -source_suffix = ['.rst'] +source_parsers = { + '.md': CommonMarkParser, +} +source_suffix = ['.rst','.md'] # The encoding of source files. #