Skip to content

Commit

Permalink
fixup! themes/mkdocs: Pass inline data to JS as a JSON object, not ra…
Browse files Browse the repository at this point in the history
…w Javascript
  • Loading branch information
nbraud committed Nov 17, 2019
1 parent 4eb29c4 commit 1540c4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mkdocs/themes/mkdocs/js/base.js
Expand Up @@ -20,6 +20,10 @@ $(document).ready(function() {
$search_modal = $('#mkdocs_search_modal'),
$keyboard_modal = $('#mkdocs_keyboard_modal');

// Make base_url global, so external scripts can find it
// (e.g. the search plugin)
window.base_url = base_url;

if(highlightjs) {
hljs.initHighlightingOnLoad();
}
Expand Down

0 comments on commit 1540c4e

Please sign in to comment.