From eb9c8bfea0a2af4cb83765b783b18e13a17dae12 Mon Sep 17 00:00:00 2001 From: Joel Alan <31396322+lxfu1@users.noreply.github.com> Date: Sun, 8 Oct 2023 17:33:39 +0800 Subject: [PATCH 1/3] chore: analytics and docs search (#2135) --- packages/site/.dumirc.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/site/.dumirc.ts b/packages/site/.dumirc.ts index 784655b426..60f0d3013e 100644 --- a/packages/site/.dumirc.ts +++ b/packages/site/.dumirc.ts @@ -26,8 +26,11 @@ export default defineConfig({ '0.x': 'https://v0-charts.ant.design/', }, docsearchOptions: { - apiKey: 'cd83d8f913aeb993cd93f45fdbe9b5ac', - // indexName: 'charts-ant-design', + appId: 'I1DYJKMAUK', + apiKey: '5d0fcf465bcfa6fe6ef14d1bb1b7fb0f', + indexName: 'ant-design-charts-antgroup', + // container: '### REPLACE ME WITH A CONTAINER (e.g. div) ###', + debug: false, }, navs: [ { @@ -447,4 +450,12 @@ export default defineConfig({ }, links: [], scripts: [], + analytics: { + // google analytics 的 key (GA 4) + // ga_v2: 'G-abcdefg', + // 若你在使用 GA v1 旧版本,请使用 `ga` 来配置 + ga_v2: 'G-59GRRXNS00', + // 百度统计的 key + // baidu: 'baidu_tongji_key', + }, }); From 1e1450d5c5c836a2f9a8a53b1da47c5f7a3a4706 Mon Sep 17 00:00:00 2001 From: lxfu1 <954055752@qq.com> Date: Sun, 8 Oct 2023 20:39:54 +0800 Subject: [PATCH 2/3] chore: website redirection --- docs/index.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docs/index.html diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000000..5ef05cd7e3 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + +
+ + + \ No newline at end of file From 80299111c1d970ece6e98ff77a1bd36db5480978 Mon Sep 17 00:00:00 2001 From: lxfu1 <954055752@qq.com> Date: Sun, 8 Oct 2023 20:41:05 +0800 Subject: [PATCH 3/3] chore: add CNAME --- docs/CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/CNAME diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000000..a9ba219397 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +charts.ant.design