This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new fcff4471e32 (app) use cdnd.selectdb.com (#232)
fcff4471e32 is described below
commit fcff4471e32e151241bf1acda920afe299c051d5
Author: Jeffrey <[email protected]>
AuthorDate: Tue May 23 15:17:15 2023 +0800
(app) use cdnd.selectdb.com (#232)
---
.github/actions/aliyun-oss-website-action | 2 +-
config/custom-docusaurus-plugin.js | 4 ++--
config/ssrTemplate.js | 6 +++---
docusaurus.config.js | 2 +-
src/pages/download/index.tsx | 4 ++--
src/theme/SearchBar/fetchIndexes.js | 2 +-
6 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/.github/actions/aliyun-oss-website-action
b/.github/actions/aliyun-oss-website-action
index 01b7450a7ce..6bc13bae37e 160000
--- a/.github/actions/aliyun-oss-website-action
+++ b/.github/actions/aliyun-oss-website-action
@@ -1 +1 @@
-Subproject commit 01b7450a7ce5676150fd0c10b9a462cb07d07b0a
+Subproject commit 6bc13bae37e1ea22bbd64868aaed4b27eee567f2
diff --git a/config/custom-docusaurus-plugin.js
b/config/custom-docusaurus-plugin.js
index 1dca9c2fe0a..543a0924e7c 100644
--- a/config/custom-docusaurus-plugin.js
+++ b/config/custom-docusaurus-plugin.js
@@ -9,8 +9,8 @@ module.exports = function (context, options) {
...config.output,
publicPath:
context.i18n.currentLocale === 'en'
- ? 'https://cdn-tencent.selectdb.com/'
- : 'https://cdn-tencent.selectdb.com/zh-CN/',
+ ? 'https://cdnd.selectdb.com/'
+ : 'https://cdnd.selectdb.com/zh-CN/',
},
};
},
diff --git a/config/ssrTemplate.js b/config/ssrTemplate.js
index 68ab734b064..37923ae8cc4 100644
--- a/config/ssrTemplate.js
+++ b/config/ssrTemplate.js
@@ -13,10 +13,10 @@ module.exports = {
<%~ metaAttribute %>
<% }); %>
<% it.stylesheets.forEach((stylesheet) => { %>
- <link rel="stylesheet" href="<%= 'https://cdn-tencent.selectdb.com'
%><%= it.baseUrl %><%= stylesheet %>" />
+ <link rel="stylesheet" href="<%= 'https://cdnd.selectdb.com' %><%=
it.baseUrl %><%= stylesheet %>" />
<% }); %>
<% it.scripts.forEach((script) => { %>
- <link rel="preload" href="<%= 'https://cdn-tencent.selectdb.com' %><%=
it.baseUrl %><%= script %>" as="script">
+ <link rel="preload" href="<%= 'https://cdnd.selectdb.com' %><%=
it.baseUrl %><%= script %>" as="script">
<% }); %>
</head>
<body <%~ it.bodyAttributes %>>
@@ -25,7 +25,7 @@ module.exports = {
<%~ it.appHtml %>
</div>
<% it.scripts.forEach((script) => { %>
- <script src="<%= 'https://cdn-tencent.selectdb.com' %><%= it.baseUrl
%><%= script %>"></script>
+ <script src="<%= 'https://cdnd.selectdb.com' %><%= it.baseUrl %><%=
script %>"></script>
<% }); %>
<%~ it.postBodyTags %>
</body>
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 75d56d96716..0d05d006e46 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -179,7 +179,7 @@ const config = {
title: '',
logo: {
alt: 'Doris',
- src: 'https://cdn-tencent.selectdb.com/images/logo.svg',
+ src: 'https://cdnd.selectdb.com/images/logo.svg',
},
items: [
{ to: '/', label: 'Home', position: 'left', exact: true },
diff --git a/src/pages/download/index.tsx b/src/pages/download/index.tsx
index 7be46a42373..ae07f4d0373 100644
--- a/src/pages/download/index.tsx
+++ b/src/pages/download/index.tsx
@@ -85,8 +85,8 @@ export default function Download(): JSX.Element {
const downloadDocument = () => {
const url =
currentLocale === 'en'
- ? 'https://cdn-tencent.selectdb.com/assets/files/Apache Doris
Docs (English).pdf'
- : 'https://cdn-tencent.selectdb.com/assets/files/Apache Doris
Docs (中文).pdf';
+ ? 'https://cdnd.selectdb.com/assets/files/Apache Doris Docs
(English).pdf'
+ : 'https://cdnd.selectdb.com/assets/files/Apache Doris Docs
(中文).pdf';
downloadFile(url);
};
diff --git a/src/theme/SearchBar/fetchIndexes.js
b/src/theme/SearchBar/fetchIndexes.js
index 0019caf7e2a..4a9f974043a 100644
--- a/src/theme/SearchBar/fetchIndexes.js
+++ b/src/theme/SearchBar/fetchIndexes.js
@@ -3,7 +3,7 @@ import { searchIndexUrl } from '../../utils/proxiedGenerated';
export async function fetchIndexes(baseUrl) {
if (process.env.NODE_ENV === 'production') {
// const json = await (await
fetch(`${baseUrl}${searchIndexUrl}`)).json();
- const json = await (await
fetch(`https://cdn-tencent.selectdb.com${baseUrl}${searchIndexUrl}`)).json();
+ const json = await (await
fetch(`https://cdnd.selectdb.com${baseUrl}${searchIndexUrl}`)).json();
const wrappedIndexes = json.map(({ documents, index }, type) => ({
type: type,
documents,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]