Skip to content

Commit

Permalink
fix: Docs links URL missing a letter (#5223)
Browse files Browse the repository at this point in the history
Seems like COMMIT_TAG strips the leading `v` as well. This seems to
contradict what we're seeing here, but oh well.


https://github.com/AztecProtocol/aztec-packages/blob/37bdc1820f92ad2cc545e6843a0dd90273c21e0e/build-system/scripts/setup_env#L17
  • Loading branch information
spalladino authored Mar 14, 2024
1 parent c653b9d commit c015a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/preprocess/include_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async function preprocessIncludeCode(markdownContent, filePath, rootDir) {
.replace(/^\//, "");
const urlText = `${relativeCodeFilePath}#L${startLine}-L${endLine}`;
const tag = process.env.COMMIT_TAG
? `aztec-packages-${process.env.COMMIT_TAG}`
? `aztec-packages-v${process.env.COMMIT_TAG}`
: "master";
const url = `https://github.com/AztecProtocol/aztec-packages/blob/${tag}/${urlText}`;

Expand Down

0 comments on commit c015a3f

Please sign in to comment.