Skip to content

Commit bce2d99

Browse files
authored
fix(docs): Make git repo available when building docs (AztecProtocol#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).
1 parent 5c6c2ca commit bce2d99

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.circleci/config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,11 @@ jobs:
856856
name: "Configure build for master"
857857
command: |
858858
if [ "$CIRCLE_BRANCH" == "master" ]; then
859-
echo "Configuring build for master"
859+
echo Configuring build for master
860860
echo "INCLUDE_RELEASED_CODE=1" >> docs/.env
861+
LAST_TAG="aztec-packages-v$(jq -r '.["."]' .release-please-manifest.json)"
862+
echo Fetching latest released tag $LAST_TAG
863+
git fetch origin --refetch --no-filter refs/tags/$LAST_TAG:refs/tags/$LAST_TAG
861864
fi
862865
- run:
863866
name: "Build docs"

docs/Dockerfile.dockerignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ docs/node_modules
99
!barretenberg/cpp/src/barretenberg
1010
!circuits/cpp/src
1111
!.release-please-manifest.json
12-
!boxes
12+
!boxes
13+
14+
# Docs build fetches code snippets from the last release using git show.
15+
!.git

0 commit comments

Comments
 (0)