aboutsummaryrefslogtreecommitdiffstats
path: root/mkdocs.py
diff options
context:
space:
mode:
authorTom Christie2012-09-09 16:56:04 +0100
committerTom Christie2012-09-09 16:56:04 +0100
commitd4f8b4cf0683923fe85652f8fd572d2931eb3074 (patch)
tree0bdf405a6c67d2f62f6670e749b72bf9be0fafe6 /mkdocs.py
parentbaa6e2c18b94345e8f00f28a34817abdbdb437dc (diff)
downloaddjango-rest-framework-d4f8b4cf0683923fe85652f8fd572d2931eb3074.tar.bz2
Collapsing menu, travis and github badges, horizontal scrolling code on overflow
Diffstat (limited to 'mkdocs.py')
-rwxr-xr-xmkdocs.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkdocs.py b/mkdocs.py
index 7fb0bc17..e04cfe0e 100755
--- a/mkdocs.py
+++ b/mkdocs.py
@@ -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)