|
1 ay önce | |
---|---|---|
1x.antv.design | 2 ay önce | |
2x.antv.design | 2 ay önce | |
3x.antv.design | 2 ay önce | |
ant-design-vue | 2 ay önce | |
better-scroll-docs | 2 ay önce | |
electron-website | 1 ay önce | |
element-plus | 1 ay önce | |
tauri | 1 ay önce | |
tauri-docs | 1 ay önce | |
tauri-docs-v1 | 1 ay önce | |
v2-doc | 2 ay önce | |
操作说明 | 2 ay önce | |
.gitignore | 2 ay önce | |
README.md | 1 ay önce | |
docker-compose.yml | 1 ay önce | |
nginx.conf | 1 ay önce | |
push.sh | 2 ay önce |
1、可以删除 "puppeteer": "^5.2.1", 因为 mac M1 芯片不支持低版本的puppeteer,同时 Chrome 下载存在问题,可以忽略这个依赖 2、puppeteer 主要是作为单元测试存在
由于 node 版本过高需要在打包之前执行下面的方法,避免触发
这个错误是由于 Node.js 版本与项目使用的加密算法不兼容导致的。错误信息显示:Error: error:0308010C:digital envelope routines::unsupported。
这个问题通常出现在使用较新版本的 Node.js(比如 Node.js 18+)运行较旧的项目时。我们可以通过设置环境变量 NODE_OPTIONS 来解决这个问题:
export NODE_OPTIONS=--openssl-legacy-provider && yarn vue:build
export NODE_OPTIONS=--openssl-legacy-provider && yarn docs:build
文档打包成功之后,文件位置是 better-scroll/packages/vuepress-docs/dist
修改文件内容 better-scroll/packages/vuepress-docs/docs/.vuepress/config.js
module.exports = {
base: '/',
publicPath: '/',
// ... 维持正常的逻辑
}
127.0.0.1 element2.hht.test
127.0.0.1 vue2.hht.test
127.0.0.1 vue3.hht.test
127.0.0.1 vant.hht.test
127.0.0.1 ant-design.hht.test
127.0.0.1 4x-ant-design.hht.test
127.0.0.1 3x-ant-design.hht.test
127.0.0.1 2x-ant-design.hht.test
127.0.0.1 better-scroll-docs.hht.test
下载 gh-pages 分支的最后一次提交
git clone --branch gh-pages --depth=1 --single-branch https://github.com/ant-design/4x.ant.design.git
git clone --branch gh-pages --depth=1 --single-branch https://github.com/vueComponent/ant-design-vue.git
临时启动 web-sercer
python3 -m http.server 8899
docker-compose up -d