aboutsummaryrefslogtreecommitdiffstats
path: root/mkdocs.py
diff options
context:
space:
mode:
authorTom Christie2014-01-03 13:27:00 +0000
committerTom Christie2014-01-03 13:27:00 +0000
commit399e4d9b0879288130ae2d04634802c53e5423fe (patch)
treeb8fcb60a7ba15a5e78a6170c98c4662def794d5e /mkdocs.py
parent3050f0e82a60a12dc35ef7947c2f47de12387919 (diff)
parent442916b9649baaf305ff094fe05f026ad04c7818 (diff)
downloaddjango-rest-framework-399e4d9b0879288130ae2d04634802c53e5423fe.tar.bz2
Merge branch 'master' into logo
Diffstat (limited to 'mkdocs.py')
-rwxr-xr-xmkdocs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkdocs.py b/mkdocs.py
index 09c9dcc6..92679a21 100755
--- a/mkdocs.py
+++ b/mkdocs.py
@@ -161,6 +161,12 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):
output = output.replace('{{ page_id }}', filename[:-3])
output = output.replace('{{ canonical_url }}', canonical_url)
+ if filename =='index.md':
+ output = output.replace('{{ ad_block }}', """<hr><p><strong>The team behind REST framework is launching a new API service.</strong></p>
+<p>If you want to be first in line when we start issuing invitations, please <a href="http://brightapi.com">sign up here</a>.</p>""")
+ else:
+ output = output.replace('{{ ad_block }}', '')
+
if prev_url:
output = output.replace('{{ prev_url }}', prev_url)
output = output.replace('{{ prev_url_disabled }}', '')