aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDougal Matthews2014-12-10 11:33:30 +0000
committerDougal Matthews2014-12-10 11:34:26 +0000
commitdbc5c066c2219a0ef8a0c2197b5f163b06cf57c2 (patch)
tree35fed7b011843f8fd4c2961d3251634cd3e4266d
parent9883862576ebcc82d1dc5ba052376d0f9292f868 (diff)
downloaddjango-rest-framework-dbc5c066c2219a0ef8a0c2197b5f163b06cf57c2.tar.bz2
Add a theme.js file to enable highlighing
-rw-r--r--docs_theme/base.html1
-rw-r--r--docs_theme/js/theme.js5
2 files changed, 6 insertions, 0 deletions
diff --git a/docs_theme/base.html b/docs_theme/base.html
index 25bd33ef..b3066eb3 100644
--- a/docs_theme/base.html
+++ b/docs_theme/base.html
@@ -169,6 +169,7 @@
<script src="{{ base_url }}/js/jquery-1.8.1-min.js"></script>
<script src="{{ base_url }}/js/prettify-1.0.js"></script>
<script src="{{ base_url }}/js/bootstrap-2.1.1-min.js"></script>
+ <script src="{{ base_url }}/js/theme.js"></script>
<script>
//$('.side-nav').scrollspy()
diff --git a/docs_theme/js/theme.js b/docs_theme/js/theme.js
new file mode 100644
index 00000000..73607be5
--- /dev/null
+++ b/docs_theme/js/theme.js
@@ -0,0 +1,5 @@
+$(function(){
+
+ $('pre code').parent().addClass('prettyprint well');
+
+});