doc: update doc site
parent
295c417f49
commit
11c52d487d
|
@ -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",
|
||||
|
|
|
@ -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 =
|
||||
|
|
|
@ -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 || [];
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue