Skip to content

Commit

Permalink
fix(docs): Make git repo available when building docs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spalladino committed Dec 21, 2023
1 parent 5c6c2ca commit c25c86c
Show file tree
Hide file tree
Showing 2 changed files with 6 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
3 changes: 2 additions & 1 deletion docs/Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ docs/node_modules
!barretenberg/cpp/src/barretenberg
!circuits/cpp/src
!.release-please-manifest.json
!boxes
!boxes
!.git

0 comments on commit c25c86c

Please sign in to comment.