Skip to content
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
aa7a7b4
chore(docs): splitting docs versioning
signorecello Apr 7, 2025
ebe13e7
chore(docs): making docs versioning manual, but building them on master
signorecello Apr 7, 2025
67ce9bb
chore(docs): making docs versioning manual, but building them on master
signorecello Apr 7, 2025
22ac435
chore(docs): making docs versioning manual, but building them on master
signorecello Apr 7, 2025
16aba78
cleanup
signorecello Apr 7, 2025
a2c0499
bug
signorecello Apr 7, 2025
01d9d3d
more cleanup
signorecello Apr 7, 2025
b341d43
adding instructions to the README
signorecello Apr 7, 2025
43bf43e
making next version be called next, for now
signorecello Apr 8, 2025
3beffcc
releasing alpha-testnet.2 docs here because of broken links in master
signorecello Apr 8, 2025
6528e27
restoring builds on builds
signorecello Apr 8, 2025
de62282
wip
signorecello Apr 8, 2025
402b626
wip
signorecello Apr 8, 2025
5841b72
wip
signorecello Apr 8, 2025
647e546
wip
signorecello Apr 8, 2025
8fdc305
restoring paths
signorecello Apr 8, 2025
1614e93
wip
signorecello Apr 8, 2025
e2c3fec
wip
signorecello Apr 8, 2025
b4cbedf
some cleanup
signorecello Apr 8, 2025
cb9200b
removing dangling release-please action
signorecello Apr 8, 2025
f32eb5b
bug
signorecello Apr 8, 2025
b13a58e
inverting the deploy logic to account for empty dist tag
signorecello Apr 8, 2025
26eb377
different strategy using github actions
signorecello Apr 8, 2025
34c2e04
docs: update utility fn docs (#13310)
nventuro Apr 8, 2025
6a649a2
chore: replace relative paths to noir-protocol-circuits
Apr 9, 2025
c3c80aa
git_subrepo.sh: Fix parent in .gitrepo file.
Apr 9, 2025
6e62263
git subrepo push --branch=master noir-projects/aztec-nr
Apr 9, 2025
e45139b
fix(avm): request paths for appendLeaves (#13389)
fcarreiro Apr 9, 2025
dcd79c3
feat(avm): tree padding (#13394)
fcarreiro Apr 9, 2025
55439a7
wip
signorecello Apr 9, 2025
9c93c0b
wip
signorecello Apr 9, 2025
c21ba94
Merge remote-tracking branch 'origin' into zkpedro/docs_vers
signorecello Apr 9, 2025
b6ec048
wip
signorecello Apr 9, 2025
2bbcc95
cleanup
signorecello Apr 9, 2025
9edda1e
applying suggestions
signorecello Apr 9, 2025
21c1bc8
Update .github/workflows/docs-deploy.yml
signorecello Apr 9, 2025
98803ff
updating readme
signorecello Apr 9, 2025
22afe9a
filtering versions.json
signorecello Apr 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Docs Deploy

on:
workflow_dispatch:
push:
branches:
- master
Comment thread
signorecello marked this conversation as resolved.

jobs:
docs-pr:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Enable Corepack
run: corepack enable

- name: Generate directory hashes
id: dir-hashes
run: |
echo "noir_hash=$(./noir/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "barretenberg_hash=$(./barretenberg/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "l1_contracts_hash=$(./l1-contracts/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "yarn_project_hash=$(./yarn-project/bootstrap.sh hash)" >> $GITHUB_OUTPUT

- name: Restore Noir cache
id: cache-noir
uses: actions/cache@v4
with:
path: ./noir
key: noir-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.noir_hash }}
restore-keys: |
noir-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.noir_hash }}

- name: Restore Barretenberg cache
id: cache-barretenberg
uses: actions/cache@v4
with:
path: ./barretenberg
key: barretenberg-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.barretenberg_hash }}
restore-keys: |
barretenberg-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.barretenberg_hash }}

- name: Restore L1 contracts cache
id: cache-l1-contracts
uses: actions/cache@v4
with:
path: ./l1-contracts
key: l1-contracts-${{ runner.os }}-${{ steps.dir-hashes.outputs.l1_contracts_hash }}
restore-keys: |
l1-contracts-${{ runner.os }}-${{ steps.dir-hashes.outputs.l1_contracts_hash }}

- name: Restore Yarn project cache
id: cache-yarn-project
uses: actions/cache@v4
with:
path: ./yarn-project
key: yarn-project-${{ runner.os }}-${{ steps.dir-hashes.outputs.yarn_project_hash }}
restore-keys: |
yarn-project-${{ runner.os }}-${{ steps.dir-hashes.outputs.yarn_project_hash }}

