Skip to content

国内镜像地址及更新方式

偏右 edited this page Oct 23, 2020 · 18 revisions

AntV 系列网站部署在 gh-pages 上,同时使用 https://gitee.com/ 同步了一份国内镜像用于加速和备份。镜像源码和网址对应如下:

⚠️ 注意,除了 AntV 首页,所有镜像仓库都不在 https://gitee.com/antv 组织下,不要同步错了。

项目 GitHub 仓库 gitee 镜像仓库 gitee 镜像网址
AntV 首页 https://github.com/antvis/antvis.github.io https://gitee.com/antv/antv https://antv.gitee.io
G2 https://github.com/antvis/g2 https://gitee.com/antv-g2/antv-g2 https://antv-g2.gitee.io
G2Plot https://github.com/antvis/g2plot https://gitee.com/antv-g2plot/antv-g2plot https://antv-g2plot.gitee.io
G6 https://github.com/antvis/g6 https://gitee.com/antv-g6/antv-g6 https://antv-g6.gitee.io
F2 https://github.com/antvis/f2 https://gitee.com/antv-f2/antv-f2 https://antv-f2.gitee.io
L7 https://github.com/antvis/l7 https://gitee.com/antv-l7/antv-l7 https://antv-l7.gitee.io
Graphin https://github.com/antvis/graphin https://gitee.com/antv-graphin/antv-graphin https://antv-graphin.gitee.io
G https://github.com/antvis/g https://gitee.com/antv-g/antv-g https://antv-g.gitee.io
X6 https://github.com/antvis/X6 https://gitee.com/antv-x6/antv-x6 https://antv-x6.gitee.io

更新方式

📣📣📣 上面所有仓库已绑定了自动同步的 GitHub Action,GitHub 上提交即可自动同步 Gitee,不再需要进行下面的手动操作步骤。

如果未能自动更新,可按下面的方式进行手动同步。


首先登录 gitee,将 gitee 账号发给 @afc163 申请 gitee 对应仓库权限。

然后有两种更新方式:

一键同步

点击仓库旁边的同步按钮即可!gitee 会自动去同步 GitHub 上的 gh-pages 分支。

手动 push

由于码云同步要走队列,有时候第一种方式会非常慢。着急的话,可以尝试手动 push 本地的 gh-pages 到 gitee 上。

  1. 和 GitHub 一样,首先要绑定 sshkey 到 gitee 上:https://gitee.com/profile/sshkeys
  2. 在 GitHub 的本地仓库目录添加 gitee 的 git 源(注意改成对应仓库的地址):
    git remote add gitee [email protected]:antv/antv.git
    
  3. 切换到 gh-pages 分支并从 GitHub 上拉出最新代码。
    git checkout gh-pages
    git pull origin gh-pages
    
  4. 将最新的 gh-pages push 到 gitee 源上。
    git push gitee gh-pages
    

大功告成

点击同步按钮或者手动 push 后,网站会自动更新好。如果 gitee 反应比较慢,可到 https://gitee.com/{组织名}/{仓库名}/pages 页面下点击『更新』按钮强制更新。

比如 G2Plot 的链接:https://gitee.com/antv-g2plot/antv-g2plot/pages

Clone this wiki locally