Skip to content

Commit f1b3773

Browse files
Add Power Pages configuration schema (SchemaStore#4778)
* feat: add Power Pages configuration schema - ✨ Added schema for Power Pages configuration file. - 📝 Included properties: siteName, defaultLandingPage, and compiledPath. - 📁 Created test configuration file for validation. -Priyanshu * feat: add Power Pages configuration schema - ✨ Added schema for Power Pages configuration file. - 📝 Included properties: siteName, defaultLandingPage, and compiledPath. - 📁 Created test configuration file for validation. -Priyanshu * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Remove duplicate config * Rename configuration --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 536c713 commit f1b3773

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

src/api/json/catalog.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8171,6 +8171,12 @@
81718171
"openstatus.toml"
81728172
],
81738173
"url": "https://github.com/openstatusHQ/json-schema/releases/download/v1.0.0/schema.json"
8174+
},
8175+
{
8176+
"name": "Power Pages Configuration",
8177+
"description": "Power Pages configuration file for Bring Your Own Code (BYOC) sites",
8178+
"fileMatch": ["powerpages.config.json"],
8179+
"url": "https://json.schemastore.org/powerpages.config.json"
81748180
}
81758181
]
81768182
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://json.schemastore.org/powerpages.config.json",
4+
"additionalProperties": true,
5+
"title": "JSON schema for the Power Pages configuration file",
6+
"properties": {
7+
"siteName": {
8+
"type": "string",
9+
"description": "The name of the website"
10+
},
11+
"defaultLandingPage": {
12+
"type": "string",
13+
"description": "The default HTML page to load when opening the website",
14+
"pattern": "^[\\w.-]+\\.html$"
15+
},
16+
"compiledPath": {
17+
"type": "string",
18+
"description": "The path of the compiled output directory relative to powerpages.config.json file"
19+
}
20+
},
21+
"type": "object"
22+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compiledPath": "C:\\path\\to\\compiled\\folder",
3+
"defaultLandingPage": "foo.html",
4+
"siteName": "Website Name"
5+
}

0 commit comments

Comments
 (0)