Skip to content

Commit

Permalink
fix: gas comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dristpunk committed Dec 11, 2023
1 parent eb9f49c commit e55c76c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
deploy-docs:
# Remove the following line if you wish to export your Solidity contracts and interfaces and publish them to NPM
# Remove the following line if you wish to deploy the documentation to Vercel
if: false
name: Deploy docs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,9 +41,9 @@ jobs:

- uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
scope: ${{ secrets.ORG_ID}} #Required
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID}}
scope: ${{ secrets.ORG_ID}}
vercel-args: ${{ github.ref_name == 'main' && '--prod' || '' }}
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}}
working-directory: ./docs/book
7 changes: 4 additions & 3 deletions build-docs.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/bash

root_path="src" # this could be src/interfaces

# generate docs in a temporary directory
temp_folder="technical-docs"

# path to the base folder
base_folder="docs/src/$root_path"

FOUNDRY_PROFILE=docs forge doc --out "$temp_folder"

# edit generated summary not to have container pages
Expand Down Expand Up @@ -51,8 +55,5 @@ replace_text() {
done
}

# path to the base folder
base_folder="docs/src/$root_path"

# calling the function to fix the paths
replace_text "$base_folder"

0 comments on commit e55c76c

Please sign in to comment.