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

github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 5937670f9 Automated deployment: 
615ed08846ef65139d22d20cf5a9be19c05c7298
5937670f9 is described below

commit 5937670f9dd9f75cc9b44e1565f6bab87a53debc
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Jul 25 05:16:32 2022 +0000

    Automated deployment: 615ed08846ef65139d22d20cf5a9be19c05c7298
---
 python/_static/basic.css                | 31 +------------------------------
 python/_static/documentation_options.js |  2 +-
 python/_static/searchtools.js           | 17 ++++++++---------
 python/searchindex.js                   |  2 +-
 4 files changed, 11 insertions(+), 41 deletions(-)

diff --git a/python/_static/basic.css b/python/_static/basic.css
index 7d5974c32..eeb0519a6 100644
--- a/python/_static/basic.css
+++ b/python/_static/basic.css
@@ -608,8 +608,6 @@ ol.simple p,
 ul.simple p {
     margin-bottom: 0;
 }
-
-/* Docutils 0.17 and older (footnotes & citations) */
 dl.footnote > dt,
 dl.citation > dt {
     float: left;
@@ -627,33 +625,6 @@ dl.citation > dd:after {
     clear: both;
 }
 
-/* Docutils 0.18+ (footnotes & citations) */
-aside.footnote > span,
-div.citation > span {
-    float: left;
-}
-aside.footnote > span:last-of-type,
-div.citation > span:last-of-type {
-  padding-right: 0.5em;
-}
-aside.footnote > p {
-  margin-left: 2em;
-}
-div.citation > p {
-  margin-left: 4em;
-}
-aside.footnote > p:last-of-type,
-div.citation > p:last-of-type {
-    margin-bottom: 0em;
-}
-aside.footnote > p:last-of-type:after,
-div.citation > p:last-of-type:after {
-    content: "";
-    clear: both;
-}
-
-/* Footnotes & citations ends */
-
 dl.field-list {
     display: grid;
     grid-template-columns: fit-content(30%) auto;
@@ -665,11 +636,11 @@ dl.field-list > dt {
     padding-left: 0.5em;
     padding-right: 5px;
 }
-
 dl.field-list > dt:after {
     content: ":";
 }
 
+
 dl.field-list > dd {
     padding-left: 0.5em;
     margin-top: 0em;
diff --git a/python/_static/documentation_options.js 
b/python/_static/documentation_options.js
index 42c2b5a20..ac431fffd 100644
--- a/python/_static/documentation_options.js
+++ b/python/_static/documentation_options.js
@@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
     SOURCELINK_SUFFIX: '.txt',
     NAVIGATION_WITH_KEYS: false,
     SHOW_SEARCH_SUMMARY: true,
-    ENABLE_SEARCH_SHORTCUTS: false,
+    ENABLE_SEARCH_SHORTCUTS: true,
 };
\ No newline at end of file
diff --git a/python/_static/searchtools.js b/python/_static/searchtools.js
index ac4d5861f..f2fb7d5cf 100644
--- a/python/_static/searchtools.js
+++ b/python/_static/searchtools.js
@@ -88,7 +88,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => {
   linkEl.href = linkUrl + "?" + params.toString() + anchor;
   linkEl.innerHTML = title;
   if (descr)
-    listItem.appendChild(document.createElement("span")).innerText =
+    listItem.appendChild(document.createElement("span")).innerHTML =
       " (" + descr + ")";
   else if (showSearchSummary)
     fetch(requestUrl)
@@ -155,10 +155,8 @@ const Search = {
   _pulse_status: -1,
 
   htmlToText: (htmlString) => {
-    const htmlElement = document
-      .createRange()
-      .createContextualFragment(htmlString);
-    _removeChildren(htmlElement.querySelectorAll(".headerlink"));
+    const htmlElement = new DOMParser().parseFromString(htmlString, 
'text/html');
+    htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() 
});
     const docContent = htmlElement.querySelector('[role="main"]');
     if (docContent !== undefined) return docContent.textContent;
     console.warn(
@@ -504,11 +502,12 @@ const Search = {
    * latter for highlighting it.
    */
   makeSearchSummary: (htmlText, keywords, highlightWords) => {
-    const text = Search.htmlToText(htmlText).toLowerCase();
+    const text = Search.htmlToText(htmlText);
     if (text === "") return null;
 
+    const textLower = text.toLowerCase();
     const actualStartPosition = [...keywords]
-      .map((k) => text.indexOf(k.toLowerCase()))
+      .map((k) => textLower.indexOf(k.toLowerCase()))
       .filter((i) => i > -1)
       .slice(-1)[0];
     const startWithContext = Math.max(actualStartPosition - 120, 0);
@@ -516,9 +515,9 @@ const Search = {
     const top = startWithContext === 0 ? "" : "...";
     const tail = startWithContext + 240 < text.length ? "..." : "";
 
-    let summary = document.createElement("div");
+    let summary = document.createElement("p");
     summary.classList.add("context");
-    summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
+    summary.textContent = top + text.substr(startWithContext, 240).trim() + 
tail;
 
     highlightWords.forEach((highlightWord) =>
       _highlightText(summary, highlightWord, "highlighted")
diff --git a/python/searchindex.js b/python/searchindex.js
index 9a6b17ba1..de8e26217 100644
--- a/python/searchindex.js
+++ b/python/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["api", "cli", "concept", "config", 
"howto/index", "howto/remote-submit", "index", "start", "tasks/condition", 
"tasks/datax", "tasks/dependent", "tasks/flink", "tasks/func_wrap", 
"tasks/http", "tasks/index", "tasks/map_reduce", "tasks/procedure", 
"tasks/python", "tasks/sagemaker", "tasks/shell", "tasks/spark", "tasks/sql", 
"tasks/sub_process", "tasks/switch", "tutorial"], "filenames": ["api.rst", 
"cli.rst", "concept.rst", "config.rst", "howto/index.rst", "how [...]
\ No newline at end of file
+Search.setIndex({"docnames": ["api", "cli", "concept", "config", 
"howto/index", "howto/remote-submit", "index", "start", "tasks/condition", 
"tasks/datax", "tasks/dependent", "tasks/flink", "tasks/func_wrap", 
"tasks/http", "tasks/index", "tasks/map_reduce", "tasks/procedure", 
"tasks/python", "tasks/sagemaker", "tasks/shell", "tasks/spark", "tasks/sql", 
"tasks/sub_process", "tasks/switch", "tutorial"], "filenames": ["api.rst", 
"cli.rst", "concept.rst", "config.rst", "howto/index.rst", "how [...]
\ No newline at end of file

Reply via email to