Skip to content

Commit 77b0ee0

Browse files
committed
fix: forge doc preprocessing
1 parent d00f4db commit 77b0ee0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contracts/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"size": "hardhat size-contracts --no-compile",
2626
"watch": "hardhat watch",
2727
"docgen": "hardhat docgen",
28+
"docserve": "scripts/docPreprocess.sh && forge doc --serve",
29+
"docbuild": "scripts/docPreprocess.sh && forge doc --build --out dist",
2830
"publish": "yarn npm publish --access public --tag $(cat package.json | jq .version)"
2931
},
3032
"devDependencies": {

contracts/scripts/serveDoc.sh renamed to contracts/scripts/docPreprocess.sh

-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ done
1111

1212
echo "Use 'git restore src/' to revert the changes"
1313

14-
forge doc --serve
1514

0 commit comments

Comments
 (0)