-
Notifications
You must be signed in to change notification settings - Fork 52
国内镜像地址及更新方式
偏右 edited this page Oct 23, 2020
·
18 revisions
AntV 系列网站部署在 gh-pages 上,同时使用 https://gitee.com/ 同步了一份国内镜像用于加速和备份。镜像源码和网址对应如下:
⚠️ 注意,除了 AntV 首页,所有镜像仓库都不在 https://gitee.com/antv 组织下,不要同步错了。
📣📣📣 上面所有仓库已绑定了自动同步的 GitHub Action,GitHub 上提交即可自动同步 Gitee,不再需要进行下面的手动操作步骤。
如果未能自动更新,可按下面的方式进行手动同步。
首先登录 gitee,将 gitee 账号发给 @afc163 申请 gitee 对应仓库权限。
然后有两种更新方式:
点击仓库旁边的同步按钮即可!gitee 会自动去同步 GitHub 上的 gh-pages
分支。
由于码云同步要走队列,有时候第一种方式会非常慢。着急的话,可以尝试手动 push 本地的 gh-pages 到 gitee 上。
- 和 GitHub 一样,首先要绑定 sshkey 到 gitee 上:https://gitee.com/profile/sshkeys
- 在 GitHub 的本地仓库目录添加 gitee 的 git 源(注意改成对应仓库的地址):
git remote add gitee [email protected]:antv/antv.git
- 切换到
gh-pages
分支并从 GitHub 上拉出最新代码。git checkout gh-pages git pull origin gh-pages
- 将最新的
gh-pages
push 到 gitee 源上。git push gitee gh-pages
点击同步按钮或者手动 push 后,网站会自动更新好。如果 gitee 反应比较慢,可到 https://gitee.com/{组织名}/{仓库名}/pages
页面下点击『更新』按钮强制更新。
比如 G2Plot 的链接:https://gitee.com/antv-g2plot/antv-g2plot/pages