Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: native shortcode to get Quarto CLI version #12006

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

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.

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