aboutsummaryrefslogtreecommitdiffstats
path: root/docs/template.html
diff options
context:
space:
mode:
authorTom Christie2012-09-07 15:25:58 -0700
committerTom Christie2012-09-07 15:25:58 -0700
commit8f119a8c34c1ebb3cf82152aa7900d316f64c0d8 (patch)
tree66b91abceb1d13adfa4100ce7a9eeafab1c8b428 /docs/template.html
parent80c50bfd2d8680d4836ccf0f3594518622dfec02 (diff)
parentf95f96aba7c7f1ea26af09b9e768d5c8997bac98 (diff)
downloaddjango-rest-framework-8f119a8c34c1ebb3cf82152aa7900d316f64c0d8.tar.bz2
Merge pull request #253 from droptype/rf2-docfixes
Fixes for the documentation styles
Diffstat (limited to 'docs/template.html')
-rw-r--r--docs/template.html84
1 files changed, 23 insertions, 61 deletions
diff --git a/docs/template.html b/docs/template.html
index 629481ac..42d030d3 100644
--- a/docs/template.html
+++ b/docs/template.html
@@ -8,47 +8,8 @@
<!-- Le styles -->
<link href="{{ base_url }}/css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 60px;
- padding-bottom: 40px;
- }
- .sidebar-nav {
- padding: 9px 0;
- }
- .nav-list li.main {
- font-weight: bold;
- }
- blockquote {
-font-family: Georgia, serif;
-font-size: 18px;
-font-style: italic;
-margin: 0.25em 0;
-padding: 0.25em 40px;
-line-height: 1.45;
-position: relative;
-color: #383838;
-border-left: none;
-}
-
-blockquote:before {
-display: block;
-content: "\201C";
-font-size: 80px;
-position: absolute;
-left: -10px;
-top: -20px;
-color: #7a7a7a;
-}
-
-blockquote p:last-child {
-color: #999999;
-font-size: 14px;
-display: block;
-margin-top: 5px;
-}
- </style>
<link href="{{ base_url }}/css/bootstrap-responsive.css" rel="stylesheet">
+ <link href="{{ base_url }}/css/drf-styles.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
@@ -108,14 +69,14 @@ margin-top: 5px;
</li>
</ul>
<ul class="nav pull-right">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Version: 2.0.0 <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">Trunk</a></li>
- <li><a href="#">2.0.0</a></li>
- </ul>
- </li>
- </ul>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Version: 2.0.0 <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Trunk</a></li>
+ <li><a href="#">2.0.0</a></li>
+ </ul>
+ </li>
+ </ul>
</div><!--/.nav-collapse -->
</div>
</div>
@@ -123,16 +84,16 @@ margin-top: 5px;
<div class="container-fluid">
<div class="row-fluid">
- <div class="span3">
- <div class="well affix span3">
- <ul class="nav nav-list side-nav">
-{{ toc }}
- </ul>
- </div>
+ <div class="span3">
+ <div id="table-of-contents" class="well affix span3">
+ <ul class="nav nav-list side-nav">
+ {{ toc }}
+ </ul>
+ </div>
</div>
- <div class="span9">
-{{ content }}
+ <div id="main-content" class="span9">
+ {{ content }}
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
@@ -140,13 +101,14 @@ margin-top: 5px;
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
- <script src="{{ base_url }}/js/jquery.js"></script>
+ <script src="{{ base_url }}/js/jquery-1.8.1-min.js"></script>
<script src="{{ base_url }}/js/bootstrap-dropdown.js"></script>
<script src="{{ base_url }}/js/bootstrap-scrollspy.js"></script>
+ <script src="{{ base_url }}/js/bootstrap-collapse.js"></script>
<script>
- //$('.side-nav').scrollspy()
- var shiftWindow = function() { scrollBy(0, -50) };
- if (location.hash) shiftWindow();
- window.addEventListener("hashchange", shiftWindow);
+ //$('.side-nav').scrollspy()
+ var shiftWindow = function() { scrollBy(0, -50) };
+ if (location.hash) shiftWindow();
+ window.addEventListener("hashchange", shiftWindow);
</script>
</body></html> \ No newline at end of file