File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 31
31
"watch" : " hardhat watch" ,
32
32
"docgen" : " hardhat docgen" ,
33
33
"docserve" : " scripts/docPreprocess.sh && forge doc --serve" ,
34
- "docbuild" : " scripts/docPreprocess.sh && forge doc --build --out dist" ,
34
+ "docbuild" : " scripts/docPreprocess.sh && forge doc --build --out dist && scripts/docPostprocess.sh " ,
35
35
"publish" : " yarn npm publish --access public --tag $(cat package.json | jq .version)"
36
36
},
37
37
"devDependencies" : {
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
4
+
5
+ # Forge doc assumes that the code is in the top-level folder.
6
+ # We need to add contracts/ to the path
7
+ find $SCRIPT_DIR /../dist -type f \( -name " *.md" -o -name " *.html" \) \
8
+ | xargs sed -i " " ' s|\(github.com/kleros/kleros-v2/.*\)\(/src\)|\1/contracts\2|g'
9
+
You can’t perform that action at this time.
0 commit comments