diff options
| author | Tom Christie | 2014-07-15 15:02:09 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-07-15 15:02:09 +0100 | 
| commit | dd2e950cde5fc7078303925fa936e59ea4fe363b (patch) | |
| tree | 5147f2e85e3f2a4b521d53a33894e9138d98975b | |
| parent | b51901812596aa478cc8cb1046e42049214bc9ff (diff) | |
| download | django-rest-framework-dd2e950cde5fc7078303925fa936e59ea4fe363b.tar.bz2 | |
Fusion ads
| -rw-r--r-- | docs/template.html | 24 | ||||
| -rwxr-xr-x | mkdocs.py | 4 | 
2 files changed, 21 insertions, 7 deletions
| diff --git a/docs/template.html b/docs/template.html index a397d067..6009b151 100644 --- a/docs/template.html +++ b/docs/template.html @@ -33,6 +33,21 @@    })();      </script> +    <style> +span.fusion-wrap a { +  display: block; +  margin-top: 10px; +  color: black; +} + +a.fusion-poweredby { +  display: block; +  margin-top: 10px; +} +@media (max-width: 767px) { +  div.promo {display: none;} +} +</style>    </head>    <body onload="prettyPrint()" class="{{ page_id }}-page"> @@ -169,11 +184,9 @@              <div id="table-of-contents">                <ul class="nav nav-list side-nav well sidebar-nav-fixed">                  {{ toc }} -              <div> - -{{ ad_block }} - -</div> +              <div class="promo"> +              {{ ad_block }} +              </div>  </ul>              </div> @@ -199,6 +212,7 @@      <script src="{{ base_url }}/js/jquery-1.8.1-min.js"></script>      <script src="{{ base_url }}/js/prettify-1.0.js"></script>      <script src="{{ base_url }}/js/bootstrap-2.1.1-min.js"></script> +      <script>        //$('.side-nav').scrollspy()        var shiftWindow = function() { scrollBy(0, -50) }; @@ -162,8 +162,8 @@ for (dirpath, dirnames, filenames) in os.walk(docs_dir):          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>""") +            output = output.replace('{{ ad_block }}', """<hr/> +              <script type="text/javascript" src="//cdn.fusionads.net/fusion.js?zoneid=1332&serve=C6SDP2Y&placement=djangorestframework" id="_fusionads_js"></script>""")          else:              output = output.replace('{{ ad_block }}', '') | 
