-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9330d90
commit e93ea3b
Showing
98 changed files
with
24,174 additions
and
24,172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
name: Deploy static content to Cloudflare Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- gh-pages | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
name: Publish to Cloudflare Pages | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- run: npm ci | ||
- name: Replace URL | ||
# if you put those in secrets, you can replace vars by secrets | ||
run: | | ||
sed -i "s#https://urlplaceholder.com#${{ vars.CF_PAGES_URL }}#g" ./docusaurus.config.js | ||
sed -i "s#/baseurlplaceholder#${{ vars.CF_PAGES_BASEURL }}#g" ./docusaurus.config.js | ||
- name: Build website | ||
run: npm run build | ||
|
||
- name: Publish to Cloudflare Pages | ||
uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# change projectName to your project name | ||
projectName: ${{ vars.CF_PROJRCT_NAME }} | ||
directory: ./ | ||
# Optional: Enable this if you want to have GitHub Deployments triggered | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | ||
# Optional: Switch what branch you are publishing to. | ||
# By default this will be the branch which triggered this workflow | ||
branch: ${{ github.ref_name }} | ||
# Optional: Change the working directory | ||
# All my website content is in the site folder | ||
workingDirectory: ./build/ | ||
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta` | ||
wranglerVersion: '3' | ||
|
||
name: Deploy static content to Cloudflare Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- gh-pages | ||
- main | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
name: Publish to Cloudflare Pages | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
|
||
- run: npm ci | ||
- name: Replace URL | ||
# if you put those in secrets, you can replace vars by secrets | ||
run: | | ||
sed -i "s#https://urlplaceholder.com#${{ vars.CF_PAGES_URL }}#g" ./docusaurus.config.js | ||
sed -i "s#/baseurlplaceholder#${{ vars.CF_PAGES_BASEURL }}#g" ./docusaurus.config.js | ||
- name: Build website | ||
run: npm run build | ||
|
||
- name: Publish to Cloudflare Pages | ||
uses: cloudflare/pages-action@v1 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
# change projectName to your project name | ||
projectName: ${{ vars.CF_PROJRCT_NAME }} | ||
directory: ./ | ||
# Optional: Enable this if you want to have GitHub Deployments triggered | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | ||
# Optional: Switch what branch you are publishing to. | ||
# By default this will be the branch which triggered this workflow | ||
branch: ${{ github.ref_name }} | ||
# Optional: Change the working directory | ||
# All my website content is in the site folder | ||
workingDirectory: ./build/ | ||
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta` | ||
wranglerVersion: '3' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
.obsidian | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
# Dependencies | ||
/node_modules | ||
|
||
# Production | ||
/build | ||
|
||
# Generated files | ||
.docusaurus | ||
.cache-loader | ||
.obsidian | ||
|
||
# Misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
gooringx: | ||
name: GooRingX | ||
title: Maintainer of Karing | ||
url: https://github.com/GooRingX | ||
image_url: https://github.com/gooringx.png | ||
|
||
elon: | ||
name: Elon Junior | ||
title: Four Star Dragon Ball Holder | ||
url: https://github.com/ElonJunior | ||
image_url: https://github.com/elonjunior.png | ||
gooringx: | ||
name: GooRingX | ||
title: Maintainer of Karing | ||
url: https://github.com/GooRingX | ||
image_url: https://github.com/gooringx.png | ||
|
||
elon: | ||
name: Elon Junior | ||
title: Four Star Dragon Ball Holder | ||
url: https://github.com/ElonJunior | ||
image_url: https://github.com/elonjunior.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
--- | ||
authors: [elon] | ||
tags: [广告屏蔽,BanAD,category-ads,geosite] | ||
--- | ||
|
||
# 自定义规则 屏蔽广告 | ||
- karing默认集成[ACL和geosite规则](https://github.com/KaringX/karing-ruleset/) | ||
- 直接利用 `acl:BanAD` 和 `geosite:category-ads` 即可屏蔽广告 | ||
|
||
## 设置流程 | ||
|
||
### 操作步骤 | ||
#### 1 开启规则 | ||
- 设置 -> 分流 -> *分流规则* -> 右上角修改按钮(✏图案) | ||
- -> 自定义分流组 右上角➕号 -> 备注 `BanAD` | ||
- -> 在规则列表中选择 *BanAD* | ||
- -> 下拉至内置规则 `Rule Set(build-in)` | ||
- 搜索选择 `acl:BanAD` 和 `geosite:category-ads` | ||
- 右上角 点击√保存 | ||
|
||
#### 2 定义规则动作 | ||
- 设置 -> 分流 -> *分流规则* -> 刚才定义的规则组 `BanAD` -> 选择 **拦截** | ||
|
||
- 返回首页, 重连即生效 | ||
|
||
|
||
### 关于 category-ads | ||
- geosite:category-ads 包含了常见的广告域名。 | ||
- geosite:category-ads-all 包含了常见的广告域名,以及广告提供商的域名。 | ||
|
||
|
||
|
||
|
||
### 以下步骤适用老版本 (小于v1.0.35.460) | ||
|
||
#### 1 开启规则 | ||
- 设置 -> 分流 -> *ACL* -> 打开 `启用`, 进入 ACL -> 搜索并打开 `BanAD` | ||
- 设置 -> 分流 -> *GeoSite* -> 打开 `启用`, 进入 GeoSite -> 搜索并打开 `category-ads` | ||
|
||
#### 2 定义规则动作 | ||
- 设置 -> 分流 -> *分流规则* -> `ACL:BanAD` -> 选择 **拦截** | ||
- 设置 -> 分流 -> *分流规则* -> `GeoSite:category-ads` -> 选择 **拦截** | ||
|
||
- 返回首页, 重连即生效 | ||
|
||
--- | ||
authors: [elon] | ||
tags: [广告屏蔽,BanAD,category-ads,geosite] | ||
--- | ||
|
||
# 自定义规则 屏蔽广告 | ||
- karing默认集成[ACL和geosite规则](https://github.com/KaringX/karing-ruleset/) | ||
- 直接利用 `acl:BanAD` 和 `geosite:category-ads` 即可屏蔽广告 | ||
|
||
## 设置流程 | ||
|
||
### 操作步骤 | ||
#### 1 开启规则 | ||
- 设置 -> 分流 -> *分流规则* -> 右上角修改按钮(✏图案) | ||
- -> 自定义分流组 右上角➕号 -> 备注 `BanAD` | ||
- -> 在规则列表中选择 *BanAD* | ||
- -> 下拉至内置规则 `Rule Set(build-in)` | ||
- 搜索选择 `acl:BanAD` 和 `geosite:category-ads` | ||
- 右上角 点击√保存 | ||
|
||
#### 2 定义规则动作 | ||
- 设置 -> 分流 -> *分流规则* -> 刚才定义的规则组 `BanAD` -> 选择 **拦截** | ||
|
||
- 返回首页, 重连即生效 | ||
|
||
|
||
### 关于 category-ads | ||
- geosite:category-ads 包含了常见的广告域名。 | ||
- geosite:category-ads-all 包含了常见的广告域名,以及广告提供商的域名。 | ||
|
||
|
||
|
||
|
||
### 以下步骤适用老版本 (小于v1.0.35.460) | ||
|
||
#### 1 开启规则 | ||
- 设置 -> 分流 -> *ACL* -> 打开 `启用`, 进入 ACL -> 搜索并打开 `BanAD` | ||
- 设置 -> 分流 -> *GeoSite* -> 打开 `启用`, 进入 GeoSite -> 搜索并打开 `category-ads` | ||
|
||
#### 2 定义规则动作 | ||
- 设置 -> 分流 -> *分流规则* -> `ACL:BanAD` -> 选择 **拦截** | ||
- 设置 -> 分流 -> *分流规则* -> `GeoSite:category-ads` -> 选择 **拦截** | ||
|
||
- 返回首页, 重连即生效 | ||
|
Oops, something went wrong.