diff options
| author | Tom Christie | 2012-09-05 18:25:30 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-05 18:25:30 +0100 | 
| commit | 077f7fef9bf3bd0eecc490a89e3971d282900845 (patch) | |
| tree | ae6ab24544bdd96f97379da5573994516ee6a487 /mkdocs.py | |
| parent | 367dd01a338e67c772362af62889a53a1302fb02 (diff) | |
| download | django-rest-framework-077f7fef9bf3bd0eecc490a89e3971d282900845.tar.bz2 | |
Fix up index suffixes
Diffstat (limited to 'mkdocs.py')
| -rwxr-xr-x | mkdocs.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -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')) | 
