From c015a3fc09ab495baa88b19ad2250b894834069a Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Thu, 14 Mar 2024 17:18:42 -0300 Subject: [PATCH] fix: Docs links URL missing a letter (#5223) 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 --- docs/src/preprocess/include_code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/preprocess/include_code.js b/docs/src/preprocess/include_code.js index 01a37e44ce1..08758311b53 100644 --- a/docs/src/preprocess/include_code.js +++ b/docs/src/preprocess/include_code.js @@ -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}`;