@zpress/config 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +2 -2
- package/schemas/schema.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ export default defineConfig({
|
|
|
52
52
|
|
|
53
53
|
```json
|
|
54
54
|
{
|
|
55
|
-
"$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.
|
|
55
|
+
"$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json",
|
|
56
56
|
"title": "My Documentation",
|
|
57
57
|
"theme": {
|
|
58
58
|
"name": "arcade",
|
|
@@ -70,7 +70,7 @@ export default defineConfig({
|
|
|
70
70
|
### YAML Config with Schema
|
|
71
71
|
|
|
72
72
|
```yaml
|
|
73
|
-
# yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.
|
|
73
|
+
# yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json
|
|
74
74
|
|
|
75
75
|
title: My Documentation
|
|
76
76
|
theme:
|
|
@@ -165,7 +165,7 @@ Add `$schema` property to your `zpress.config.json`:
|
|
|
165
165
|
|
|
166
166
|
```json
|
|
167
167
|
{
|
|
168
|
-
"$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.
|
|
168
|
+
"$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json"
|
|
169
169
|
}
|
|
170
170
|
```
|
|
171
171
|
|
|
@@ -174,7 +174,7 @@ Add `$schema` property to your `zpress.config.json`:
|
|
|
174
174
|
Add a modeline comment to your `zpress.config.yaml`:
|
|
175
175
|
|
|
176
176
|
```yaml
|
|
177
|
-
# yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.
|
|
177
|
+
# yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json
|
|
178
178
|
```
|
|
179
179
|
|
|
180
180
|
### Versioned Schemas
|
|
@@ -314,7 +314,7 @@ function configErrorFromZod(zodError: z.ZodError): ConfigError
|
|
|
314
314
|
|
|
315
315
|
Re-exported from `@zpress/theme`:
|
|
316
316
|
|
|
317
|
-
- `THEME_NAMES` - Array of built-in theme names: `['base', 'midnight', 'arcade'
|
|
317
|
+
- `THEME_NAMES` - Array of built-in theme names: `['base', 'midnight', 'arcade']`
|
|
318
318
|
- `COLOR_MODES` - Array of valid color modes: `['dark', 'light', 'toggle']`
|
|
319
319
|
- `ICON_COLORS` - Array of built-in icon colors: `['purple', 'blue', 'green', 'amber', 'cyan', 'red', 'pink', 'slate']`
|
|
320
320
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zpress/config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Configuration loading and validation for zpress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"ts-pattern": "^5.9.0",
|
|
41
41
|
"type-fest": "^5.4.4",
|
|
42
42
|
"zod": "^4.3.6",
|
|
43
|
-
"@zpress/theme": "0.2.
|
|
43
|
+
"@zpress/theme": "0.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@rslib/core": "^0.20.0",
|
package/schemas/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.1/packages/config/schemas/schema.json",
|
|
4
4
|
"title": "Zpress Configuration",
|
|
5
5
|
"description": "Configuration file for zpress documentation framework",
|
|
6
6
|
"$ref": "#/definitions/ZpressConfig",
|