From 64523f1edcb3690402414aaed337407fcaffe81e Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Tue, 21 Apr 2015 08:01:27 +0100 Subject: [PATCH 1/8] Update the Documentation 404.html template to subclass base.html This allows us to delete lots of code and avoid hard-coding the navigation. This does mean that {{ current_page }} isn't always available and needs to be conditionally used. --- docs_theme/404.html | 219 ++----------------------------------------- docs_theme/base.html | 32 ++++--- 2 files changed, 25 insertions(+), 226 deletions(-) diff --git a/docs_theme/404.html b/docs_theme/404.html index 44993e37d..ce520a7c1 100644 --- a/docs_theme/404.html +++ b/docs_theme/404.html @@ -1,216 +1,9 @@ - - +{% extends "base.html" %} - - - - Django REST framework - 404 - Page not found - - - - - +{% block content %} - - - - - +

404

+

Page not found

+

Try the homepage, or search the documentation.

- - - - - - - - -
- - - -
-
- - - -
-
-

404

-

Page not found -

-

Try the homepage, or search the documentation.

-
- -
- -
- -
- - -
-
- - - - - - - - - - - - - +{% endblock %} diff --git a/docs_theme/base.html b/docs_theme/base.html index b3066eb31..83ce0b4ce 100644 --- a/docs_theme/base.html +++ b/docs_theme/base.html @@ -8,7 +8,7 @@ - + @@ -54,7 +54,7 @@ } - +
@@ -104,7 +104,7 @@
From d118cee7ddf6f685a2a938dbfe03af1a7d8a94b6 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Tue, 21 Apr 2015 08:04:04 +0100 Subject: [PATCH 2/8] As of MkDocs 0.12 the Home link was added back to the navigation --- docs_theme/nav.html | 1 - 1 file changed, 1 deletion(-) diff --git a/docs_theme/nav.html b/docs_theme/nav.html index ca1afc0ec..e6ab01bad 100644 --- a/docs_theme/nav.html +++ b/docs_theme/nav.html @@ -19,7 +19,6 @@ {% if include_nav %}