Skip to content

Commit

Permalink
Update autogenerated docs (#1093)
Browse files Browse the repository at this point in the history
* fix(scripts/gen_output.sh): add 'npm install' for foundry-template

* update autogenerated docs with ./scripts/gen_output.sh
  • Loading branch information
cdump authored Jan 20, 2024
1 parent f099d18 commit 832034c
Show file tree
Hide file tree
Showing 71 changed files with 217 additions and 168 deletions.
5 changes: 4 additions & 1 deletion scripts/gen_output/forge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -eo pipefail
gen_forge() {
need_cmd git
need_cmd forge
need_cmd tree
need_cmd npm

echo "Generating output (forge)..."

Expand All @@ -23,6 +25,7 @@ gen_forge() {
in_temp foundry-template
git clone https://github.com/PaulRBerg/foundry-template
cd foundry-template
npm install
run_command "$OUTPUT_DIR/foundry-template/forge-install" \
forge install
run_command "$OUTPUT_DIR/foundry-template/forge-build" \
Expand Down Expand Up @@ -57,7 +60,7 @@ gen_forge() {

run_command "$OUTPUT_DIR/cheatcodes/forge-test-cheatcodes-tracing" \
forge test -vvvv --match-test testFail_IncrementAsNotOwner --match-path test/OwnerUpOnly.t.sol

run_command "$OUTPUT_DIR/cheatcodes/forge-test-cheatcodes-expectrevert" \
forge test --match-test "test_IncrementAsOwner|test_IncrementAsNotOwner" --match-path test/OwnerUpOnly.t.sol

Expand Down
2 changes: 2 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
- [`cast resolve-name`](./reference/cli/cast/resolve-name.md)
- [`cast rpc`](./reference/cli/cast/rpc.md)
- [`cast run`](./reference/cli/cast/run.md)
- [`cast selectors`](./reference/cli/cast/selectors.md)
- [`cast send`](./reference/cli/cast/send.md)
- [`cast send --create`](./reference/cli/cast/send/--create.md)
- [`cast shl`](./reference/cli/cast/shl.md)
Expand Down Expand Up @@ -207,6 +208,7 @@
- [`cast wallet verify`](./reference/cli/cast/wallet/verify.md)
- [`cast wallet import`](./reference/cli/cast/wallet/import.md)
- [`cast wallet list`](./reference/cli/cast/wallet/list.md)
- [`cast wallet derive-private-key`](./reference/cli/cast/wallet/derive-private-key.md)
- [`anvil`](./reference/cli/anvil.md)
- [`anvil completions`](./reference/cli/anvil/completions.md)
- [`anvil generate-fig-spec`](./reference/cli/anvil/generate-fig-spec.md)
Expand Down
2 changes: 1 addition & 1 deletion src/output/cast/cast-call

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/cheatcodes/forge-test-cheatcodes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/cheatcodes/forge-test-cheatcodes-expectrevert

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/cheatcodes/forge-test-cheatcodes-tracing

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/cheatcodes/forge-test-simple

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/deps/forge-install

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/deps/forge-remappings

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/forge_tree/forge-tree

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/forge_tree/forge-tree-no-dedupe

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/foundry-template/forge-build

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/foundry-template/forge-install

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/foundry-template/forge-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/output/fuzz_testing/forge-test-fail-fuzz

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/fuzz_testing/forge-test-no-fuzz

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/output/fuzz_testing/forge-test-success-fuzz

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/hello_foundry/forge-build

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/output/hello_foundry/forge-init

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/hello_foundry/forge-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/output/hello_foundry/tree-with-files

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions src/output/nft_tutorial/forge-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/output/test_filters/forge-test-match-contract-and-test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/output/test_filters/forge-test-match-path

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/reference/cli/SUMMARY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions src/reference/cli/anvil.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/reference/cli/cast.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 832034c

Please sign in to comment.