Skip to content

Commit

Permalink
chore: fix all deadlinks, path adjust script for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Dec 4, 2024
1 parent 3913da4 commit b81b747
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions book/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ This command generates static content into the `build` directory and can be serv
- Code snippets from the repo are made through the [gen script](./gen-code-refs.sh).
- When adding new code snippets, ensure that the gen script is updated to include the new file.
- Check out the [Docusaurus documentation](https://docusaurus.io/docs/versioning) versioning information.
- You can use the [adjustment](./adjust-version-path.sh) script to adjust the import path in the markdown files after changing the version.
18 changes: 18 additions & 0 deletions book/adjust-version-path.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -e
shopt -s globstar

pushd "versioned_docs/version-$1"

if [[ $OSTYPE == "darwin"* ]]; then
# Mac OS X
sed -i '' 's|\.\.\/\.\.\/static|..\/..\/..\/static|g' **/*.md
sed -i '' 's|\.\.\/\.\.\/static|..\/..\/..\/static|g' **/*.mdx
else
# Other OSes
sed -i 's|\.\.\/\.\.\/static|..\/..\/..\/static|g' **/*.md
sed -i 's|\.\.\/\.\.\/static|..\/..\/..\/static|g' **/*.mdx
fi

popd
4 changes: 2 additions & 2 deletions book/docs/generating-proofs/prover-network/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ SP1_PROVER=network SP1_PRIVATE_KEY=... RUST_LOG=info cargo run --release

- `SP1_PROVER` should be set to `network` when using the prover network.

- `SP1_PRIVATE_KEY` should be set to your [private key](../prover-network#key-setup). You will need
to be using a [whitelisted](../prover-network#get-access) key to use the network.
- `SP1_PRIVATE_KEY` should be set to your [private key](./key-setup.md). You will need
to be using a [whitelisted](../prover-network) key to use the network.

When you call any of the prove functions in ProverClient now, it will first simulate your program, then wait for it to be proven through the network and finally return the proof.

Expand Down
2 changes: 1 addition & 1 deletion book/docs/verification/onchain/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The best way to get started with verifying SP1 proofs on-chain is to refer to th
- The template [script](https://github.com/succinctlabs/sp1-project-template/blob/main/script/src/bin/prove.rs) shows how to generate the proof using the SDK and save it to a file.
- The template [contract](https://github.com/succinctlabs/sp1-project-template/blob/main/contracts/src/Fibonacci.sol) shows how to verify the proof onchain using Solidity.

Refer to the section on [Contract Addresses](./contract-addresses#contract-addresses) for the addresses of the deployed verifiers.
Refer to the section on [Contract Addresses](./contract-addresses) for the addresses of the deployed verifiers.

## Generating SP1 Proofs for Onchain Verification

Expand Down
2 changes: 1 addition & 1 deletion book/docs/writing-programs/compiling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Once you have written an SP1 program, you must compile it to an ELF file that ca

> WARNING: This may not generate a reproducible ELF which is necessary for verifying that your binary corresponds to given source code.
>
> Use the [reproducible build system](#reproducible-builds-with-docker-production) for production builds.
> Use the [reproducible build system](#production-builds) for production builds.
To build a program while developing, simply run the following command in the crate that contains your SP1 program:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ SP1_PROVER=network SP1_PRIVATE_KEY=... RUST_LOG=info cargo run --release

- `SP1_PROVER` should be set to `network` when using the prover network.

- `SP1_PRIVATE_KEY` should be set to your [private key](../prover-network#key-setup). You will need
to be using a [whitelisted](../prover-network#get-access) key to use the network.
- `SP1_PRIVATE_KEY` should be set to your [private key](./key-setup.md). You will need
to be using a [whitelisted](../prover-network) key to use the network.

When you call any of the prove functions in ProverClient now, it will first simulate your program, then wait for it to be proven through the network and finally return the proof.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The best way to get started with verifying SP1 proofs on-chain is to refer to th
- The template [script](https://github.com/succinctlabs/sp1-project-template/blob/main/script/src/bin/prove.rs) shows how to generate the proof using the SDK and save it to a file.
- The template [contract](https://github.com/succinctlabs/sp1-project-template/blob/main/contracts/src/Fibonacci.sol) shows how to verify the proof onchain using Solidity.

Refer to the section on [Contract Addresses](./contract-addresses#contract-addresses) for the addresses of the deployed verifiers.
Refer to the section on [Contract Addresses](./contract-addresses) for the addresses of the deployed verifiers.

## Generating SP1 Proofs for Onchain Verification

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Once you have written an SP1 program, you must compile it to an ELF file that ca

> WARNING: This may not generate a reproducible ELF which is necessary for verifying that your binary corresponds to given source code.
>
> Use the [reproducible build system](#reproducible-builds-with-docker-production) for production builds.
> Use the [reproducible build system](#production-builds) for production builds.
To build a program while developing, simply run the following command in the crate that contains your SP1 program:

Expand Down

0 comments on commit b81b747

Please sign in to comment.