diff options
| author | Tom Christie | 2014-01-03 13:24:52 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-01-03 13:24:52 +0000 | 
| commit | 442916b9649baaf305ff094fe05f026ad04c7818 (patch) | |
| tree | 76ca5f04d106119c8d84fe0c0caf1c40c9f95072 /mkdocs.py | |
| parent | c3f8c8ffde21562579d9a71e7b6736453ee79f97 (diff) | |
| download | django-rest-framework-442916b9649baaf305ff094fe05f026ad04c7818.tar.bz2 | |
Link to BrightAPI, and remove ad except from frontpage
Diffstat (limited to 'mkdocs.py')
| -rwxr-xr-x | mkdocs.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -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 }}', '') | 
