Skip to content

Commit c60d137

Browse files
committed
Aloow users to pass ejs templates to the about page
1 parent aa9c2c9 commit c60d137

File tree

5 files changed

+47
-33
lines changed

5 files changed

+47
-33
lines changed

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9867,12 +9867,17 @@ var require_yaml_intelligence_resources = __commonJS({
98679867
}
98689868
},
98699869
template: {
9870-
enum: [
9871-
"jolla",
9872-
"trestles",
9873-
"solana",
9874-
"marquee",
9875-
"broadside"
9870+
anyOf: [
9871+
{
9872+
enum: [
9873+
"jolla",
9874+
"trestles",
9875+
"solana",
9876+
"marquee",
9877+
"broadside"
9878+
]
9879+
},
9880+
"path"
98769881
],
98779882
description: {
98789883
short: "The template to use to layout this about page.",
@@ -21230,12 +21235,12 @@ var require_yaml_intelligence_resources = __commonJS({
2123021235
mermaid: "%%"
2123121236
},
2123221237
"handlers/mermaid/schema.yml": {
21233-
_internalId: 151724,
21238+
_internalId: 151729,
2123421239
type: "object",
2123521240
description: "be an object",
2123621241
properties: {
2123721242
"mermaid-format": {
21238-
_internalId: 151716,
21243+
_internalId: 151721,
2123921244
type: "enum",
2124021245
enum: [
2124121246
"png",
@@ -21251,7 +21256,7 @@ var require_yaml_intelligence_resources = __commonJS({
2125121256
exhaustiveCompletions: true
2125221257
},
2125321258
theme: {
21254-
_internalId: 151723,
21259+
_internalId: 151728,
2125521260
type: "anyOf",
2125621261
anyOf: [
2125721262
{

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

Lines changed: 14 additions & 9 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: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2843,12 +2843,17 @@
28432843
}
28442844
},
28452845
"template": {
2846-
"enum": [
2847-
"jolla",
2848-
"trestles",
2849-
"solana",
2850-
"marquee",
2851-
"broadside"
2846+
"anyOf": [
2847+
{
2848+
"enum": [
2849+
"jolla",
2850+
"trestles",
2851+
"solana",
2852+
"marquee",
2853+
"broadside"
2854+
]
2855+
},
2856+
"path"
28522857
],
28532858
"description": {
28542859
"short": "The template to use to layout this about page.",
@@ -14206,12 +14211,12 @@
1420614211
"mermaid": "%%"
1420714212
},
1420814213
"handlers/mermaid/schema.yml": {
14209-
"_internalId": 151724,
14214+
"_internalId": 151729,
1421014215
"type": "object",
1421114216
"description": "be an object",
1421214217
"properties": {
1421314218
"mermaid-format": {
14214-
"_internalId": 151716,
14219+
"_internalId": 151721,
1421514220
"type": "enum",
1421614221
"enum": [
1421714222
"png",
@@ -14227,7 +14232,7 @@
1422714232
"exhaustiveCompletions": true
1422814233
},
1422914234
"theme": {
14230-
"_internalId": 151723,
14235+
"_internalId": 151728,
1423114236
"type": "anyOf",
1423214237
"anyOf": [
1423314238
{

src/resources/schema/definitions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,9 @@
11851185
If no such `div` is defined on the page, a `div` with this id will be created
11861186
and appended to the end of the page.
11871187
template:
1188-
enum: [jolla, trestles, solana, marquee, broadside]
1188+
anyOf:
1189+
- enum: [jolla, trestles, solana, marquee, broadside]
1190+
- path
11891191
description:
11901192
short: "The template to use to layout this about page."
11911193
long: |

src/resources/types/schema-types.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,8 @@ and appended to the end of the page. */;
688688
the `image` provided for the document itself will be used. */;
689689
links?: (NavigationItem)[];
690690
template?:
691-
| "jolla"
692-
| "trestles"
693-
| "solana"
694-
| "marquee"
695-
| "broadside"; /* The template to use to layout this about page. Choose from:
691+
| ("jolla" | "trestles" | "solana" | "marquee" | "broadside")
692+
| string; /* The template to use to layout this about page. Choose from:
696693
697694
- `jolla`
698695
- `trestles`

0 commit comments

Comments
 (0)