This is an automated email from the ASF dual-hosted git repository.
wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus-website.git
The following commit(s) were added to refs/heads/master by this push:
new 9e7f1517 Use local js/css instead of CDN for docsearch (#29)
9e7f1517 is described below
commit 9e7f151702de863e08dfa500344fe5e1f4561229
Author: Yingchun Lai <[email protected]>
AuthorDate: Mon Nov 6 16:12:06 2023 +0800
Use local js/css instead of CDN for docsearch (#29)
---
_includes/algolia.html | 1 -
_includes/head.html | 3 ++-
assets/css/docsearch.v3.css | 8 ++++++++
assets/js/docsearch.v3.js | 9 +++++++++
4 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/_includes/algolia.html b/_includes/algolia.html
index 2705c1f5..afb56c2a 100644
--- a/_includes/algolia.html
+++ b/_includes/algolia.html
@@ -1,4 +1,3 @@
- <script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
<script>
docsearch({
container: '#docsearch',
diff --git a/_includes/head.html b/_includes/head.html
index e5c6c870..fb5f0e76 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -5,9 +5,10 @@
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
<link rel="shortcut icon" href="{{ site.baseurl
}}/assets/images/favicon.ico">
<link rel="stylesheet" href="/assets/css/utilities.min.css">
- <link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
+ <link rel="stylesheet" href="/assets/css/docsearch.v3.css">
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/all.min.js"></script>
+ <script src="/assets/js/docsearch.v3.js"></script>
{% seo %}
{%- if site.google_analytics -%}
{%- include google-analytics.html -%}
diff --git a/assets/css/docsearch.v3.css b/assets/css/docsearch.v3.css
new file mode 100644
index 00000000..cc01909e
--- /dev/null
+++ b/assets/css/docsearch.v3.css
@@ -0,0 +1,8 @@
+/**
+ * Skipped minification because the original files appears to be already
minified.
+ * Original file: /npm/@docsearch/[email protected]/dist/style.css
+ *
+ * Do NOT use SRI with dynamically generated files! More information:
https://www.jsdelivr.com/using-sri-with-dynamic-files
+ */
+/*! @docsearch/css 3.5.2 | MIT License | © Algolia, Inc. and contributors |
https://docsearch.algolia.com */
+:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,0.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset
1px 1px 0 0 hsla(0,0%,100%,0.5),0 3px 8px 0 #555a64;--do [...]
\ No newline at end of file
diff --git a/assets/js/docsearch.v3.js b/assets/js/docsearch.v3.js
new file mode 100644
index 00000000..029a8114
--- /dev/null
+++ b/assets/js/docsearch.v3.js
@@ -0,0 +1,9 @@
+/**
+ * Skipped minification because the original files appears to be already
minified.
+ * Original file: /npm/@docsearch/[email protected]/dist/umd/index.js
+ *
+ * Do NOT use SRI with dynamically generated files! More information:
https://www.jsdelivr.com/using-sri-with-dynamic-files
+ */
+/*! @docsearch/js 3.5.2 | MIT License | © Algolia, Inc. and contributors |
https://docsearch.algolia.com */
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof
module?module.exports=t():"function"==typeof
define&&define.amd?define(t):(e=e||self).docsearch=t()}(this,(function(){"use
strict";function e(e,t){var
n=Object.keys(e);if(Object.getOwnPropertySymbols){var
r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return
Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return
n}function t(t){for(var n=1;n<arguments.length;n++){var
o=null!=arguments[n]?arg [...]
+//# sourceMappingURL=index.js.map
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]