Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/authoring/_shortcodes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Quarto supports several shortcodes natively:

| Shortcode | Description |
|---------------------------------------------------------------|------------------------------------------|
| [version](/docs/authoring/version.qmd) | Print Quarto CLI version |
| [var](/docs/authoring/variables.qmd#var) | Print value from `_variables.yml` file |
| [meta](/docs/authoring/variables.qmd#meta) | Print value from document metadata |
| [env](/docs/authoring/variables.qmd#url) | Print system environment variable |
Expand Down
24 changes: 24 additions & 0 deletions docs/authoring/version.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Displaying Quarto CLI Version
---

## Overview

The `version` shortcode prints the version of the Quarto CLI that is being used to build the document as part of the document content.

## Example

Here's an example of the `{{{< version >}}}` shortcode in action:

> Quarto CLI {{< version >}} is being used to build this document.

## Usage

::: {layout-ncol=2}
```markdown
Quarto CLI {{{< version >}}} is amazing.
```
:::: {.border}
Quarto CLI {{< version >}} is amazing.
::::
:::
Loading