doc: update doc site

pull/6358/head
tangjinzhou 2023-03-14 10:30:18 +08:00
parent 295c417f49
commit 11c52d487d
4 changed files with 6 additions and 15 deletions

View File

@ -36,7 +36,7 @@
"precompile": "npm run version & npm run collect-token-statistic & npm run token-meta",
"pretest": "npm run version",
"predist": "npm run version",
"presite": "npm run version & npm run collect-token-statistic & npm run token-meta",
"presite": "npm run version & npm run routes & npm run collect-token-statistic & npm run token-meta",
"dev": "npm run predev && npm run routes && vite serve site",
"test": "cross-env NODE_ENV=test jest --config .jest.js",
"compile": "node antd-tools/cli/run.js compile",
@ -59,7 +59,7 @@
"routes": "node site/scripts/genrateRoutes.js",
"tsc": "tsc --noEmit",
"vue-tsc": "vue-tsc --noEmit",
"site": "npm run routes && ./node_modules/vite/bin/vite.js build site --base=https://www.antdv.com/",
"site": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build site --base=https://next.antdv.com/",
"pub:site": "npm run site && node site/scripts/pushToOSS.js",
"prepare": "husky install",
"version": "node ./scripts/generate-version",

View File

@ -50,17 +50,12 @@
}
</style>
<script>
if (
location.host === 'ant-design-vue.gitee.io' ||
location.host === 'vue.ant.design' ||
location.host === 'next.antdv.com'
) {
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
location.replace(location.href.replace(location.host, 'www.antdv.com'));
}
var _hmt = _hmt || [];
var srcMap = {
'ant-design-vue.gitee.io': 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441',
'vue.ant.design': 'https://hm.baidu.com/hm.js?f0ba868f114e674b816b4880f7525811',
'www.antdv.com': 'https://hm.baidu.com/hm.js?4ad38a0c8f0960d731b654425317da22',
};
var src =

View File

@ -23,11 +23,7 @@
}
</style>
<script>
if (
location.host === 'ant-design-vue.gitee.io' ||
location.host === 'vue.ant.design' ||
location.host === 'next.antdv.com'
) {
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
location.replace(location.href.replace(location.host, 'www.antdv.com'));
}
var _hmt = _hmt || [];

View File

@ -8,9 +8,9 @@ const accessKeyId = process.env.ALI_OSS_ACCESSKEY;
const accessKeySecret = process.env.ALI_OSS_SECRETKEY;
const client = new OSS({
bucket: 'next-antdv',
bucket: '4x-antdv',
cname: 'true',
endpoint: 'next-antdv.oss-cn-beijing.aliyuncs.com',
endpoint: '4x-antdv.oss-cn-beijing.aliyuncs.com',
region: 'oss-cn-beijing',
accessKeyId,
accessKeySecret,