From f750dbd9afb10fd7e439ef4ee49efda7637f5c0c Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sat, 15 Jul 2023 14:22:11 +0800 Subject: [PATCH] feat: added git page --- docs/.vuepress/dist/en/guide/spider/git.html | 57 ++++++++++++++++++++ docs/.vuepress/dist/zh/guide/spider/git.html | 57 ++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 docs/.vuepress/dist/en/guide/spider/git.html create mode 100644 docs/.vuepress/dist/zh/guide/spider/git.html diff --git a/docs/.vuepress/dist/en/guide/spider/git.html b/docs/.vuepress/dist/en/guide/spider/git.html new file mode 100644 index 0000000..6034dc2 --- /dev/null +++ b/docs/.vuepress/dist/en/guide/spider/git.html @@ -0,0 +1,57 @@ + + + + + + + + Git Integration + + + + + + +

Git Integration


Git Integration

Crawlab allows users to configure a Git repository for version control of their spiders. This is very useful for team collaboration.

Configure Git Repository

  1. Navigate to the Git tab on the spider details page.
  2. Enter the URL of the Git repository, and the system will detect whether it's HTTPS or SSH.
  3. Enter the username and password for the Git repository or SSH key.
  4. Click the Save button.

Switch Branch

  1. Click the Checkout button.
  2. Select the branch you want to check out.
  3. Click the Confirm button.

Pull Code

  1. Click the Pull button and confirm.
  2. The system will pull the code from the remote repository.

Configure Auto Pull

  1. Check the Auto Pull option.
  2. Select the interval for code pulling.
  3. For spiders with the Auto Pull option checked, the system will automatically pull the code every minute.

Commit Changes

  1. Select the Changes tab.
  2. Check the files you want to commit.
  3. Click the Commit button and confirm.
+ + + diff --git a/docs/.vuepress/dist/zh/guide/spider/git.html b/docs/.vuepress/dist/zh/guide/spider/git.html new file mode 100644 index 0000000..24986dd --- /dev/null +++ b/docs/.vuepress/dist/zh/guide/spider/git.html @@ -0,0 +1,57 @@ + + + + + + + + Git 集成 + + + + + + +

Git 集成


Git 集成

Crawlab 允许用户设置 Git 仓库以便于爬虫的版本控制。这对于团队协作非常有用。

设置 Git 仓库

  1. 导航到爬虫详情页面的 Git 标签。
  2. 输入 Git 仓库的 URL,系统会检测出是否为 HTTPS 或 SSH。
  3. 输入 Git 仓库的用户名和密码,或者 SSH 密钥。
  4. 点击 保存 按钮。

切换分支

  1. 点击 签出 按钮。
  2. 选择要签出的分支。
  3. 点击 确认 按钮。

拉取代码

  1. 点击 拉取 按钮并确认。
  2. 系统会从远端拉取代码。

设置自动拉取代码

  1. 勾选 自动拉取 选项。
  2. 选择拉取代码的时间间隔。
  3. 对于勾选上 自动拉取 选项的爬虫,系统会每过 1 分钟自动拉取代码。

提交变更

  1. 选择 变更 标签。
  2. 勾选变更的文件。
  3. 点击 提交 按钮并确认。
+ + +