@masumdev/markforge 0.2.2 → 0.2.4

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/schema.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "MarkforgeConfig",
4
- "description": "Configuration schema for @masumdev/markforge Markdown & MDX document publishing engine",
4
+ "description": "Type-safe configuration schema for @masumdev/markforge Markdown & MDX document publishing engine",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "$schema": {
8
8
  "type": "string",
9
- "description": "JSON schema reference URI"
9
+ "description": "JSON Schema reference URI for IDE autocompletion and validation"
10
10
  },
11
11
  "to": {
12
- "description": "Target formats to compile markdown to",
12
+ "description": "Target formats to compile markdown to (docx, pdf, html, png)",
13
13
  "oneOf": [
14
14
  {
15
15
  "type": "string",
@@ -31,12 +31,12 @@
31
31
  },
32
32
  "theme": {
33
33
  "type": "string",
34
- "description": "Visual document theme",
34
+ "description": "Visual document theme name",
35
35
  "enum": ["default", "academic", "github", "corporate", "minimal", "dracula"],
36
36
  "default": "default"
37
37
  },
38
38
  "css": {
39
- "description": "Custom CSS stylesheet(s) to inject",
39
+ "description": "Custom CSS stylesheet path(s) to inject",
40
40
  "oneOf": [
41
41
  { "type": "string" },
42
42
  { "type": "array", "items": { "type": "string" } }
@@ -44,56 +44,87 @@
44
44
  },
45
45
  "orientation": {
46
46
  "type": "string",
47
+ "description": "Page orientation for PDF and DOCX",
47
48
  "enum": ["portrait", "landscape"],
48
49
  "default": "portrait"
49
50
  },
50
51
  "paperSize": {
51
52
  "type": "string",
53
+ "description": "Physical page size",
52
54
  "enum": ["A4", "Letter", "Legal", "A3", "A5"],
53
55
  "default": "A4"
54
56
  },
55
57
  "margins": {
56
58
  "type": "object",
59
+ "description": "Document margins (supports units like '2.5cm', '1in', '20mm', or pt numbers)",
57
60
  "properties": {
58
61
  "top": { "type": ["string", "number"] },
59
62
  "bottom": { "type": ["string", "number"] },
60
63
  "left": { "type": ["string", "number"] },
61
64
  "right": { "type": ["string", "number"] }
62
- }
65
+ },
66
+ "additionalProperties": false
63
67
  },
64
68
  "header": {
65
69
  "type": "object",
70
+ "description": "Header text across pages",
66
71
  "properties": {
67
72
  "left": { "type": "string" },
68
73
  "center": { "type": "string" },
69
74
  "right": { "type": "string" }
70
- }
75
+ },
76
+ "additionalProperties": false
71
77
  },
72
78
  "footer": {
73
79
  "type": "object",
80
+ "description": "Footer text across pages (supports {page} and {pages} variables)",
74
81
  "properties": {
75
82
  "left": { "type": "string" },
76
83
  "center": { "type": "string" },
77
84
  "right": { "type": "string" }
78
- }
85
+ },
86
+ "additionalProperties": false
79
87
  },
80
88
  "toc": {
81
89
  "type": "boolean",
82
- "description": "Auto-generate Table of Contents",
90
+ "description": "Auto-generate Table of Contents with page references",
83
91
  "default": false
84
92
  },
85
93
  "watermark": {
86
94
  "type": "string",
87
- "description": "Watermark text across pages"
95
+ "description": "Diagonal watermark text across document pages"
88
96
  },
89
97
  "embedImages": {
90
98
  "type": "boolean",
91
- "description": "Whether to inline/embed all images",
99
+ "description": "Whether to inline/embed all images as Base64 in outputs",
92
100
  "default": true
93
101
  },
102
+ "bundleHtml": {
103
+ "type": "boolean",
104
+ "description": "Produce self-contained HTML with embedded styles and scripts",
105
+ "default": true
106
+ },
107
+ "syntaxTheme": {
108
+ "type": "string",
109
+ "description": "Code block syntax highlighting color scheme",
110
+ "enum": ["github-dark", "github-light", "dracula", "monokai", "nord"],
111
+ "default": "github-dark"
112
+ },
113
+ "metadata": {
114
+ "type": "object",
115
+ "description": "Document frontmatter metadata defaults",
116
+ "properties": {
117
+ "title": { "type": "string" },
118
+ "author": { "type": "string" },
119
+ "date": { "type": "string" },
120
+ "version": { "type": "string" },
121
+ "company": { "type": "string" }
122
+ },
123
+ "additionalProperties": true
124
+ },
94
125
  "watch": {
95
126
  "type": "boolean",
96
- "description": "Watch mode for hot compilation",
127
+ "description": "Watch mode for re-compilation on source file changes",
97
128
  "default": false
98
129
  },
99
130
  "serve": {
@@ -108,7 +139,7 @@
108
139
  },
109
140
  "open": {
110
141
  "type": "boolean",
111
- "description": "Open document in browser on compile",
142
+ "description": "Automatically open document in browser on compile",
112
143
  "default": false
113
144
  }
114
145
  },