Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Oct 25, 2024
1 parent 4f80264 commit 83230d0
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,41 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@mdbook
- name: Build mdbook
run: |
for book in aptos ethereum kadena; do
echo "Creating ${book} mdbook"
mkdir -p public/${book}
cd ${book}/docs
mdbook build
cp -r book/* ${{ github.workspace }}/public/${book}
cd ${{ github.workspace }}
done
working-directory: ${{ github.workspace }}
- name: Create base page
run: |
mkdir -p public
cat <<EOF > ./public/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ZK Light Clients</title>
<link rel="stylesheet" href="./aptos/theme/css/light.css">
</head>
<body>
<h1>Welcome to the ZK Light Clients homepage. Documentation for each light client can be found at the following links</h1>
<ul>
<li><a href="./aptos/">Aptos</a></li>
<li><a href="./ethereum/">Ethereum</a></li>
<li><a href="./kadena/">Ethereum</a></li>
</ul>
<main class="mdbook">
<h1>ZK Light Clients</h1>
<ul>
<li><a href="./aptos/">Aptos</a></li>
<li><a href="./ethereum/">Ethereum</a></li>
<li><a href="./kadena/">Ethereum</a></li>
</ul>
</main>
</body>
</html>
EOF
working-directory: ${{ github.workspace }}
- name: Build mdbook
run: |
for book in aptos ethereum kadena; do
echo "Creating ${book} mdbook"
mkdir -p public/${book}
cd ${book}/docs
mdbook build
cp -r book/* ${{ github.workspace }}/public/${book}
cd ${{ github.workspace }}
done
working-directory: ${{ github.workspace }}
- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 83230d0

Please sign in to comment.