- name: Build dependencies
run: |
if [[ "${{ steps.cache-noir.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Noir (cache miss)"
./noir/bootstrap.sh fast
fi
if [[ "${{ steps.cache-barretenberg.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Barretenberg (cache miss)"
./barretenberg/bootstrap.sh fast
fi
if [[ "${{ steps.cache-l1-contracts.outputs.cache-hit }}" != 'true' ]]; then
echo "Building L1 contracts (cache miss)"
./l1-contracts/bootstrap.sh fast
fi
if [[ "${{ steps.cache-yarn-project.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Yarn project (cache miss)"
./yarn-project/bootstrap.sh fast
fi

- name: Deploy docs
working-directory: ./docs
run: |
echo "docs release preview"
Comment thread
signorecello marked this conversation as resolved.
Outdated
yarn install
yarn build

if ! deploy_output=$(yarn netlify deploy --site aztec-docs-dev --prod 2>&1); then
echo "Netlify deploy failed with error:"
echo "$deploy_output"
exit 1
fi
147 changes: 147 additions & 0 deletions .github/workflows/docs-preview.yml
Comment thread
signorecello marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
name: Docs Preview

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
docs-preview:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Enable Corepack
run: corepack enable

- name: Configure Git
run: |
git config --global user.name AztecBot
git config --global user.email tech@aztecprotocol.com

- name: Generate directory hashes
id: dir-hashes
run: |
echo "noir_hash=$(./noir/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "barretenberg_hash=$(./barretenberg/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "l1_contracts_hash=$(./l1-contracts/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "yarn_project_hash=$(./yarn-project/bootstrap.sh hash)" >> $GITHUB_OUTPUT

- name: Restore Noir cache
id: cache-noir
uses: actions/cache@v4
with:
path: ./noir
key: noir-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.noir_hash }}
restore-keys: |
noir-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.noir_hash }}

- name: Restore Barretenberg cache
id: cache-barretenberg
uses: actions/cache@v4
with:
path: ./barretenberg
key: barretenberg-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.barretenberg_hash }}
restore-keys: |
barretenberg-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.barretenberg_hash }}

- name: Restore L1 contracts cache
id: cache-l1-contracts
uses: actions/cache@v4
with:
path: ./l1-contracts
key: l1-contracts-${{ runner.os }}-${{ steps.dir-hashes.outputs.l1_contracts_hash }}
restore-keys: |
l1-contracts-${{ runner.os }}-${{ steps.dir-hashes.outputs.l1_contracts_hash }}

- name: Restore Yarn project cache
id: cache-yarn-project
uses: actions/cache@v4
with:
path: ./yarn-project
key: yarn-project-${{ runner.os }}-${{ steps.dir-hashes.outputs.yarn_project_hash }}
restore-keys: |
yarn-project-${{ runner.os }}-${{ steps.dir-hashes.outputs.yarn_project_hash }}

