diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-07-09 10:45:06 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-16 13:17:39 +0200 |
commit | 04cf1cdd3a909fa62e5ffda5b7d04695c749177e (patch) | |
tree | 5c38372dd70f5528bf55c084a1893a7af8e41359 /plugins/javadoc/src/main/resources/views/components | |
parent | 42c6bcdbd564628907491289555c6d6713294fef (diff) | |
download | dokka-04cf1cdd3a909fa62e5ffda5b7d04695c749177e.tar.gz dokka-04cf1cdd3a909fa62e5ffda5b7d04695c749177e.tar.bz2 dokka-04cf1cdd3a909fa62e5ffda5b7d04695c749177e.zip |
Implement javadoc search
Diffstat (limited to 'plugins/javadoc/src/main/resources/views/components')
4 files changed, 10 insertions, 14 deletions
diff --git a/plugins/javadoc/src/main/resources/views/components/base.korte b/plugins/javadoc/src/main/resources/views/components/base.korte index 528bb40e..786f007c 100644 --- a/plugins/javadoc/src/main/resources/views/components/base.korte +++ b/plugins/javadoc/src/main/resources/views/components/base.korte @@ -11,9 +11,8 @@ try { } catch (err) { } //--> -var pathtoroot = "../"; -var useModuleDirectories = true; -loadScripts(document, 'script');</script> +var pathtoroot = "{{ pathToRoot }}"; +</script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> diff --git a/plugins/javadoc/src/main/resources/views/components/head.korte b/plugins/javadoc/src/main/resources/views/components/head.korte index d742a7a9..a3c74f12 100644 --- a/plugins/javadoc/src/main/resources/views/components/head.korte +++ b/plugins/javadoc/src/main/resources/views/components/head.korte @@ -1,19 +1,17 @@ <head> - <!-- Generated by javadoc (11.0.2) on Wed Mar 25 12:07:03 CET 2020 --> <title>{{ title }} ({{ docName }} {{ version }})</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="dc.created" content="2020-03-25"> <link rel="stylesheet" type="text/css" href="{{ pathToRoot }}stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="{{ pathToRoot }}jquery/jquery-ui.css" title="Style"> - <script src="{{ pathToRoot }}tag-search-index.js"></script> - <script src="{{ pathToRoot }}jquery/jszip/dist/jszip.js"></script> - <script type="text/javascript" src="{{ pathToRoot }}script.js"></script> - <script type="text/javascript" src="{{ pathToRoot }}jquery/jszip/dist/jszip.min.js"></script> - <script type="text/javascript" src="{{ pathToRoot }}jquery/jszip-utils/dist/jszip-utils.min.js"></script> - <!--[if IE]> - <script type="text/javascript" src="{{ pathToRoot }}jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> - <![endif]--> <script type="text/javascript" src="{{ pathToRoot }}jquery/jquery-3.3.1.js"></script> <script type="text/javascript" src="{{ pathToRoot }}jquery/jquery-migrate-3.0.1.js"></script> <script type="text/javascript" src="{{ pathToRoot }}jquery/jquery-ui.js"></script> + + <script type="text/javascript" src="{{ pathToRoot }}search.js"></script> + <script async type="text/javascript" src="{{ pathToRoot }}module-search-index.js"></script> + <script async type="text/javascript" src="{{ pathToRoot }}package-search-index.js"></script> + <script async type="text/javascript" src="{{ pathToRoot }}type-search-index.js"></script> + <script async type="text/javascript" src="{{ pathToRoot }}member-search-index.js"></script> + <script async type="text/javascript" src="{{ pathToRoot }}tag-search-index.js"></script> </head>
\ No newline at end of file diff --git a/plugins/javadoc/src/main/resources/views/components/pageStart.korte b/plugins/javadoc/src/main/resources/views/components/pageStart.korte index f369044c..56cf243e 100644 --- a/plugins/javadoc/src/main/resources/views/components/pageStart.korte +++ b/plugins/javadoc/src/main/resources/views/components/pageStart.korte @@ -28,7 +28,6 @@ } //--> var pathtoroot = "{{ pathToRoot }}"; -var useModuleDirectories = true; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> diff --git a/plugins/javadoc/src/main/resources/views/components/subNav.korte b/plugins/javadoc/src/main/resources/views/components/subNav.korte index 69d8467d..aa0905cf 100644 --- a/plugins/javadoc/src/main/resources/views/components/subNav.korte +++ b/plugins/javadoc/src/main/resources/views/components/subNav.korte @@ -5,7 +5,7 @@ {% if type != "bottom" %} <ul class="navListSearch"> <li><label for="search">SEARCH:</label> -<input type="text" id="search" value="search" class="watermark ui-autocomplete-input" autocomplete="off"> +<input type="text" id="search" value="search" class="ui-autocomplete-input" autocomplete="off" placeholder="Search"> <input type="reset" id="reset" value="reset"> </li> </ul> |