This is an automated email from the ASF dual-hosted git repository. jeffreyh 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 f5e8ee950ca chore:remove cdnd (#1957) f5e8ee950ca is described below commit f5e8ee950ca40639718ea6cda014d33efa1bf011 Author: yangon <2689991...@qq.com> AuthorDate: Tue Feb 4 14:19:24 2025 +0800 chore:remove cdnd (#1957) --- config/custom-docusaurus-plugin.js | 2 +- config/ssrTemplate.js | 8 ++++---- docusaurus.config.js | 2 +- src/pages/_download/index.tsx | 4 ++-- src/theme/SearchBar/searchByWorker.js | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/custom-docusaurus-plugin.js b/config/custom-docusaurus-plugin.js index f390f679171..07cc8fc0db2 100644 --- a/config/custom-docusaurus-plugin.js +++ b/config/custom-docusaurus-plugin.js @@ -1,5 +1,5 @@ const path = require('path'); -const publicPath = 'https://cdnd.selectdb.com'; +const publicPath = 'https://doris.apache.org'; module.exports = function (context, options) { return { name: 'custom-docusaurus-plugin', diff --git a/config/ssrTemplate.js b/config/ssrTemplate.js index 1199c3cf57c..9e35b53f489 100644 --- a/config/ssrTemplate.js +++ b/config/ssrTemplate.js @@ -1,4 +1,4 @@ -const fetchUrl = "https://cdnd.selectdb.com"; +const fetchUrl = "https://doris.apache.org"; module.exports = { ssrTemplate: `<!DOCTYPE html> @@ -15,10 +15,10 @@ module.exports = { <%~ metaAttribute %> <% }); %> <% it.stylesheets.forEach((stylesheet) => { %> - <link rel="stylesheet" href="<%= 'https://cdnd.selectdb.com' %><%= it.baseUrl %><%= stylesheet %>" /> + <link rel="stylesheet" href="<%= 'https://doris.apache.org' %><%= it.baseUrl %><%= stylesheet %>" /> <% }); %> <% it.scripts.forEach((script) => { %> - <link rel="preload" href="<%= 'https://cdnd.selectdb.com' %><%= it.baseUrl %><%= script %>" as="script"> + <link rel="preload" href="<%= 'https://doris.apache.org' %><%= it.baseUrl %><%= script %>" as="script"> <% }); %> </head> <body <%~ it.bodyAttributes %>> @@ -27,7 +27,7 @@ module.exports = { <%~ it.appHtml %> </div> <% it.scripts.forEach((script) => { %> - <script src="<%= 'https://cdnd.selectdb.com' %><%= it.baseUrl %><%= script %>"></script> + <script src="<%= 'https://doris.apache.org' %><%= it.baseUrl %><%= script %>"></script> <% }); %> <%~ it.postBodyTags %> </body> diff --git a/docusaurus.config.js b/docusaurus.config.js index 3955d2626d0..0f33bc747fe 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,7 +6,7 @@ const VERSIONS = require('./versions.json'); const { markdownBoldPlugin } = require('./config/markdown-bold-plugin'); const lightCodeTheme = themes.dracula; -const logoImg = 'https://cdnd.selectdb.com/images/logo.svg'; +const logoImg = 'https://doris.apache.org/images/logo.svg'; function getDocsVersions() { const result = {}; diff --git a/src/pages/_download/index.tsx b/src/pages/_download/index.tsx index 51b93e4ab1d..721ea68f963 100644 --- a/src/pages/_download/index.tsx +++ b/src/pages/_download/index.tsx @@ -96,8 +96,8 @@ export default function Download(): JSX.Element { const downloadDocument = () => { const url = currentLocale === 'en' - ? 'https://cdnd.selectdb.com/assets/files/Apache Doris Docs (English).pdf' - : 'https://cdnd.selectdb.com/assets/files/Apache Doris Docs (中文).pdf'; + ? 'https://doris.apache.org/assets/files/Apache Doris Docs (English).pdf' + : 'https://doris.apache.org/assets/files/Apache Doris Docs (中文).pdf'; downloadFile(url); }; diff --git a/src/theme/SearchBar/searchByWorker.js b/src/theme/SearchBar/searchByWorker.js index ac747cf390a..caf0810dcf6 100644 --- a/src/theme/SearchBar/searchByWorker.js +++ b/src/theme/SearchBar/searchByWorker.js @@ -9,7 +9,7 @@ function getRemoteWorker() { remoteWorkerPromise = (async () => { const timestamp = Date.now(); const Remote = Comlink.wrap( - new Worker(getWorkerURL(`https://cdnd.selectdb.com/worker.js?_=${timestamp}`)), + new Worker(getWorkerURL(`https://doris.apache.org/worker.js?_=${timestamp}`)), ); return await new Remote(); })(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org