Skip to content

Commit 7dc3e2d

Browse files
authored
Fix broken forc command docs (#6424)
## Description I noticed that the command section for forc in the documentation was only showing headings and no information about the commands themselves. See below. ![Screenshot 2024-08-19 at 10 47 48 AM](https://github.com/user-attachments/assets/ee5c00d3-97f2-445a-b1c7-203144bf2d13) This was due to back ticks being placed around the heading in #5369. I've removed these ticks and added the commands to the list of accepted words. Also there were a lot of commands being missed due to their no longer being subcommands, this logic has been updated and all the forc commands are now being parsed. ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [x] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [x] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers.
1 parent 749e897 commit 7dc3e2d

27 files changed

+83
-63
lines changed

docs/book/spell-check-custom-words.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ASM
44
IDE
55
IDEs
66
LSP
7+
lsp
78
namespace
89
ALU
910
APIs
@@ -216,4 +217,14 @@ underflows
216217
Codec
217218
bool
218219
str
219-
multisig
220+
multisig
221+
addr
222+
addr2line
223+
contract-id
224+
init
225+
parse-bytecode
226+
predicate-root
227+
forc-client
228+
crypto
229+
doc
230+
fmt

docs/book/src/SUMMARY.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,28 +80,28 @@
8080
- [Workspaces](./forc/workspaces.md)
8181
- [Dependencies](./forc/dependencies.md)
8282
- [Commands](./forc/commands/index.md)
83-
- [`forc addr2line`](./forc/commands/forc_addr2line.md)
84-
- [`forc build`](./forc/commands/forc_build.md)
85-
- [`forc check`](./forc/commands/forc_check.md)
86-
- [`forc clean`](./forc/commands/forc_clean.md)
87-
- [`forc completions`](./forc/commands/forc_completions.md)
88-
- [`forc contract-id`](./forc/commands/forc_contract-id.md)
89-
- [`forc init`](./forc/commands/forc_init.md)
90-
- [`forc new`](./forc/commands/forc_new.md)
91-
- [`forc parse-bytecode`](./forc/commands/forc_parse-bytecode.md)
92-
- [`forc plugins`](./forc/commands/forc_plugins.md)
93-
- [`forc predicate-root`](./forc/commands/forc_predicate-root.md)
94-
- [`forc test`](./forc/commands/forc_test.md)
95-
- [`forc update`](./forc/commands/forc_update.md)
96-
- [`forc template`](./forc/commands/forc_template.md)
83+
- [forc addr2line](./forc/commands/forc_addr2line.md)
84+
- [forc build](./forc/commands/forc_build.md)
85+
- [forc check](./forc/commands/forc_check.md)
86+
- [forc clean](./forc/commands/forc_clean.md)
87+
- [forc completions](./forc/commands/forc_completions.md)
88+
- [forc contract-id](./forc/commands/forc_contract-id.md)
89+
- [forc init](./forc/commands/forc_init.md)
90+
- [forc new](./forc/commands/forc_new.md)
91+
- [forc parse-bytecode](./forc/commands/forc_parse-bytecode.md)
92+
- [forc plugins](./forc/commands/forc_plugins.md)
93+
- [forc predicate-root](./forc/commands/forc_predicate-root.md)
94+
- [forc test](./forc/commands/forc_test.md)
95+
- [forc update](./forc/commands/forc_update.md)
96+
- [forc template](./forc/commands/forc_template.md)
9797
- [Plugins](./forc/plugins/index.md)
98-
- [`forc client`](./forc/plugins/forc_client/index.md)
99-
- [`forc deploy`](./forc/plugins/forc_client/forc_deploy.md)
100-
- [`forc run`](./forc/plugins/forc_client/forc_run.md)
101-
- [`forc submit`](./forc/plugins/forc_client/forc_submit.md)
102-
- [`forc crypto`](./forc/plugins/forc_crypto.md)
103-
- [`forc debug`](./forc/plugins/forc_debug.md)
104-
- [`forc doc`](./forc/plugins/forc_doc.md)
105-
- [`forc explore`](./forc/plugins/forc_explore.md)
106-
- [`forc fmt`](./forc/plugins/forc_fmt.md)
107-
- [`forc lsp`](./forc/plugins/forc_lsp.md)
98+
- [forc client](./forc/plugins/forc_client/index.md)
99+
- [forc deploy](./forc/plugins/forc_client/forc_deploy.md)
100+
- [forc run](./forc/plugins/forc_client/forc_run.md)
101+
- [forc submit](./forc/plugins/forc_client/forc_submit.md)
102+
- [forc crypto](./forc/plugins/forc_crypto.md)
103+
- [forc debug](./forc/plugins/forc_debug.md)
104+
- [forc doc](./forc/plugins/forc_doc.md)
105+
- [forc explore](./forc/plugins/forc_explore.md)
106+
- [forc fmt](./forc/plugins/forc_fmt.md)
107+
- [forc lsp](./forc/plugins/forc_lsp.md)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc addr2line`
1+
# forc addr2line
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc build`
1+
# forc build
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc check`
1+
# forc check
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc clean`
1+
# forc clean
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc completions`
1+
# forc completions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc contract-id`
1+
# forc contract-id
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc init`
1+
# forc init
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# `forc new`
1+
# forc new

0 commit comments

Comments
 (0)