- name: Build dependencies
run: |
if [[ "${{ steps.cache-noir.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Noir (cache miss)"
./noir/bootstrap.sh fast
fi
if [[ "${{ steps.cache-barretenberg.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Barretenberg (cache miss)"
./barretenberg/bootstrap.sh fast
fi
if [[ "${{ steps.cache-l1-contracts.outputs.cache-hit }}" != 'true' ]]; then
echo "Building L1 contracts (cache miss)"
./l1-contracts/bootstrap.sh fast
fi
if [[ "${{ steps.cache-yarn-project.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Yarn project (cache miss)"
./yarn-project/bootstrap.sh fast
fi

- name: Run release-preview script
working-directory: ./docs
run: |
echo "docs release preview"
yarn install
yarn build

if ! deploy_output=$(yarn netlify deploy --site aztec-docs-dev 2>&1); then
echo "Netlify deploy failed with error:"
echo "$deploy_output"
exit 1
fi

# Extract preview URL.
docs_preview_url=$(echo "$deploy_output" | grep -E "https://.*aztec-docs-dev.netlify.app" | awk '{print $4}')
if [ -z "$docs_preview_url" ]; then
echo "Failed to extract preview URL from Netlify output."
else
echo "Docs preview URL: ${docs_preview_url}"
echo "docs_preview_url=${docs_preview_url}" >> $GITHUB_ENV
fi

- name: Find Comment
uses: peter-evans/find-comment@v2
id: find-comment
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "<!-- AUTOGENERATED DOCS COMMENT -->"

- name: Create or Update Comment
uses: peter-evans/create-or-update-comment@v3
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
token: ${{ secrets.GITHUB_TOKEN }}
body: |
# Docs Preview
You can check your [preview here](${{ env.docs_preview_url }}).

<!-- AUTOGENERATED DOCS COMMENT -->
edit-mode: replace
82 changes: 75 additions & 7 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:

update-docs:
Comment thread
signorecello marked this conversation as resolved.
name: Update docs
env:
GITHUB_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
needs: [release-please]
if: ${{ needs.release-please.outputs.release-pr }}
runs-on: ubuntu-latest
Expand All @@ -38,19 +40,85 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ env.BRANCH_NAME }}
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}

- name: Run corepack enable
run: corepack enable

- name: Cut a new version
working-directory: ./docs
run: yarn run version ${{ env.BRANCH_NAME }}
- name: Configure Git
run: |
git config --global user.name AztecBot
git config --global user.email tech@aztecprotocol.com

- name: Generate directory hashes
id: dir-hashes
run: |
echo "noir_hash=$(./noir/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "barretenberg_hash=$(./barretenberg/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "l1_contracts_hash=$(./l1-contracts/bootstrap.sh hash)" >> $GITHUB_OUTPUT
echo "yarn_project_hash=$(./yarn-project/bootstrap.sh hash)" >> $GITHUB_OUTPUT

- name: Restore Noir cache
id: cache-noir
uses: actions/cache@v4
with:
path: ./noir
key: noir-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.noir_hash }}
restore-keys: |
noir-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.noir_hash }}

- name: Restore Barretenberg cache
id: cache-barretenberg
uses: actions/cache@v4
with:
path: ./barretenberg
key: barretenberg-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.barretenberg_hash }}
restore-keys: |
barretenberg-build-${{ runner.os }}-${{ steps.dir-hashes.outputs.barretenberg_hash }}

- name: Restore L1 contracts cache
id: cache-l1-contracts
uses: actions/cache@v4
with:
path: ./l1-contracts
key: l1-contracts-${{ runner.os }}-${{ steps.dir-hashes.outputs.l1_contracts_hash }}
restore-keys: |
l1-contracts-${{ runner.os }}-${{ steps.dir-hashes.outputs.l1_contracts_hash }}

- name: Restore Yarn project cache
id: cache-yarn-project
uses: actions/cache@v4
with:
path: ./yarn-project
key: yarn-project-${{ runner.os }}-${{ steps.dir-hashes.outputs.yarn_project_hash }}
restore-keys: |
yarn-project-${{ runner.os }}-${{ steps.dir-hashes.outputs.yarn_project_hash }}

- name: Build dependencies
run: |
if [[ "${{ steps.cache-noir.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Noir (cache miss)"
./noir/bootstrap.sh fast
fi
if [[ "${{ steps.cache-barretenberg.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Barretenberg (cache miss)"
./barretenberg/bootstrap.sh fast
fi
if [[ "${{ steps.cache-l1-contracts.outputs.cache-hit }}" != 'true' ]]; then
echo "Building L1 contracts (cache miss)"
./l1-contracts/bootstrap.sh fast
fi
if [[ "${{ steps.cache-yarn-project.outputs.cache-hit }}" != 'true' ]]; then
echo "Building Yarn project (cache miss)"
./yarn-project/bootstrap.sh fast
fi

- name: Configure git
- name: Cut version
working-directory: ./docs
run: |
git config --global user.email "tech@aztecprotocol.com"
git config --global user.name "AztecBot"
echo "[]" > versions.json
Comment thread
signorecello marked this conversation as resolved.
yarn
yarn build
yarn docusaurus docs:version ${{ env.BRANCH_NAME }}

- name: Commit new documentation version
run: |
Expand Down
10 changes: 2 additions & 8 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ function build {
yarn-project
boxes
playground
# Blocking release.
# docs
docs
release-image
aztec-up
)
Expand Down Expand Up @@ -269,8 +268,7 @@ function release {
boxes
aztec-up
playground
# Blocking release.
# docs
docs
release-image
)
if [ $(arch) == arm64 ]; then
Expand Down Expand Up @@ -338,10 +336,6 @@ case "$cmd" in
test|test_cmds|bench|release|release_dryrun)
$cmd "$@"
;;
"docs-release")
build
docs/bootstrap.sh docs-release
;;
*)
echo "Unknown command: $cmd"
echo "usage: $0 <clean|check|fast|full|test_cmds|test|ci|release>"
Expand Down
Loading