Skip to content

Commit c8a5999

Browse files
committed
fix
1 parent 01aeff5 commit c8a5999

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

site/script/generate_temp_soldocs.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ command -v forge >/dev/null 2>&1 || {
55
curl -L https://foundry.paradigm.xyz | bash
66

77
# Update PATH to include Foundry binaries
8-
# export PATH=$HOME/.foundry/bin:$PATH
8+
export PATH=$HOME/.foundry/bin:$PATH
99

1010
# Update Foundry
1111
$HOME/.foundry/bin/foundryup
1212
}
1313

1414
# Navigate to the parent directory, set PATH, generate docs, and return to site directory
1515
cd ..
16-
$HOME/.foundry/bin/forge doc -o temp_soldocs/
16+
forge doc -o temp_soldocs/
17+
18+
# Check if the file exists
19+
if [ -f "temp_soldcs/src/src/devkit/Flattened.sol/abstract.CommonBase.md" ]; then
20+
# Output the contents of the file
21+
cat temp_soldcs/src/src/devkit/Flattened.sol/abstract.CommonBase.md
22+
else
23+
echo "File not found: temp_soldcs/src/src/devkit/Flattened.sol/abstract.CommonBase.md"
24+
fi

0 commit comments

Comments
 (0)