-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): codegen reference docs for
nargo
CLI (#4149)
# Description ## Problem\* Resolves #4136 Resolves AztecProtocol/dev-rel#128 ## Summary\* This PR codegens the reference material for the nargo CLI to avoid us having to copy documentation from the code over to a markdown file. The exact format of the codegenned markdown isn't final and we can iterate on this but it guarantees completeness. ## Additional Context ## Documentation\* Check one: - [ ] No documentation needed. - [x] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information
1 parent
682b159
commit 0e07303
Showing
8 changed files
with
69 additions
and
255 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 |
---|---|---|
|
@@ -53,6 +53,14 @@ jobs: | |
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/[email protected] | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: x86_64-unknown-linux-gnu | ||
save-if: false | ||
|
||
- name: Setup toolchain | ||
uses: dtolnay/[email protected] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
cd $(dirname "$0")/.. | ||
|
||
REFERENCE_DIR="./processed-docs/reference" | ||
NARGO_REFERENCE="$REFERENCE_DIR/nargo_commands.md" | ||
rm -f $NARGO_REFERENCE | ||
mkdir -p $REFERENCE_DIR | ||
|
||
echo "--- | ||
title: Nargo | ||
description: | ||
Noir CLI Commands for Noir Prover and Verifier to create, execute, prove and verify programs, | ||
generate Solidity verifier smart contract and compile into JSON file containing ACIR | ||
representation and ABI of circuit. | ||
keywords: | ||
[ | ||
Nargo, | ||
Noir CLI, | ||
Noir Prover, | ||
Noir Verifier, | ||
generate Solidity verifier, | ||
compile JSON file, | ||
ACIR representation, | ||
ABI of circuit, | ||
TypeScript, | ||
] | ||
sidebar_position: 0 | ||
--- | ||
" > $NARGO_REFERENCE | ||
|
||
cargo run -F codegen-docs -- info >> $NARGO_REFERENCE |
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
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