aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTom Christie2013-05-18 14:50:49 +0100
committerTom Christie2013-05-18 14:50:49 +0100
commit794413734f78576194ed95fc203cebdc3da075b5 (patch)
tree25fd5b596199d306c3c79da494ad2872eed82f08 /docs
parent2e8ff4473bbfe4c8d7ead59e299a663d1a493478 (diff)
parent72bc5a35569e75468442287e74656e4b18adc163 (diff)
downloaddjango-rest-framework-794413734f78576194ed95fc203cebdc3da075b5.tar.bz2
Merge branch 'master' of https://github.com/mmcardle/django-rest-framework into styling-fixes
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/browsable-api.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/topics/browsable-api.md b/docs/topics/browsable-api.md
index 8ee01824..65f76abc 100644
--- a/docs/topics/browsable-api.md
+++ b/docs/topics/browsable-api.md
@@ -35,6 +35,17 @@ A suitable replacement theme can be generated using Bootstrap's [Customize Tool]
You can also change the navbar variant, which by default is `navbar-inverse`, using the `bootstrap_navbar_variant` block. The empty `{% block bootstrap_navbar_variant %}{% endblock %}` will use the original Bootstrap navbar style.
+Full Example
+
+ {% extends "rest_framework/base.html" %}
+
+ {% block bootstrap_theme %}
+ <link rel="stylesheet" href="/path/to/yourtheme/bootstrap.min.css' type="text/css">
+ {% endblock %}
+
+ {% block bootstrap_navbar_variant %}{% endblock %}
+
+
For more specific CSS tweaks, use the `style` block instead.