From 5d9dfcd8ae10db37f0cca043d3b9977e27197487 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Sat, 8 Sep 2012 20:23:32 +0100 Subject: Code highlighting in docs --- mkdocs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mkdocs.py') diff --git a/mkdocs.py b/mkdocs.py index 63e15d8f..0acb14d1 100755 --- a/mkdocs.py +++ b/mkdocs.py @@ -66,4 +66,6 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir): os.makedirs(build_dir) output = page.replace('{{ content }}', content).replace('{{ toc }}', toc).replace('{{ base_url }}', base_url).replace('{{ suffix }}', suffix).replace('{{ index }}', index) output = re.sub(r'a href="([^"]*)\.md"', r'a href="\1%s"' % suffix, output) + output = re.sub(r'
:::bash', r'
', output)
+        output = re.sub(r'
', r'
', output)
         open(build_file, 'w').write(output.encode('utf-8'))
-- 
cgit v1.2.3