Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitcode 或者gitee 也镜像一份呗,解决查看github例子 间歇性打不开 #161

Open
jingjingxyk opened this issue Aug 1, 2023 · 1 comment

Comments

@jingjingxyk
Copy link

jingjingxyk commented Aug 1, 2023

缘由:文档中 https://github.com/swoole/library/blob/master/src/core/Coroutine/WaitGroup.php 中的例子,点击链接,间歇性打不开。
解决办法:使用代理 、或者使用镜像

最佳方案: 使用镜像

这个也需要镜像 : https://github.com/swoole/docs.git (查看例子方便)

@jingjingxyk
Copy link
Author

为了方便使用可以借助浏览器扩展ReplaceGoogleCDN 的自定义规则功能,自动跳转到镜像文档

如下规则例子:

github.com/swoole/swoole-src 自动跳转到镜像 gitee.com/swoole/swoole

[
  {
    "action": {
      "redirect": {
        "regexSubstitution": "gitee.com/swoole/swoole\\1"
      },
      "type": "redirect"
    },
    "condition": {
      "regexFilter": "github\\.com/swoole/swoole-src(.*?)",
      "requestDomains": [
        "github.com"
      ],
      "resourceTypes": [
        "main_frame",
        "sub_frame",
        "stylesheet",
        "script",
        "image",
        "font",
        "object",
        "xmlhttprequest",
        "ping",
        "csp_report",
        "media",
        "websocket",
        "other"
      ]
    },
    "id": 20022,
    "priority": 1000
  }
]

github.com/swoole/swoole-cli 自动跳转到镜像 gitee.com/swoole/swoole-cli

[
  {
    "action": {
      "redirect": {
        "regexSubstitution": "gitee.com/swoole/swoole-cli\\1"
      },
      "type": "redirect"
    },
    "condition": {
      "regexFilter": "github\\.com/swoole/swoole-cli(.*?)",
      "requestDomains": [
        "github.com"
      ],
      "resourceTypes": [
        "main_frame",
        "sub_frame",
        "stylesheet",
        "script",
        "image",
        "font",
        "object",
        "xmlhttprequest",
        "ping",
        "csp_report",
        "media",
        "websocket",
        "other"
      ]
    },
    "id": 20021,
    "priority": 1000
  }
]

@jingjingxyk jingjingxyk changed the title gitcode 或者gitee 也镜像一份呗,解决查看例子 间歇性打不开 gitcode 或者gitee 也镜像一份呗,解决查看github例子 间歇性打不开 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant