-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: lint and check broken link (#3139)
* Docs: lint and check broken link * Disable autocorrect for some docs * Update * Fix trailing slash in links * Fix lint * Update check-doc.yaml
- Loading branch information
Showing
105 changed files
with
10,658 additions
and
1,279 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
rules: | ||
# Default rules: https://github.com/huacnlee/autocorrect/raw/main/autocorrect/.autocorrectrc.default | ||
spellcheck: 1 | ||
textRules: | ||
# Config some special rule for some texts | ||
# For example, if we wants to let "Hello你好" just warning, and "Hi你好" to ignore | ||
# "Hello你好": 2 | ||
# "Hi你好": 0 | ||
fileTypes: | ||
# Config the files associations, you config is higher priority than default. | ||
# "rb": ruby | ||
# "Rakefile": ruby | ||
# "*.js": javascript | ||
# ".mdx": markdown | ||
spellcheck: | ||
words: | ||
# Please do not add a general English word (eg. apple, python) here. | ||
# Users can add their special words to their .autocorrectrc file by their need. | ||
- Digital Ocean = DigitalOcean | ||
- JucieFS = JuiceFS | ||
- JueicFS = JuiceFS | ||
- JuiecFS = JuiceFS | ||
- filesystem = file system | ||
- mountpoint = mount point |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Check document | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- 'docs/**' | ||
- 'package.json' | ||
- '.autocorrectrc' | ||
- '.markdownlint-cli2.jsonc' | ||
- '.github/workflows/check-doc.yaml' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- 'docs/**' | ||
- 'package.json' | ||
- '.autocorrectrc' | ||
- '.markdownlint-cli2.jsonc' | ||
- '.github/workflows/check-doc.yaml' | ||
|
||
jobs: | ||
check-doc: | ||
name: Check document | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
cache: 'npm' | ||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
- name: Lint Markdown files (markdownlint) | ||
run: | | ||
npm run markdown-lint | ||
- name: Lint Markdown files (autocorrect) | ||
uses: huacnlee/autocorrect-action@main | ||
with: | ||
args: --lint ./docs/ | ||
- name: Check broken link (including broken anchor) | ||
run: | | ||
npm run check-broken-link |
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 |
---|---|---|
|
@@ -27,3 +27,4 @@ cmd/cmd | |
*.out | ||
.hypothesis | ||
__pycache__ | ||
/node_modules |
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 |
---|---|---|
@@ -0,0 +1,177 @@ | ||
{ | ||
"customRules": [ | ||
"markdownlint-rule-enhanced-proper-names/src/enhanced-proper-names.js", | ||
"markdownlint-rule-no-trailing-slash-in-links/src/no-trailing-slash-in-links.js" | ||
], | ||
"config": { | ||
"default": true, | ||
"first-heading-h1": false, | ||
"heading-style": { | ||
"style": "atx" | ||
}, | ||
"ul-style": false, | ||
"no-hard-tabs": { | ||
"spaces_per_tab": 4 | ||
}, | ||
"line-length": false, | ||
"no-duplicate-heading": { | ||
"allow_different_nesting": true | ||
}, | ||
"no-inline-html": { | ||
"allowed_elements": [ | ||
"Badge", | ||
"TabItem", | ||
"Tabs", | ||
"a", | ||
"br", | ||
"div", | ||
"img", | ||
"kbd", | ||
"p", | ||
"span", | ||
"sup" | ||
] | ||
}, | ||
"fenced-code-language": false, | ||
"first-line-heading": false, | ||
"no-alt-text": false, | ||
"code-block-style": { | ||
"style": "fenced" | ||
}, | ||
"code-fence-style": { | ||
"style": "backtick" | ||
}, | ||
"link-fragments": false, | ||
"no-trailing-slash-in-links": true, | ||
"enhanced-proper-names": { | ||
"code_blocks": false, | ||
"html_elements": false, | ||
"heading_id": false, | ||
"names": [ | ||
"ACL", | ||
"AI", | ||
"API", | ||
"ARM", | ||
"ARM64", | ||
"AWS", | ||
"Amazon", | ||
"Ansible", | ||
"Apache", | ||
"Azure", | ||
"BSD", | ||
"BadgerDB", | ||
"CDH", | ||
"CPU", | ||
"CSI Driver", | ||
"CSI", | ||
"CentOS", | ||
"Ceph", | ||
"CephFS", | ||
"ClickHouse", | ||
"Cloud SQL", | ||
"Colab", | ||
"Consul", | ||
"Debian", | ||
"DevOps", | ||
"DistCp", | ||
"Docker Compose", | ||
"Docker", | ||
"Dockerfile", | ||
"Doris", | ||
"ECI", | ||
"Elasticsearch", | ||
"FTP", | ||
"FUSE", | ||
"Flink", | ||
"Fluid", | ||
"FoundationDB", | ||
"GCC", | ||
"GID", | ||
"Git", | ||
"GitHub", | ||
"Google", | ||
"Grafana", | ||
"Graphite", | ||
"HBase", | ||
"HDFS", | ||
"HDP", | ||
"HTTP", | ||
"HTTPS", | ||
"Hadoop", | ||
"Hive Metastore", | ||
"Hive", | ||
"Hudi", | ||
"IAM", | ||
"ID", | ||
"IOPS", | ||
"IP", | ||
"Iceberg", | ||
"JAR", | ||
"JDK", | ||
"JSON", | ||
"Java", | ||
"JuiceFS", | ||
"JuiceFSRuntime", | ||
"Juicedata", | ||
"K8s", | ||
"Kerberos", | ||
"KeyDB", | ||
"Kubernetes", | ||
"LDAP", | ||
"LZ4", | ||
"Linux", | ||
"M1", | ||
"MariaDB", | ||
"Maven", | ||
"MinIO", | ||
"MySQL", | ||
"NFS", | ||
"POSIX", | ||
"PV", | ||
"PVC", | ||
"PostgreSQL", | ||
"PowerShell", | ||
"Prometheus", | ||
"Pushgateway", | ||
"Python", | ||
"QPS", | ||
"QoS", | ||
"RADOS", | ||
"RESTful", | ||
"RGW", | ||
"RPC", | ||
"Raft", | ||
"Ranger", | ||
"Redis", | ||
"S3", | ||
"SDK", | ||
"SFTP", | ||
"SID", | ||
"SMB", | ||
"SQL", | ||
"SQLite", | ||
"SSH", | ||
"Samba", | ||
"Scala", | ||
"Spark", | ||
"StarRocks", | ||
"ThriftServer", | ||
"TiKV", | ||
"UID", | ||
"UUID", | ||
"Ubuntu", | ||
"Unix", | ||
"VFS", | ||
"WebDAV", | ||
"WinFsp", | ||
"Windows", | ||
"YAML", | ||
"YARN", | ||
"Zstandard", | ||
"etcd", | ||
"macFUSE", | ||
"macOS" | ||
] | ||
} | ||
} | ||
} |
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
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
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ sidebar_position: 2 | |
--- | ||
# MySQL Best Practices | ||
|
||
Working in progress. | ||
Working in progress. |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
sidebar_label: TiKV | ||
sidebar_position: 3 | ||
--- | ||
# TiKV Best Practices | ||
# TiKV Best Practices |
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
Oops, something went wrong.