Skip to content

Commit 18b0047

Browse files
committed
Add rustfmt and docs lint fix support
1 parent 951488b commit 18b0047

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/actions/setup-rust/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ runs:
2626
uses: dtolnay/rust-toolchain@stable
2727
with:
2828
toolchain: ${{ inputs.rust-version }}
29+
components: rustfmt
2930
targets: ${{ inputs.targets }}
3031

3132
- name: Cache cargo

.github/actions/setup-tauri/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ runs:
5353
uses: dtolnay/rust-toolchain@stable
5454
with:
5555
toolchain: ${{ inputs.rust-version }}
56+
components: rustfmt
5657
targets: ${{ inputs.rust-targets }}
5758

5859
- name: Normalize Tauri signing key

doc/content/sdk/_meta.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
2-
index: '概览',
3-
architecture: '架构总览',
4-
logger: 'Logger 日志库',
2+
'index': '概览',
3+
'architecture': '架构总览',
4+
'logger': 'Logger 日志库',
55
'md-compiler': 'MDX-Compiler 编译器',
66
'script-runtime': 'Script-Runtime 运行时'
77
}

doc/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"validate:content": "tsx scripts/validate-content.ts",
1515
"check:type": "tsx scripts/run-next.ts typegen && tsc --project tsconfig.typecheck.json --noEmit --incremental false",
1616
"start": "tsx scripts/run-next.ts start",
17-
"lint": "tsx scripts/validate-content.ts && eslint --cache --cache-location .eslintcache ."
17+
"lint": "tsx scripts/validate-content.ts && eslint --cache --cache-location .eslintcache .",
18+
"lint:fix": "tsx scripts/validate-content.ts && eslint --fix --cache --cache-location .eslintcache ."
1819
},
1920
"dependencies": {
2021
"@theguild/remark-mermaid": "catalog:",

0 commit comments

Comments
 (0)