Commit 077f7fef by Tom Christie

Fix up index suffixes

parent 367dd01a
......@@ -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'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment