Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into hotspot_example
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Dec 8, 2021
2 parents 9fd66fe + 3cce310 commit c19ad74
Show file tree
Hide file tree
Showing 133 changed files with 4,043 additions and 2,255 deletions.
19 changes: 19 additions & 0 deletions .github/exclude-links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
http://\$ip:10080/
http://grafana_ip:3000/
http://__grafana_ip__:3000
http:/ip:status_port/config
http:/pd_ip:pd_port/
http:/DASHBOARD_IP:PORT/
https://download.pingcap.org
https://kms.us-west-2.amazonaws.com/
http://9.9.9.9:2379/
http://ip:2379/
http://spark-master-hostname:8080/
http:/\$%7Btidb-server-ip%7D:\$%7Btidb-server-status-port%7D/
http:/\$%7BPD_IP%7D:\$%7BPD_PORT%7D
http://__tidb_ip__:10080
https://s3.amazonaws.com/
http:/192.168.0.16:2379
http:/192.168.0.15:2379
http:/192.168.0.14:2379
https://www.crunchbase.com/organization/
14 changes: 7 additions & 7 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
echo "::set-output name=repo::$(cut -d'/' -f2 <<< ${{ github.repository }})"
echo "::set-output name=sha::$(sha=${{ github.sha }}; echo ${sha:0:6})"
# - name: Repository Dispatch
# uses: peter-evans/repository-dispatch@v1.1.1
# with:
# token: ${{ secrets.PR_TRIGGER_BUILD_TOKEN }}
# repository: pingcap/website-docs/
# event-type: ${{ steps.extract_info.outputs.repo }}/${{ steps.extract_info.outputs.branch }}-${{ steps.extract_info.outputs.sha }}
# client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repo": "${{ github.repository }}"}'
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1.1.1
with:
token: ${{ secrets.PR_TRIGGER_BUILD_TOKEN }}
repository: pingcap/website-docs/
event-type: ${{ steps.extract_info.outputs.repo }}/${{ steps.extract_info.outputs.branch }}-${{ steps.extract_info.outputs.sha }}
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repo": "${{ github.repository }}"}'
31 changes: 0 additions & 31 deletions .github/workflows/link-check.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/link.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Links

on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Link Checker
uses: lycheeverse/lychee-action@v1.1.1
with:
# For parameter description, see https://github.com/lycheeverse/lychee#commandline-parameters
args: -E --exclude-mail -v -i -n -a 429 -t 45 --exclude-file ./.github/exclude-links.txt -- **/*.md
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v3
with:
title: Broken Link Detected
content-filepath: ./lychee/out.md
assignees: TomShawn

# - name: Fail if there were link errors
# run: exit ${{ steps.lychee.outputs.exit_code }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Currently, the official documentation supports two languages:

You can use Google Translate to view the documentation in different languages. For example:

- `fr`: [documentation in French](http://translate.google.com/translate?hl=en&sl=en&tl=fr&u=https%3A%2F%2Fgithub.com%2Fpingcap%2Fdocs%2Fblob%2Fmaster%2FTOC.md)
- `ja`: [documentation in Japanese](http://translate.google.com/translate?hl=en&sl=en&tl=ja&u=https%3A%2F%2Fgithub.com%2Fpingcap%2Fdocs%2Fblob%2Fmaster%2FTOC.md)
- `ko`: [documentation in Korean](http://translate.google.com/translate?hl=en&sl=en&tl=ko&u=https%3A%2F%2Fgithub.com%2Fpingcap%2Fdocs%2Fblob%2Fmaster%2FTOC.md)
- `fr`: [documentation in French](https://translate.google.com/translate?hl=en&sl=en&tl=fr&u=https%3A%2F%2Fgithub.com%2Fpingcap%2Fdocs%2Fblob%2Fmaster%2FTOC.md)
- `ja`: [documentation in Japanese](https://translate.google.com/translate?hl=en&sl=en&tl=ja&u=https%3A%2F%2Fgithub.com%2Fpingcap%2Fdocs%2Fblob%2Fmaster%2FTOC.md)
- `ko`: [documentation in Korean](https://translate.google.com/translate?hl=en&sl=en&tl=ko&u=https%3A%2F%2Fgithub.com%2Fpingcap%2Fdocs%2Fblob%2Fmaster%2FTOC.md)

## Documentation versions

Expand Down

0 comments on commit c19ad74

Please sign in to comment.