From eb0e57191a358a03037796a519947a3c26b18488 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Sun, 20 Dec 2015 22:55:01 +0000 Subject: [PATCH 1/4] Fix overriding templates --- rest_framework_docs/templates/rest_framework_docs/docs.html | 3 +++ rest_framework_docs/templates/rest_framework_docs/home.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 rest_framework_docs/templates/rest_framework_docs/docs.html diff --git a/rest_framework_docs/templates/rest_framework_docs/docs.html b/rest_framework_docs/templates/rest_framework_docs/docs.html new file mode 100644 index 0000000..a109fac --- /dev/null +++ b/rest_framework_docs/templates/rest_framework_docs/docs.html @@ -0,0 +1,3 @@ +{% extends "rest_framework_docs/base.html" %} + +{# Override this template in your own templates directory to customize #} diff --git a/rest_framework_docs/templates/rest_framework_docs/home.html b/rest_framework_docs/templates/rest_framework_docs/home.html index 3dcf126..c195df3 100644 --- a/rest_framework_docs/templates/rest_framework_docs/home.html +++ b/rest_framework_docs/templates/rest_framework_docs/home.html @@ -1,4 +1,4 @@ -{% extends "rest_framework_docs/base.html" %} +{% extends "rest_framework_docs/docs.html" %} {% block apps_menu %} {% regroup endpoints by name_parent as endpoints_grouped %} From aacb1dddd972c63e7ffd384491568330cc449c3f Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Sun, 20 Dec 2015 23:10:19 +0000 Subject: [PATCH 2/4] Improve MANIFEST.in --- MANIFEST.in | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 3d9af21..ee1f35d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,12 @@ include README.md include LICENSE +include MANIFEST.in -recursive-include rest_framework_docs/static * -recursive-include rest_framework_docs/templates *.html +global-exclude __pycache__ +global-exclude *.py[co] +global-exclude package.json -recursive-exclude rest_framework_docs/static/node_modules *.* -recursive-exclude * __pycache__ -recursive-exclude * *.py[co] +prune rest_framework_docs/static/node_modules + +graft rest_framework_docs/static/rest_framework_docs +graft rest_framework_docs/templates/rest_framework_docs From 16067d332b1cde78a71ea06b93b79c7bf9889670 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Sun, 20 Dec 2015 23:17:00 +0000 Subject: [PATCH 3/4] Add extra blocks to allow overrides --- .../templates/rest_framework_docs/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rest_framework_docs/templates/rest_framework_docs/base.html b/rest_framework_docs/templates/rest_framework_docs/base.html index ff5a6b4..10afffc 100644 --- a/rest_framework_docs/templates/rest_framework_docs/base.html +++ b/rest_framework_docs/templates/rest_framework_docs/base.html @@ -9,11 +9,13 @@ {% block title %}DRF Docs{% endblock %} - + {% block style %} + {% endblock %} + {% block github_badge %} @@ -21,6 +23,7 @@ + {% endblock %}
@@ -51,10 +54,12 @@
+ {% block jumbotron %}

DRF Docs

Document Web APIs made with Django Rest Framework.

+ {% endblock %} {% block content %}{% endblock %} From ddd03d77c66242145ed617d54d61d54060153d15 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Sun, 20 Dec 2015 23:19:06 +0000 Subject: [PATCH 4/4] Bump 0.0.4 --- rest_framework_docs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework_docs/__init__.py b/rest_framework_docs/__init__.py index ffcc925..156d6f9 100644 --- a/rest_framework_docs/__init__.py +++ b/rest_framework_docs/__init__.py @@ -1 +1 @@ -__version__ = '0.0.3' +__version__ = '0.0.4'