File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,6 @@ var getSearchTerm = function() {
9
9
}
10
10
} ;
11
11
12
- var initilizeSearch = function ( ) {
13
- require . config ( { baseUrl : '/mkdocs/js' } ) ;
14
- require ( [ 'search' ] ) ;
15
- } ;
16
-
17
12
$ ( function ( ) {
18
13
var searchTerm = getSearchTerm ( ) ,
19
14
$searchModal = $ ( '#mkdocs_search_modal' ) ,
@@ -30,6 +25,5 @@ $(function() {
30
25
31
26
$searchModal . on ( 'shown' , function ( ) {
32
27
$searchQuery . focus ( ) ;
33
- initilizeSearch ( ) ;
34
28
} ) ;
35
29
} ) ;
Original file line number Diff line number Diff line change @@ -138,14 +138,17 @@ <h3 id="myModalLabel">Documentation search</h3>
138
138
<!-- Le javascript
139
139
================================================== -->
140
140
<!-- Placed at the end of the document so the pages load faster -->
141
+ < script async src ="https://fund.django-rest-framework.org/sidebar_include.js "> </ script >
141
142
< script src ="{{ base_url }}/js/jquery-1.8.1-min.js "> </ script >
142
143
< script src ="{{ base_url }}/js/prettify-1.0.js "> </ script >
143
144
< script src ="{{ base_url }}/js/bootstrap-2.1.1-min.js "> </ script >
144
- < script async src ="https://fund.django-rest-framework.org/sidebar_include.js "> </ script >
145
- < script > var base_url = '{{ base_url }}' ; </ script >
146
- < script src ="{{ base_url }}/mkdocs/js/require.js "> </ script >
147
145
< script src ="{{ base_url }}/js/theme.js "> </ script >
148
146
147
+ < script > var base_url = '{{ base_url }}' ; </ script >
148
+ {% for path in config.extra_javascript %}
149
+ < script src ="{{ path|url }} " defer > </ script >
150
+ {% endfor %}
151
+
149
152
< script >
150
153
var shiftWindow = function ( ) {
151
154
scrollBy ( 0 , - 50 )
You can’t perform that action at this time.
0 commit comments