diff options
| author | Dougal Matthews | 2014-12-10 11:33:30 +0000 |
|---|---|---|
| committer | Dougal Matthews | 2014-12-10 11:34:26 +0000 |
| commit | dbc5c066c2219a0ef8a0c2197b5f163b06cf57c2 (patch) | |
| tree | 35fed7b011843f8fd4c2961d3251634cd3e4266d /docs_theme | |
| parent | 9883862576ebcc82d1dc5ba052376d0f9292f868 (diff) | |
| download | django-rest-framework-dbc5c066c2219a0ef8a0c2197b5f163b06cf57c2.tar.bz2 | |
Add a theme.js file to enable highlighing
Diffstat (limited to 'docs_theme')
| -rw-r--r-- | docs_theme/base.html | 1 | ||||
| -rw-r--r-- | docs_theme/js/theme.js | 5 |
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'); + +}); |
