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
13 changes: 3 additions & 10 deletions src/resources/editor/tools/vs-code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16798,13 +16798,6 @@ var require_yaml_intelligence_resources = __commonJS({
},
description: "Theme name, theme scss file, or a mix of both."
},
{
name: "renderings",
schema: {
arrayOf: "string"
},
description: "Array of rendering names, e.g. `[light, dark]`"
},
{
name: "body-classes",
tags: {
Expand Down Expand Up @@ -24305,12 +24298,12 @@ var require_yaml_intelligence_resources = __commonJS({
mermaid: "%%"
},
"handlers/mermaid/schema.yml": {
_internalId: 195005,
_internalId: 195e3,
type: "object",
description: "be an object",
properties: {
"mermaid-format": {
_internalId: 194997,
_internalId: 194992,
type: "enum",
enum: [
"png",
Expand All @@ -24326,7 +24319,7 @@ var require_yaml_intelligence_resources = __commonJS({
exhaustiveCompletions: true
},
theme: {
_internalId: 195004,
_internalId: 194999,
type: "anyOf",
anyOf: [
{
Expand Down
13 changes: 3 additions & 10 deletions src/resources/editor/tools/yaml/web-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 3 additions & 10 deletions src/resources/editor/tools/yaml/yaml-intelligence-resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -9770,13 +9770,6 @@
},
"description": "Theme name, theme scss file, or a mix of both."
},
{
"name": "renderings",
"schema": {
"arrayOf": "string"
},
"description": "Array of rendering names, e.g. `[light, dark]`"
},
{
"name": "body-classes",
"tags": {
Expand Down Expand Up @@ -17277,12 +17270,12 @@
"mermaid": "%%"
},
"handlers/mermaid/schema.yml": {
"_internalId": 195005,
"_internalId": 195000,
"type": "object",
"description": "be an object",
"properties": {
"mermaid-format": {
"_internalId": 194997,
"_internalId": 194992,
"type": "enum",
"enum": [
"png",
Expand All @@ -17298,7 +17291,7 @@
"exhaustiveCompletions": true
},
"theme": {
"_internalId": 195004,
"_internalId": 194999,
"type": "anyOf",
"anyOf": [
{
Expand Down
3 changes: 0 additions & 3 deletions src/resources/filters/normalize/flags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ function compute_flags()
elseif lightbox_auto == false then
flags.has_lightbox = false
end
if el.renderings then
flags.has_renderings = true
end
end,
}}
end
22 changes: 3 additions & 19 deletions src/resources/filters/quarto-post/cell-renderings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,15 @@ function choose_cell_renderings()
return {json}
end
end

local documentRenderings

return {
traverse = "topdown",
Meta = function(meta)
if meta.renderings then
documentRenderings = {}
for _, inlines in ipairs(meta.renderings) do
table.insert(documentRenderings, inlines[1].text)
end
end
end,
Div = function(div)
-- Only process cell div with renderings attr
if not div.classes:includes("cell") or (not documentRenderings and not div.attributes["renderings"]) then
if not div.classes:includes("cell") or not div.attributes["renderings"] then
return nil
end
local renderings
if div.attributes['renderings'] then
local renderingsJson = div.attributes['renderings']
renderings = jsonDecodeArray(renderingsJson)
else
renderings = documentRenderings
end
local renderingsJson = div.attributes['renderings']
local renderings = jsonDecodeArray(renderingsJson)
if not type(renderings) == "table" or #renderings == 0 then
quarto.log.warning("renderings expected array of rendering names, got", renderings)
return nil
Expand Down
5 changes: 0 additions & 5 deletions src/resources/schema/document-options.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
description: The dark theme name, theme scss file, or a mix of both.
description: Theme name, theme scss file, or a mix of both.

- name: renderings
schema:
arrayOf: string
description: "Array of rendering names, e.g. `[light, dark]`"

- name: body-classes
tags:
formats: [$html-doc]
Expand Down
130 changes: 0 additions & 130 deletions tests/docs/smoke-all/dark-mode/ggplot-duobrand-doc-renderings.qmd

This file was deleted.

Loading