Skip to content

Commit 7bf2ee1

Browse files
committed
merge
2 parents d846f20 + 150046b commit 7bf2ee1

File tree

22 files changed

+430
-263
lines changed

22 files changed

+430
-263
lines changed

news/changelog-1.7.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,13 @@ All changes included in 1.7:
154154
- ([#12365](https://github.com/quarto-dev/quarto-cli/pull/12365)): `brand color` shortcode takes an optional `brandMode` second parameter, default `light`.
155155
- ([#12453](https://github.com/quarto-dev/quarto-cli/issues/12453)): Expose `_quarto.modules.brand` as `quarto.brand` and add `has_mode()` function.
156156

157-
## Lua API
157+
### Conditional Content
158158

159+
- ([#4411](https://github.com/quarto-dev/quarto-cli/issues/12462)): Added support for new format and aliases in `when-format` and `unless-format`: `confluence`, `docusaurus` (and `docusaurus-md`), `email`, `dashboard`, `gfm`, `hugo` (and `hugo-md`).
160+
161+
### Quarto Lua API
162+
163+
- ([#4411](https://github.com/quarto-dev/quarto-cli/issues/12462)): `quarto.format.is_format` is now working as expected with support of more aliases: `confluence`, `docusaurus` (and `docusaurus-md`), `email`, `dashboard`, `gfm`, `hugo` (and `hugo-md`)
159164
- ([#12299](https://github.com/quarto-dev/quarto-cli/issues/12299)): `quarto.doc.pdf_engine()` now correctly returns the PDF engine used for the document. `quarto.doc.cite_method()` now returns `nil` if no citation method will be used (i.e. no references is the document set).
160165

161166
## Languages

src/resources/create/extensions/format-typst/_extensions/qstart-filesafename-qend/typst-show.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ $endif$
5252
$if(mainfont)$
5353
font: ("$mainfont$",),
5454
$elseif(brand.typography.base.family)$
55-
font: ("$brand.typography.base.family$",),
55+
font: $brand.typography.base.family$,
5656
$endif$
5757
$if(fontsize)$
5858
fontsize: $fontsize$,
@@ -61,7 +61,7 @@ $elseif(brand.typography.base.size)$
6161
$endif$
6262
$if(title)$
6363
$if(brand.typography.headings.family)$
64-
heading-family: ("$brand.typography.headings.family$",),
64+
heading-family: $brand.typography.headings.family$,
6565
$endif$
6666
$if(brand.typography.headings.weight)$
6767
heading-weight: $brand.typography.headings.weight$,

src/resources/editor/tools/vs-code.mjs

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16802,13 +16802,6 @@ var require_yaml_intelligence_resources = __commonJS({
1680216802
},
1680316803
description: "Theme name, theme scss file, or a mix of both."
1680416804
},
16805-
{
16806-
name: "renderings",
16807-
schema: {
16808-
arrayOf: "string"
16809-
},
16810-
description: "Array of rendering names, e.g. `[light, dark]`"
16811-
},
1681216805
{
1681316806
name: "body-classes",
1681416807
tags: {
@@ -20752,6 +20745,16 @@ var require_yaml_intelligence_resources = __commonJS({
2075220745
"Alias for href",
2075320746
'Value for rel attribute. Multiple space-separated values are\npermitted. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel" class="uri">https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel</a>\nfor a details.',
2075420747
'Value for target attribute. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target" class="uri">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target</a>\nfor details.',
20748+
"The Github repo that will be used to store comments.",
20749+
"The label that will be assigned to issues created by Utterances.",
20750+
{
20751+
short: "The Github theme that should be used for Utterances.",
20752+
long: "The Github theme that should be used for Utterances\n(<code>github-light</code>, <code>github-dark</code>,\n<code>github-dark-orange</code>, <code>icy-dark</code>,\n<code>dark-blue</code>, <code>photon-dark</code>,\n<code>body-light</code>, or <code>gruvbox-dark</code>)"
20753+
},
20754+
{
20755+
short: "How posts should be mapped to Github issues",
20756+
long: "How posts should be mapped to Github issues (<code>pathname</code>,\n<code>url</code>, <code>title</code> or <code>og:title</code>)"
20757+
},
2075520758
{
2075620759
short: "The Github repo that will be used to store comments.",
2075720760
long: "The Github repo that will be used to store comments.\nIn order to work correctly, the repo must be public, with the giscus\napp installed, and the discussions feature must be enabled."
@@ -20782,16 +20785,6 @@ var require_yaml_intelligence_resources = __commonJS({
2078220785
"The light theme name.",
2078320786
"The dark theme name.",
2078420787
"The language that should be used when displaying the commenting\ninterface.",
20785-
"The Github repo that will be used to store comments.",
20786-
"The label that will be assigned to issues created by Utterances.",
20787-
{
20788-
short: "The Github theme that should be used for Utterances.",
20789-
long: "The Github theme that should be used for Utterances\n(<code>github-light</code>, <code>github-dark</code>,\n<code>github-dark-orange</code>, <code>icy-dark</code>,\n<code>dark-blue</code>, <code>photon-dark</code>,\n<code>body-light</code>, or <code>gruvbox-dark</code>)"
20790-
},
20791-
{
20792-
short: "How posts should be mapped to Github issues",
20793-
long: "How posts should be mapped to Github issues (<code>pathname</code>,\n<code>url</code>, <code>title</code> or <code>og:title</code>)"
20794-
},
2079520788
"Override the default hypothesis client url with a custom client\nurl.",
2079620789
"Controls whether the sidebar opens automatically on startup.",
2079720790
"Controls whether the in-document highlights are shown by default\n(<code>always</code>, <code>whenSidebarOpen</code> or\n<code>never</code>)",
@@ -22975,7 +22968,6 @@ var require_yaml_intelligence_resources = __commonJS({
2297522968
"The light theme name, theme scss file, or a mix of both.",
2297622969
"The dark theme name, theme scss file, or a mix of both.",
2297722970
"The dark theme name, theme scss file, or a mix of both.",
22978-
"Array of rendering names, e.g.&nbsp;<code>[light, dark]</code>",
2297922971
"Classes to apply to the body of the document.",
2298022972
"Disables the built in html features like theming, anchor sections,\ncode block behavior, and more.",
2298122973
"Enables inclusion of Pandoc default CSS for this document.",
@@ -24081,6 +24073,36 @@ var require_yaml_intelligence_resources = __commonJS({
2408124073
"Manuscript configuration",
2408224074
"internal-schema-hack",
2408324075
"List execution engines you want to give priority when determining\nwhich engine should render a notebook. If two engines have support for a\nnotebook, the one listed earlier will be chosen. Quarto\u2019s default order\nis \u2018knitr\u2019, \u2018jupyter\u2019, \u2018markdown\u2019, \u2018julia\u2019.",
24076+
{
24077+
short: "The Github repo that will be used to store comments.",
24078+
long: "The Github repo that will be used to store comments.\nIn order to work correctly, the repo must be public, with the giscus\napp installed, and the discussions feature must be enabled."
24079+
},
24080+
{
24081+
short: "The Github repository identifier.",
24082+
long: 'The Github repository identifier.\nYou can quickly find this by using the configuration tool at <a href="https://giscus.app">https://giscus.app</a>. If this is not\nprovided, Quarto will attempt to discover it at render time.'
24083+
},
24084+
{
24085+
short: "The discussion category where new discussions will be created.",
24086+
long: "The discussion category where new discussions will be created. It is\nrecommended to use a category with the <strong>Announcements</strong>\ntype so that new discussions can only be created by maintainers and\ngiscus."
24087+
},
24088+
{
24089+
short: "The Github category identifier.",
24090+
long: 'The Github category identifier.\nYou can quickly find this by using the configuration tool at <a href="https://giscus.app">https://giscus.app</a>. If this is not\nprovided, Quarto will attempt to discover it at render time.'
24091+
},
24092+
{
24093+
short: "The mapping between the page and the embedded discussion.",
24094+
long: "The mapping between the page and the embedded discussion."
24095+
},
24096+
"Display reactions for the discussion\u2019s main post before the\ncomments.",
24097+
"Specify <code>loading: lazy</code> to defer loading comments until\nthe user scrolls near the comments container.",
24098+
"Place the comment input box above or below the comments.",
24099+
{
24100+
short: "The giscus theme to use when displaying comments.",
24101+
long: "The giscus theme to use when displaying comments. Light and dark\nthemes are supported. If a single theme is provided by name, it will be\nused as light and dark theme. To use different themes, use\n<code>light</code> and <code>dark</code> key:"
24102+
},
24103+
"The light theme name.",
24104+
"The dark theme name.",
24105+
"The language that should be used when displaying the commenting\ninterface.",
2408424106
"The Github repo that will be used to store comments.",
2408524107
"The label that will be assigned to issues created by Utterances.",
2408624108
{
@@ -24348,12 +24370,12 @@ var require_yaml_intelligence_resources = __commonJS({
2434824370
mermaid: "%%"
2434924371
},
2435024372
"handlers/mermaid/schema.yml": {
24351-
_internalId: 195011,
24373+
_internalId: 194571,
2435224374
type: "object",
2435324375
description: "be an object",
2435424376
properties: {
2435524377
"mermaid-format": {
24356-
_internalId: 195003,
24378+
_internalId: 194563,
2435724379
type: "enum",
2435824380
enum: [
2435924381
"png",
@@ -24369,7 +24391,7 @@ var require_yaml_intelligence_resources = __commonJS({
2436924391
exhaustiveCompletions: true
2437024392
},
2437124393
theme: {
24372-
_internalId: 195010,
24394+
_internalId: 194570,
2437324395
type: "anyOf",
2437424396
anyOf: [
2437524397
{

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 43 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)