Skip to content

Commit a44cacd

Browse files
docs: configure spell check (#539)
This PR configures the spell-check added to the docs workflow in the github-actions repo: FuelLabs/github-actions#23 The files checked are configured in `.spellcheck.yml`. This is also where you can configure what types of elements are ignored. Right now it ignores: - All code blocks that have a language (and will check code blocks that do not have a language) - Anything in between backticks - Words in `spell-check-custom-words.txt` (case sensitive, only exact match) - Numbers, even if they are attached to a word - Links in markdown link format #### Handling errors: If the test fails: - look up the word in the question to verify it is a real word and is correctly spelled - If it is a file name or is code, use backticks to ignore the word. - If it is a real word that is spelled correctly, or an acronym that is either common or is defined already, add it to `spell-check-custom-words.txt`. - If needed, rewrite the sentence. Ex: DON'T use "`lock`ing" and add "ing" to the custom words list. Instead, rewrite the sentence as "locking with the `lock` method". - If it otherwise should be ignored, you can configure the pipeline in `.spellcheck.yml`.
1 parent d7e18fc commit a44cacd

File tree

16 files changed

+637
-338
lines changed

16 files changed

+637
-338
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ on:
55
branches:
66
- master
77
pull_request:
8-
release:
9-
types: [published]
108

119
jobs:
1210
test:
1311
uses: FuelLabs/github-actions/.github/workflows/mdbook-docs.yml@master
1412
with:
1513
docs-src-path: 'src'
14+
spellcheck-config-path: '.spellcheck.yml'

.spellcheck.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
matrix:
2+
- name: SPCheck
3+
aspell:
4+
lang: en
5+
dictionary:
6+
encoding: utf-8
7+
wordlists:
8+
- spell-check-custom-words.txt
9+
pipeline:
10+
- pyspelling.filters.context:
11+
context_visible_first: true
12+
escapes: \\[\\`~]
13+
delimiters:
14+
# Ignore all code blocks
15+
- open: '(?s)^(?P<open> *`{3,}\s*(\w+\s*,?\s*)+.*?)$'
16+
close: '^( *`{3,})$'
17+
- pyspelling.filters.markdown:
18+
markdown_extensions:
19+
- pymdownx.superfences:
20+
- pyspelling.filters.html:
21+
comments: false
22+
ignores:
23+
- code
24+
- pre
25+
sources:
26+
- 'src/*.md'
27+
- 'src/**/*.md'
28+
default_encoding: utf-8
29+

spell-check-custom-words.txt

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
ABI
2+
ABIs
3+
ASM
4+
IDE
5+
IDEs
6+
LSP
7+
namespace
8+
ALU
9+
APIs
10+
JSON
11+
BrowserStack
12+
CLI
13+
Deserialization
14+
deserializing
15+
DApp
16+
subcurrency
17+
Subcurrency
18+
intrinsics
19+
Intrinsics
20+
workspace
21+
workspaces
22+
Workspaces
23+
neovim
24+
EVM
25+
EVM's
26+
EOA
27+
ERC
28+
Ethereum
29+
Ethereum's
30+
FVM
31+
FuelVM
32+
Fuelup
33+
Github
34+
GraphQL
35+
Infura
36+
JSON
37+
LSP
38+
Merkle
39+
PoA
40+
PoS
41+
PoW
42+
RPC
43+
SDK
44+
SDK's
45+
SDKs
46+
SauceLabs
47+
Sepolia
48+
Structs
49+
Sway
50+
TAI
51+
TODO
52+
TypeScript
53+
UTF
54+
UTXO
55+
UTXOs
56+
Utils
57+
VM
58+
VSCode
59+
abigen
60+
args
61+
async
62+
backend
63+
backtraces
64+
blockchain
65+
blockchain's
66+
bytecode
67+
codespace
68+
codespaces
69+
config
70+
cryptographic
71+
customizable
72+
customizations
73+
dapp
74+
dev
75+
dropdown
76+
enum
77+
enums
78+
env
79+
forc
80+
frontend
81+
fuelup
82+
fullstack
83+
graphQL
84+
graphql
85+
http
86+
https
87+
js
88+
localhost
89+
mainnet
90+
mempool
91+
merkle
92+
monorepo
93+
monorepos
94+
natively
95+
npm
96+
nvm
97+
onboarding
98+
params
99+
pnpm
100+
prerelease
101+
queryable
102+
quickstart
103+
relayer
104+
relayers
105+
repo
106+
repos
107+
runnable
108+
stateful
109+
struct
110+
structs
111+
struct's
112+
testnet
113+
testnets
114+
toolchain
115+
toolchains
116+
urql
117+
validator
118+
validators
119+
superABI
120+
superABIs
121+
SuperABIs
122+
supertraits
123+
compositional
124+
typeclass
125+
turbofish
126+
DSL
127+
TOML
128+
IPFS
129+
Bitwise
130+
Bitwise
131+
runtime
132+
runtimes
133+
formatter
134+
deployable
135+
Utils
136+
ETH
137+
initializer
138+
initializers
139+
destructuring
140+
instantiation
141+
VMs
142+
superset
143+
CEI
144+
pre
145+
entrancy
146+
interoperable
147+
blockchains
148+
keccak
149+
SHA
150+
UI
151+
backtrace
152+
Collateralized
153+
collateralized
154+
submodule
155+
DEX
156+
TypeChain
157+
inlines
158+
inlining
159+
MiB
160+
FuelVM's
161+
deterministically
162+
CLI
163+
VS
164+
GraphViz
165+
DOT
166+
DCA
167+
AST
168+
GitHub
169+
decrypt
170+
subcommand
171+
subcommands
172+
Subcommands
173+
supertrait
174+
supertraits
175+
Supertraits
176+
incrementor
177+
monomorphization
178+
Booleans
179+
boolean
180+
Orchestrator
181+
orchestrator
182+
growable
183+
arity
184+
tuple's
185+
unary
186+
SRC
187+
DEX
188+
FuelLabs
189+
PRs
190+
codebase
191+
PostgreSQL
192+
Postgres
193+
MacOS
194+
macOS
195+
backends
196+
hoc
197+
semver
198+
SQLx
199+
Homebrew
200+
Changelog
201+
lookups
202+
namespaces
203+
YAML
204+
WASM
205+
WebAssembly
206+
dApp
207+
dApps
208+
JWT
209+
Schemas
210+
schemas
211+
AssemblyScript
212+
indexable
213+
Macbook
214+
Dockerized
215+
TLDR
216+
IaaS
217+
Updatable
218+
coinbase
219+
Coinbase
220+
postcondition
221+
Postcondition
222+
Cryptocurrency
223+
cryptocurrency
224+
ECDSA
225+
EcDSA
226+
secp
227+
Secp
228+
Bitfield
229+
SMT
230+
SMTs
231+
subtrees
232+
subtree
233+
prepended
234+
unhashed
235+
preimage
236+
FIPS
237+
EdDSA
238+
curve25519
239+
blazingly
240+
pseudocode
241+
Pseudocode
242+
endian
243+
KiB
244+
SUT
245+
Celestia
246+
encodings
247+
callee
248+
inlined
249+
parsable
250+
underflows
251+
bitmask
252+
XORs
253+
XOR
254+
ORs
255+
ANDs
256+
rhs
257+
lhs
258+
scalable
259+
Scalable
260+
Exponentiate
261+
exponentiate
262+
Executablity
263+
executablity
264+
Unwritable
265+
unwritable
266+
untrusted
267+
intra
268+
OOB
269+
unspendable
270+
priori

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- [Input](./tx-format/input.md)
1010
- [Output](./tx-format/output.md)
1111
- [Witness](./tx-format/witness.md)
12-
- [TXPointer](./tx-format/tx-pointer.md)
12+
- [Transaction Pointer](./tx-format/tx-pointer.md)
1313
- [Computing Identifiers](./identifiers/index.md)
1414
- [Asset ID](./identifiers/asset.md)
1515
- [Contract ID](./identifiers/contract-id.md)

src/abi/argument-encoding.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ These types are encoded in-place. Here's how to encode them. We define `enc(X)`
4040
**Example:**
4141

4242
Encoding `42` yields: `0x000000000000002a`, which is the hexadecimal representation of the decimal number `42`, right-aligned to 8 bytes.
43-
Encoding `u128::MAX - 1` yields: `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE`, it's right-alined to 16 bytes
43+
Encoding `u128::MAX - 1` yields: `0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE`, it's right-aligned to 16 bytes
4444

45-
## Boolean
45+
## `Boolean`
4646

4747
`enc(X)` is `0` if `X` is false or `1` if `X` is true, left-padded with zero-bytes. Total length must be 8 bytes. Similar to the `u8` encoding.
4848

@@ -54,7 +54,7 @@ Encoding `true` yields:
5454
0x0000000000000001
5555
```
5656

57-
## B256
57+
## `B256`
5858

5959
`b256` is a fixed size bit array of length 256. Used for 256-bit hash digests and other 256-bit types. It is encoded as-is.
6060

@@ -66,7 +66,7 @@ Encoding `0xc7fd1d987ada439fc085cfa3c49416cf2b504ac50151e3c2335d60595cb90745` yi
6666
0xc7fd1d987ada439fc085cfa3c49416cf2b504ac50151e3c2335d60595cb90745
6767
```
6868

69-
## Address
69+
## `Address`
7070

7171
A 256-bit (32-byte) address, encoded in the same way as a `b256` argument: encoded as-is.
7272

0 commit comments

Comments
 (0)