-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds a spell-check to each docs workflow. You can see it tested here: Sway: FuelLabs/sway#5369 Fuelup: FuelLabs/fuelup#535 Specs: FuelLabs/fuel-specs#539 Fuels-rs: FuelLabs/fuels-rs#1224 Fuels-ts: FuelLabs/fuels-ts#1484 Wallet: FuelLabs/fuels-wallet#987 Indexer: FuelLabs/fuel-indexer#1496 GraphQL: FuelLabs/fuel-graphql-docs#25
- Loading branch information
1 parent
e7af195
commit a7b52d4
Showing
4 changed files
with
81 additions
and
9 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 |
---|---|---|
|
@@ -7,6 +7,10 @@ on: | |
description: "the folder where SUMMARY.md lives" | ||
required: true | ||
type: string | ||
spellcheck-config-path: | ||
description: "the path where the .spellcheck.yml file lives" | ||
required: true | ||
type: string | ||
pre-command: | ||
description: "a command to run before the jobs" | ||
required: false | ||
|
@@ -52,7 +56,7 @@ jobs: | |
- run: | | ||
npm install -g [email protected] | ||
markdownlint --config workflow/docs-hub/.markdownlint.yaml --ignore-path workflow/docs-hub/.markdownlintignore '**/*.md' | ||
check-doc-folders: | ||
name: Check SUMMARY & Folders | ||
runs-on: ubuntu-latest | ||
|
@@ -73,3 +77,17 @@ jobs: | |
node-version: 18 | ||
- name: Run script | ||
run: node workflow/docs-hub/mdbook-docs.js ${{ inputs.docs-src-path }} | ||
|
||
spell-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Run pre-command | ||
if: inputs.pre-command != '' | ||
run: ${{ inputs.pre-command }} | ||
- uses: rojopolis/[email protected] | ||
name: Spellcheck | ||
with: | ||
config_path: ${{ inputs.spellcheck-config-path }} | ||
task_name: SPCheck |
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 |
---|---|---|
|
@@ -11,8 +11,23 @@ on: | |
description: "the src folder where the nav.json and components.json files live" | ||
required: true | ||
type: string | ||
spellcheck-config-path: | ||
description: "the path where the .spellcheck.yml file lives" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
spell-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- uses: rojopolis/[email protected] | ||
name: Spellcheck | ||
with: | ||
config_path: ${{ inputs.spellcheck-config-path }} | ||
task_name: SPCheck | ||
|
||
check-doc-folders: | ||
name: Check Configs, Components, & Folders | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -7,8 +7,23 @@ on: | |
description: "the folder path where the markdown files live" | ||
required: true | ||
type: string | ||
spellcheck-config-path: | ||
description: "the path where the .spellcheck.yml file lives" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
spell-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- uses: rojopolis/[email protected] | ||
name: Spellcheck | ||
with: | ||
config_path: ${{ inputs.spellcheck-config-path }} | ||
task_name: SPCheck | ||
|
||
check-doc-folders: | ||
name: Check Configs & Folders | ||
runs-on: ubuntu-latest | ||
|
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