generated from defi-wonderland/solidity-foundry-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
0 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
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,38 @@ | ||
#!/bin/bash | ||
|
||
# generate docs in a temporary directory | ||
FOUNDRY_PROFILE=docs forge doc --out tmp/safe-liveness-technical-docs | ||
|
||
# edit generated summary not to have container pages | ||
# - [jobs](solidity/interfaces/jobs/README.md) | ||
# should become | ||
# - [jobs]() | ||
# TODO | ||
|
||
# edit generated summary titles to start with an uppercase letter | ||
# - [jobs]() | ||
# should become | ||
# - [Jobs]() | ||
# TODO | ||
|
||
# edit the SUMMARY after the Interfaces section | ||
# https://stackoverflow.com/questions/67086574/no-such-file-or-directory-when-using-sed-in-combination-with-find | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
sed -i '' -e '/\[Interfaces\]/q' docs/src/SUMMARY.md | ||
else | ||
sed -i -e '/\[Interfaces\]/q' docs/src/SUMMARY.md | ||
fi | ||
# copy the generated SUMMARY, from the tmp directory, without the first 5 lines | ||
# and paste them after the Interfaces section on the original SUMMARY | ||
tail -n +5 tmp/safe-liveness-technical-docs/src/SUMMARY.md >> docs/src/SUMMARY.md | ||
|
||
# delete old generated interfaces docs | ||
rm -rf docs/src/solidity/interfaces | ||
# there are differences in cp and mv behavior between UNIX and macOS when it comes to non-existing directories | ||
# creating the directory to circumvent them | ||
mkdir -p docs/src/solidity/interfaces | ||
# move new generated interfaces docs from tmp to original directory | ||
cp -R tmp/safe-liveness-technical-docs/src/solidity/interfaces docs/src/solidity/ | ||
|
||
# delete tmp directory | ||
rm -rf tmp |
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,14 @@ | ||
<!-- TODO: add links to oracles.rip, to mirror and to twitter --> | ||
|
||
# Overview | ||
|
||
- [Smart Contracts]() | ||
|
||
- [Addresses](content/smart-contracts/addresses.md) | ||
- [Interfaces]() | ||
- [IBlockHeaderOracle](solidity/interfaces/IBlockHeaderOracle.sol/interface.IBlockHeaderOracle.md) | ||
- [IGuardCallbackModule](solidity/interfaces/IGuardCallbackModule.sol/interface.IGuardCallbackModule.md) | ||
- [ISafe](solidity/interfaces/ISafe.sol/interface.ISafe.md) | ||
- [IStorageMirror](solidity/interfaces/IStorageMirror.sol/interface.IStorageMirror.md) | ||
- [IStorageMirrorRootRegistry](solidity/interfaces/IStorageMirrorRootRegistry.sol/interface.IStorageMirrorRootRegistry.md) | ||
- [IVerifierModule](solidity/interfaces/IVerifierModule.sol/interface.IVerifierModule.md) |
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 @@ | ||
# Addresses |
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