From 077f7fef9bf3bd0eecc490a89e3971d282900845 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 5 Sep 2012 18:25:30 +0100 Subject: Fix up index suffixes --- mkdocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkdocs.py') diff --git a/mkdocs.py b/mkdocs.py index c435c141..c7921fcd 100755 --- a/mkdocs.py +++ b/mkdocs.py @@ -65,5 +65,5 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir): if not os.path.exists(build_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.html"', output) + output = re.sub(r'a href="([^"]*)\.md"', r'a href="\1%s"' % suffix, output) open(build_file, 'w').write(output.encode('utf-8')) -- cgit v1.2.3