From d72a56f37f59d0700d163b67d5af78fc545c91f7 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Fri, 31 Oct 2014 15:02:47 +0000 Subject: Move the docs theme out of the docs folder. --- docs_theme/404.html | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++ docs_theme/base.html | 160 ++++++++++++++++++++++++++++++++++++++++ docs_theme/nav.html | 45 ++++++++++++ 3 files changed, 406 insertions(+) create mode 100644 docs_theme/404.html create mode 100644 docs_theme/base.html create mode 100644 docs_theme/nav.html (limited to 'docs_theme') diff --git a/docs_theme/404.html b/docs_theme/404.html new file mode 100644 index 00000000..864247e7 --- /dev/null +++ b/docs_theme/404.html @@ -0,0 +1,201 @@ + + + + + Django REST framework - 404 - Page not found + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + +
+
+

404

+

Page not found

+

Try the homepage, or search the documentation.

+
+
+
+
+ +
+
+ + + + + + + + + + diff --git a/docs_theme/base.html b/docs_theme/base.html new file mode 100644 index 00000000..4ca6cd81 --- /dev/null +++ b/docs_theme/base.html @@ -0,0 +1,160 @@ + + + + + {{ page_title }} + + + + + + + + + + + + + + + + + + + {# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #} + + +
+ + {% include "nav.html" %} + +
+
+ + + + +
+ +
+ +
+ + +
+
+ +
+ {{ content }} +
+
+
+
+ +
+
+ + + + + + + + + + + diff --git a/docs_theme/nav.html b/docs_theme/nav.html new file mode 100644 index 00000000..a7a72d68 --- /dev/null +++ b/docs_theme/nav.html @@ -0,0 +1,45 @@ + + -- cgit v1.2.3 From 16d442dda3ee9d4ff40d067d76706959aac4c6a3 Mon Sep 17 00:00:00 2001 From: José Padilla Date: Fri, 31 Oct 2014 09:04:39 -0400 Subject: Use MkDocs meta.source to render source code links --- docs_theme/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs_theme') diff --git a/docs_theme/base.html b/docs_theme/base.html index 4ca6cd81..07582392 100644 --- a/docs_theme/base.html +++ b/docs_theme/base.html @@ -118,7 +118,7 @@ a.fusion-poweredby {
- {{ content }} + {% include "content.html" %}
-- cgit v1.2.3 From 361827350a8bd4efb4d6a09bcb29c0185a5454ed Mon Sep 17 00:00:00 2001 From: José Padilla Date: Fri, 31 Oct 2014 10:25:19 -0400 Subject: Move content template into base.html --- docs_theme/base.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'docs_theme') diff --git a/docs_theme/base.html b/docs_theme/base.html index 07582392..67290df6 100644 --- a/docs_theme/base.html +++ b/docs_theme/base.html @@ -118,7 +118,15 @@ a.fusion-poweredby {
- {% include "content.html" %} + {% if meta.source %} + {% for filename in meta.source %} + + {{ filename }} + + {% endfor %} + {% endif %} + + {{ content }}
-- cgit v1.2.3 From 3bfc82068b068defee470910a850757e4c12df3b Mon Sep 17 00:00:00 2001 From: José Padilla Date: Fri, 31 Oct 2014 11:38:27 -0400 Subject: Update tabbing and cleanup theme templates --- docs_theme/404.html | 211 ++++++++++++++++++++++------------------- docs_theme/base.html | 259 +++++++++++++++++++++++++++------------------------ docs_theme/nav.html | 51 +++++----- 3 files changed, 274 insertions(+), 247 deletions(-) (limited to 'docs_theme') diff --git a/docs_theme/404.html b/docs_theme/404.html index 864247e7..44993e37 100644 --- a/docs_theme/404.html +++ b/docs_theme/404.html @@ -1,50 +1,54 @@ - - - Django REST framework - 404 - Page not found - - - - - - - - - - - - - - - - - - + + + + + Django REST framework - 404 - Page not found + + + + + + + + + + + + + + + + + + +
- - - + + -
-
+ + + + + + + + -
- +
+ + - - - - - - + + + + - // Dynamically force sidenav to no higher than browser window - $('.side-nav').css('max-height', window.innerHeight - 130); - - $(function(){ - $(window).resize(function(){ - $('.side-nav').css('max-height', window.innerHeight - 130); - }); - }); - - + diff --git a/docs_theme/base.html b/docs_theme/base.html index 67290df6..544e2188 100644 --- a/docs_theme/base.html +++ b/docs_theme/base.html @@ -1,56 +1,62 @@ - - - {{ page_title }} - - - - - - - - - - - - - - - - - - - {# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #} - + + + + + {{ page_title }} + + + + + + + + + + + + + + + + + + + +{# TODO: This is a bit of a hack. We don't want to refer to the file specifically. #} + +
@@ -59,32 +65,34 @@ a.fusion-poweredby {
- - + +
@@ -98,18 +106,16 @@ a.fusion-poweredby {
@@ -127,42 +133,51 @@ a.fusion-poweredby { {% endif %} {{ content }} -
-
-
-
- -
-
+ + + + + + + + +
+ + - - - - - - - + + + + + - // Dynamically force sidenav to no higher than browser window - $('.side-nav').css('max-height', window.innerHeight - 130); - - $(function(){ - $(window).resize(function(){ - $('.side-nav').css('max-height', window.innerHeight - 130); - }); - }); - - + diff --git a/docs_theme/nav.html b/docs_theme/nav.html index a7a72d68..87e197b3 100644 --- a/docs_theme/nav.html +++ b/docs_theme/nav.html @@ -1,11 +1,10 @@ - -- cgit v1.2.3 From b8aa7e0c34dc839a47b679aa2402d0f1b98704a0 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Tue, 18 Nov 2014 17:16:54 +0000 Subject: Fix previous and next links --- docs_theme/nav.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs_theme') diff --git a/docs_theme/nav.html b/docs_theme/nav.html index 87e197b3..0f3b9871 100644 --- a/docs_theme/nav.html +++ b/docs_theme/nav.html @@ -2,8 +2,12 @@