Skip to content

Commit

Permalink
fix(docs): Remove prefix in link to code snippet source (#6878)
Browse files Browse the repository at this point in the history
The COMMIT_TAG being passed into `process.env` via earthly has change to
include `aztec-packges-v`, so removing it from the include_code macro
  • Loading branch information
critesjosh authored Jun 4, 2024
1 parent ce7f0e2 commit 0e8e772
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 @@ -257,7 +257,7 @@ async function preprocessIncludeCode(markdownContent, filePath, rootDir) {
.replace(/^\//, "");
const urlText = `${relativeCodeFilePath}#L${startLine}-L${endLine}`;
const tag = process.env.COMMIT_TAG
? `aztec-packages-v${process.env.COMMIT_TAG}`
? `${process.env.COMMIT_TAG}`
: "master";
const url = `https://github.com/AztecProtocol/aztec-packages/blob/${tag}/${urlText}`;

Expand Down

0 comments on commit 0e8e772

Please sign in to comment.