You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2020/08/03 09:18:30 UTC

[cayenne-website] branch master updated: Fix JavaDoc search this is a temporary fix, permanent one will be done in the javadoc plugin settings and published with the next release

This is an automated email from the ASF dual-hosted git repository.

ntimofeev pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 51999ad  Fix JavaDoc search  this is a temporary fix, permanent one will be done in the javadoc plugin settings and published with the next release
51999ad is described below

commit 51999ad6fb1149ebf2bca4bedc8f5409af32d827
Author: Nikita Timofeev <st...@gmail.com>
AuthorDate: Mon Aug 3 12:18:19 2020 +0300

    Fix JavaDoc search
     this is a temporary fix, permanent one will be done in the javadoc plugin settings and published with the next release
---
 src/main/site/static/docs/4.1/api/search.js | 20 +-------------------
 src/main/site/static/docs/4.2/api/search.js | 20 +-------------------
 2 files changed, 2 insertions(+), 38 deletions(-)

diff --git a/src/main/site/static/docs/4.1/api/search.js b/src/main/site/static/docs/4.1/api/search.js
index b773531..2897c2f 100644
--- a/src/main/site/static/docs/4.1/api/search.js
+++ b/src/main/site/static/docs/4.1/api/search.js
@@ -41,25 +41,7 @@ function getHighlightedText(item) {
     return label;
 }
 function getURLPrefix(ui) {
-    var urlPrefix="";
-    if (useModuleDirectories) {
-        var slash = "/";
-        if (ui.item.category === catModules) {
-            return ui.item.l + slash;
-        } else if (ui.item.category === catPackages && ui.item.m) {
-            return ui.item.m + slash;
-        } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) {
-            $.each(packageSearchIndex, function(index, item) {
-                if (ui.item.p == item.l) {
-                    urlPrefix = item.m + slash;
-                }
-            });
-            return urlPrefix;
-        } else {
-            return urlPrefix;
-        }
-    }
-    return urlPrefix;
+    return "";
 }
 var watermark = 'Search';
 $(function() {
diff --git a/src/main/site/static/docs/4.2/api/search.js b/src/main/site/static/docs/4.2/api/search.js
index b773531..2897c2f 100644
--- a/src/main/site/static/docs/4.2/api/search.js
+++ b/src/main/site/static/docs/4.2/api/search.js
@@ -41,25 +41,7 @@ function getHighlightedText(item) {
     return label;
 }
 function getURLPrefix(ui) {
-    var urlPrefix="";
-    if (useModuleDirectories) {
-        var slash = "/";
-        if (ui.item.category === catModules) {
-            return ui.item.l + slash;
-        } else if (ui.item.category === catPackages && ui.item.m) {
-            return ui.item.m + slash;
-        } else if ((ui.item.category === catTypes && ui.item.p) || ui.item.category === catMembers) {
-            $.each(packageSearchIndex, function(index, item) {
-                if (ui.item.p == item.l) {
-                    urlPrefix = item.m + slash;
-                }
-            });
-            return urlPrefix;
-        } else {
-            return urlPrefix;
-        }
-    }
-    return urlPrefix;
+    return "";
 }
 var watermark = 'Search';
 $(function() {