Skip to content

Commit

Permalink
fix(docs): Make git repo available when building docs (AztecProtocol#…
Browse files Browse the repository at this point in the history
…3761)

This is a quick and dirty fix to get docs to load released code snippets
again. We should not need to pass the entire git repo to the build
context to make it work, but it should buy us some time until we ship a
proper solution (see AztecProtocol#3754).
  • Loading branch information
spalladino authored Dec 21, 2023
1 parent 6bd1984 commit b3eb7cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,11 @@ jobs:
name: "Configure build for master"
command: |
if [ "$CIRCLE_BRANCH" == "master" ]; then
echo "Configuring build for master"
echo Configuring build for master
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
echo Fetching latest released tag $LAST_TAG
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
fi
- run:
name: "Build docs"
Expand Down
5 changes: 4 additions & 1 deletion docs/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ docs/node_modules
!barretenberg/cpp/src/barretenberg
!circuits/cpp/src
!.release-please-manifest.json
!boxes
!boxes

# Docs build fetches code snippets from the last release using git show.
!.git

0 comments on commit b3eb7cf

Please sign in to comment.