-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: barretenberg doxygen CI (#3818)
First pass on doxygen CI. This is now uploading files to S3 based on running doxygen on the barretenberg codebase. - It's mostly a listing of everything's signature + source, and a few pieces of documentation. We can figure out a documentation plan from here - This needs to actually be pointed somewhere to be [slash]meaningful[/slash] convenient right now, but lives here https://aztec-ci-artifacts.s3.us-east-2.amazonaws.com/barretenberg-doxygen/3f0fad0de81d472cf71c03df11cf01ed6e7e09e0/index.html --------- Co-authored-by: ludamad <adam@aztecprotocol.com> Co-authored-by: Maddiaa <47148561+Maddiaa0@users.noreply.github.com>
- Loading branch information
1 parent
b53bacf
commit 022a918
Showing
6 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM alpine:3.18 AS builder | ||
RUN apk update \ | ||
&& apk upgrade \ | ||
&& apk add --no-cache \ | ||
doxygen | ||
WORKDIR /usr/src/barretenberg/cpp/ | ||
COPY . . | ||
RUN doxygen docs/Doxyfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Minimal Doxyfile. See https://www.doxygen.nl/manual/config.html | ||
|
||
# Project related configuration options | ||
DOXYFILE_ENCODING = UTF-8 | ||
PROJECT_NAME = "barretenberg" | ||
|
||
# Paths and filenames | ||
INPUT = src/barretenberg | ||
HTML_OUTPUT = docs/build | ||
FILE_PATTERNS = *.c \ | ||
*.cpp \ | ||
*.h \ | ||
*.hpp | ||
RECURSIVE = YES | ||
|
||
# Output format options | ||
GENERATE_HTML = YES | ||
GENERATE_LATEX = NO | ||
HAVE_DOT = NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Uploads to S3 the contents of a doxygen barretenberg C++ documentation build. | ||
# This is then to be used as a static website. | ||
#!/usr/bin/env bash | ||
[ -n "${BUILD_SYSTEM_DEBUG:-}" ] && set -x # conditionally trace | ||
set -eu | ||
|
||
extract_repo barretenberg-docs /usr/src extracted-repo | ||
|
||
BUCKET_NAME="aztec-ci-artifacts" | ||
COMMIT_HASH="${COMMIT_HASH:-$(git rev-parse HEAD)}" | ||
TARGET_FOLDER="barretenberg-doxygen/$COMMIT_HASH" | ||
|
||
echo "Uploading to s3://$BUCKET_NAME/$TARGET_FOLDER" | ||
aws s3 cp extracted-repo/src/barretenberg/cpp/docs/build "s3://$BUCKET_NAME/$TARGET_FOLDER" --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters