diff options
Diffstat (limited to 'tutorial')
| -rw-r--r-- | tutorial/1-serialization.html | 24 | ||||
| -rw-r--r-- | tutorial/2-requests-and-responses.html | 24 | ||||
| -rw-r--r-- | tutorial/3-class-based-views.html | 24 | ||||
| -rw-r--r-- | tutorial/4-authentication-and-permissions.html | 24 | ||||
| -rw-r--r-- | tutorial/5-relationships-and-hyperlinked-apis.html | 24 | ||||
| -rw-r--r-- | tutorial/6-viewsets-and-routers.html | 24 | ||||
| -rw-r--r-- | tutorial/quickstart.html | 24 |
7 files changed, 133 insertions, 35 deletions
diff --git a/tutorial/1-serialization.html b/tutorial/1-serialization.html index 9eab9dae..b8bb8e72 100644 --- a/tutorial/1-serialization.html +++ b/tutorial/1-serialization.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="1-serialization-page"> @@ -180,11 +195,9 @@ <li><a href="#testing-our-first-attempt-at-a-web-api">Testing our first attempt at a Web API</a></li> <li><a href="#where-are-we-now">Where are we now</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -499,6 +512,7 @@ Quit the server with CONTROL-C. <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; diff --git a/tutorial/2-requests-and-responses.html b/tutorial/2-requests-and-responses.html index 11405143..9d7a0626 100644 --- a/tutorial/2-requests-and-responses.html +++ b/tutorial/2-requests-and-responses.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="2-requests-and-responses-page"> @@ -178,11 +193,9 @@ <li><a href="#hows-it-looking">How's it looking?</a></li> <li><a href="#whats-next">What's next?</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -338,6 +351,7 @@ curl -X POST http://127.0.0.1:8000/snippets/ -d '{"code": "print 456"}' -H "Cont <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; diff --git a/tutorial/3-class-based-views.html b/tutorial/3-class-based-views.html index b6f4137a..601d9960 100644 --- a/tutorial/3-class-based-views.html +++ b/tutorial/3-class-based-views.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="3-class-based-views-page"> @@ -173,11 +188,9 @@ <li><a href="#using-mixins">Using mixins</a></li> <li><a href="#using-generic-class-based-views">Using generic class based views</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -331,6 +344,7 @@ class SnippetDetail(generics.RetrieveUpdateDestroyAPIView): <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; diff --git a/tutorial/4-authentication-and-permissions.html b/tutorial/4-authentication-and-permissions.html index 923a2c67..6dd45e3c 100644 --- a/tutorial/4-authentication-and-permissions.html +++ b/tutorial/4-authentication-and-permissions.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="4-authentication-and-permissions-page"> @@ -179,11 +194,9 @@ <li><a href="#authenticating-with-the-api">Authenticating with the API</a></li> <li><a href="#summary">Summary</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -367,6 +380,7 @@ class IsOwnerOrReadOnly(permissions.BasePermission): <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; diff --git a/tutorial/5-relationships-and-hyperlinked-apis.html b/tutorial/5-relationships-and-hyperlinked-apis.html index 276c1d69..843d25b7 100644 --- a/tutorial/5-relationships-and-hyperlinked-apis.html +++ b/tutorial/5-relationships-and-hyperlinked-apis.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="5-relationships-and-hyperlinked-apis-page"> @@ -176,11 +191,9 @@ <li><a href="#adding-pagination">Adding pagination</a></li> <li><a href="#browsing-the-api">Browsing the API</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -333,6 +346,7 @@ urlpatterns += patterns('', <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; diff --git a/tutorial/6-viewsets-and-routers.html b/tutorial/6-viewsets-and-routers.html index 5422f7ea..11016a1c 100644 --- a/tutorial/6-viewsets-and-routers.html +++ b/tutorial/6-viewsets-and-routers.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="6-viewsets-and-routers-page"> @@ -176,11 +191,9 @@ <li><a href="#reviewing-our-work">Reviewing our work</a></li> <li><a href="#onwards-and-upwards">Onwards and upwards</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -322,6 +335,7 @@ urlpatterns = patterns('', <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; diff --git a/tutorial/quickstart.html b/tutorial/quickstart.html index b94e976e..78a85226 100644 --- a/tutorial/quickstart.html +++ b/tutorial/quickstart.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="quickstart-page"> @@ -176,11 +191,9 @@ <li><a href="#settings">Settings</a></li> <li><a href="#testing-our-api">Testing our API</a></li> - <div> - - - -</div> + <div class="promo"> + + </div> </ul> </div> @@ -348,6 +361,7 @@ REST_FRAMEWORK = { <script src="http://www.django-rest-framework.org/js/jquery-1.8.1-min.js"></script> <script src="http://www.django-rest-framework.org/js/prettify-1.0.js"></script> <script src="http://www.django-rest-framework.org/js/bootstrap-2.1.1-min.js"></script> + <script> //$('.side-nav').scrollspy() var shiftWindow = function() { scrollBy(0, -50) }; |
