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",
|
"precompile": "npm run version & npm run collect-token-statistic & npm run token-meta",
|
||||||
"pretest": "npm run version",
|
"pretest": "npm run version",
|
||||||
"predist": "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",
|
"dev": "npm run predev && npm run routes && vite serve site",
|
||||||
"test": "cross-env NODE_ENV=test jest --config .jest.js",
|
"test": "cross-env NODE_ENV=test jest --config .jest.js",
|
||||||
"compile": "node antd-tools/cli/run.js compile",
|
"compile": "node antd-tools/cli/run.js compile",
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
"routes": "node site/scripts/genrateRoutes.js",
|
"routes": "node site/scripts/genrateRoutes.js",
|
||||||
"tsc": "tsc --noEmit",
|
"tsc": "tsc --noEmit",
|
||||||
"vue-tsc": "vue-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",
|
"pub:site": "npm run site && node site/scripts/pushToOSS.js",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"version": "node ./scripts/generate-version",
|
"version": "node ./scripts/generate-version",
|
||||||
|
|
|
@ -50,17 +50,12 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
if (
|
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
|
||||||
location.host === 'ant-design-vue.gitee.io' ||
|
|
||||||
location.host === 'vue.ant.design' ||
|
|
||||||
location.host === 'next.antdv.com'
|
|
||||||
) {
|
|
||||||
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
||||||
}
|
}
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
var srcMap = {
|
var srcMap = {
|
||||||
'ant-design-vue.gitee.io': 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441',
|
'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',
|
'www.antdv.com': 'https://hm.baidu.com/hm.js?4ad38a0c8f0960d731b654425317da22',
|
||||||
};
|
};
|
||||||
var src =
|
var src =
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
if (
|
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
|
||||||
location.host === 'ant-design-vue.gitee.io' ||
|
|
||||||
location.host === 'vue.ant.design' ||
|
|
||||||
location.host === 'next.antdv.com'
|
|
||||||
) {
|
|
||||||
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
||||||
}
|
}
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
|
|
|
@ -8,9 +8,9 @@ const accessKeyId = process.env.ALI_OSS_ACCESSKEY;
|
||||||
const accessKeySecret = process.env.ALI_OSS_SECRETKEY;
|
const accessKeySecret = process.env.ALI_OSS_SECRETKEY;
|
||||||
|
|
||||||
const client = new OSS({
|
const client = new OSS({
|
||||||
bucket: 'next-antdv',
|
bucket: '4x-antdv',
|
||||||
cname: 'true',
|
cname: 'true',
|
||||||
endpoint: 'next-antdv.oss-cn-beijing.aliyuncs.com',
|
endpoint: '4x-antdv.oss-cn-beijing.aliyuncs.com',
|
||||||
region: 'oss-cn-beijing',
|
region: 'oss-cn-beijing',
|
||||||
accessKeyId,
|
accessKeyId,
|
||||||
accessKeySecret,
|
accessKeySecret,
|
||||||
|
|
Loading…
Reference in New Issue