Skip to content

Conversation

mcanouil
Copy link
Collaborator

@mcanouil mcanouil commented Feb 1, 2025

Introduce a native shortcode that retrieves the Quarto CLI version. This feature allows users to easily access the version information within their Quarto documents using {{< version >}}

Fixes #11379

This should be followed by a PR to the prerelease branch on https://github.com/quarto-dev/quarto-web

@mcanouil mcanouil self-assigned this Feb 1, 2025
@cscheid
Copy link
Collaborator

cscheid commented Mar 6, 2025

Thanks for this PR.

We should have some basic tests for this feature. It might be a little weird because the versions will change every time, but we should be checking that the shortcode is called and something comes out the other side (using a Lua filter, for example)

@mcanouil
Copy link
Collaborator Author

mcanouil commented Mar 6, 2025

Maybe a test checking for a semantic version string.

@mcanouil
Copy link
Collaborator Author

mcanouil commented Mar 6, 2025

Test added.
I'll make a PR against the "pre-release" branch of the documentation once merged.

@cscheid
Copy link
Collaborator

cscheid commented Mar 14, 2025

Nice way to make the test future proof. Thanks!

@cscheid cscheid merged commit c1ea7b2 into quarto-dev:main Mar 14, 2025
47 checks passed
@mcanouil mcanouil deleted the fix/issue11379 branch March 14, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native shortcode to get Quarto CLI version

2 participants