diff options
| author | Tom Christie | 2012-09-09 16:56:04 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-09 16:56:04 +0100 | 
| commit | d4f8b4cf0683923fe85652f8fd572d2931eb3074 (patch) | |
| tree | 0bdf405a6c67d2f62f6670e749b72bf9be0fafe6 /mkdocs.py | |
| parent | baa6e2c18b94345e8f00f28a34817abdbdb437dc (diff) | |
| download | django-rest-framework-d4f8b4cf0683923fe85652f8fd572d2931eb3074.tar.bz2 | |
Collapsing menu, travis and github badges, horizontal scrolling code on overflow
Diffstat (limited to 'mkdocs.py')
| -rwxr-xr-x | mkdocs.py | 1 | 
1 files changed, 1 insertions, 0 deletions
| @@ -66,6 +66,7 @@ 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 = output.replace('{{ page_id }}', filename[:-3])          output = re.sub(r'a href="([^"]*)\.md"', r'a href="\1%s"' % suffix, output)          output = re.sub(r'<pre><code>:::bash', r'<pre class="prettyprint lang-bsh">', output)          output = re.sub(r'<pre>', r'<pre class="prettyprint lang-py">', output) | 
