Skip to content

Commit c2ed4c6

Browse files
committed
build schema
1 parent 04f9a32 commit c2ed4c6

File tree

7 files changed

+37
-10
lines changed

7 files changed

+37
-10
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9427,6 +9427,13 @@ var require_yaml_intelligence_resources = __commonJS({
94279427
],
94289428
description: "Enable Google Analytics for this website"
94299429
},
9430+
"plausible-analytics": {
9431+
schema: "string",
9432+
description: {
9433+
short: "Enable Plausible Analytics for this website",
9434+
long: "Enable Plausible Analytics for this website by pasting the script snippet from your Plausible dashboard.\n\nPlausible is a privacy-friendly, GDPR-compliant web analytics service that does not use cookies and does not require cookie consent.\n\nTo get your script snippet:\n\n1. Log into your Plausible account at <https://plausible.io>\n2. Go to your site settings\n3. Copy the JavaScript snippet provided\n4. Paste it here\n\nFor more information, see <https://plausible.io/docs/plausible-script>\n"
9435+
}
9436+
},
94309437
announcement: {
94319438
anyOf: [
94329439
"string",
@@ -24933,12 +24940,12 @@ var require_yaml_intelligence_resources = __commonJS({
2493324940
mermaid: "%%"
2493424941
},
2493524942
"handlers/mermaid/schema.yml": {
24936-
_internalId: 197474,
24943+
_internalId: 197475,
2493724944
type: "object",
2493824945
description: "be an object",
2493924946
properties: {
2494024947
"mermaid-format": {
24941-
_internalId: 197466,
24948+
_internalId: 197467,
2494224949
type: "enum",
2494324950
enum: [
2494424951
"png",
@@ -24954,7 +24961,7 @@ var require_yaml_intelligence_resources = __commonJS({
2495424961
exhaustiveCompletions: true
2495524962
},
2495624963
theme: {
24957-
_internalId: 197473,
24964+
_internalId: 197474,
2495824965
type: "anyOf",
2495924966
anyOf: [
2496024967
{

src/resources/editor/tools/yaml/all-schema-definitions.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

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

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,13 @@
23992399
],
24002400
"description": "Enable Google Analytics for this website"
24012401
},
2402+
"plausible-analytics": {
2403+
"schema": "string",
2404+
"description": {
2405+
"short": "Enable Plausible Analytics for this website",
2406+
"long": "Enable Plausible Analytics for this website by pasting the script snippet from your Plausible dashboard.\n\nPlausible is a privacy-friendly, GDPR-compliant web analytics service that does not use cookies and does not require cookie consent.\n\nTo get your script snippet:\n\n1. Log into your Plausible account at <https://plausible.io>\n2. Go to your site settings\n3. Copy the JavaScript snippet provided\n4. Paste it here\n\nFor more information, see <https://plausible.io/docs/plausible-script>\n"
2407+
}
2408+
},
24022409
"announcement": {
24032410
"anyOf": [
24042411
"string",
@@ -17905,12 +17912,12 @@
1790517912
"mermaid": "%%"
1790617913
},
1790717914
"handlers/mermaid/schema.yml": {
17908-
"_internalId": 197474,
17915+
"_internalId": 197475,
1790917916
"type": "object",
1791017917
"description": "be an object",
1791117918
"properties": {
1791217919
"mermaid-format": {
17913-
"_internalId": 197466,
17920+
"_internalId": 197467,
1791417921
"type": "enum",
1791517922
"enum": [
1791617923
"png",
@@ -17926,7 +17933,7 @@
1792617933
"exhaustiveCompletions": true
1792717934
},
1792817935
"theme": {
17929-
"_internalId": 197473,
17936+
"_internalId": 197474,
1793017937
"type": "anyOf",
1793117938
"anyOf": [
1793217939
{

src/resources/schema/json-schemas.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,9 @@
819819
}
820820
]
821821
},
822+
"plausible-analytics": {
823+
"type": "string"
824+
},
822825
"announcement": {
823826
"anyOf": [
824827
{

src/resources/types/schema-types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ For more about choosing storage options see [Storage](https://quarto.org/docs/we
378378
379379
This is automatically detected based upon the `tracking-id`, but you may specify it. */
380380
} /* Enable Google Analytics for this website */;
381+
"plausible-analytics"?: string;
381382
"cookie-consent"?: ("express" | "implied") | boolean | {
382383
"policy-url"?: string;
383384
"prefs-text"?: string;

src/resources/types/zod/schema-types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export const ZodBaseWebsite = z.object({
299299
version: z.union([z.literal(3), z.literal(4)]),
300300
}).passthrough().partial(),
301301
]),
302+
"plausible-analytics": z.string(),
302303
announcement: z.union([
303304
z.string(),
304305
z.object({
@@ -473,6 +474,7 @@ export const ZodBookSchema = z.object({
473474
version: z.union([z.literal(3), z.literal(4)]),
474475
}).passthrough().partial(),
475476
]),
477+
"plausible-analytics": z.string(),
476478
announcement: z.union([
477479
z.string(),
478480
z.object({

0 commit comments

Comments
 (0)