-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Load current aztec version for aztec.nr dependencies in d…
…ocs (#2440) Instead of pointing the user to install aztec.nr from master, we point them to the last released version. This ensures that any unreleased breaking changes to aztec.nr won't hit the user. ![image](https://github.com/AztecProtocol/aztec-packages/assets/429604/72447e11-6f3a-4f08-882d-ab6dda02d38a) This requires changing the triple-backtick code block to an explicit `<CodeBlock>` mdx component, so we can escape the content and call the function that provides the current version. It also requires `import`ing the function explicitly. As a less verbose alternative, I considered using release-please for this. We could annotate the triple-backtick block with `x-release-please-version` comments, and have release-please automatically replace the version there. However, there is no easy way to test this locally, and it required explicitly adding the doc file to an `extra-files` setting in the release config manifest, which is easy to forget. So I went with the more verbose but more explicit version of having to call `AztecPackagesVersion`.
- Loading branch information
1 parent
c6ddd23
commit 63cf415
Showing
8 changed files
with
60 additions
and
28 deletions.
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
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
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