@clidey/dory 0.27.0 → 0.30.0

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.
Files changed (95) hide show
  1. package/bin/dist/dory.js +115 -29
  2. package/bin/dist/dory.js.map +1 -1
  3. package/package.json +12 -4
  4. package/.dockerignore +0 -4
  5. package/CLAUDE.md +0 -178
  6. package/CODE_OF_CONDUCT.md +0 -128
  7. package/CONTRIBUTING.md +0 -91
  8. package/SECURITY.md +0 -11
  9. package/bin/dory.ts +0 -433
  10. package/dist/favicon.svg +0 -75
  11. package/dist/frontmatter.json +0 -77
  12. package/dist/index.html +0 -55
  13. package/dist/llms.txt +0 -561
  14. package/dist/logo/logo.svg +0 -18
  15. package/docs/api-playground-demo.mdx +0 -119
  16. package/docs/api-reference/asyncapi.json +0 -324
  17. package/docs/api-reference/openapi.json +0 -366
  18. package/docs/api-reference/operations/create.mdx +0 -5
  19. package/docs/api-reference/operations/delete.mdx +0 -5
  20. package/docs/api-reference/operations/get.mdx +0 -5
  21. package/docs/api-reference/operations/update.mdx +0 -5
  22. package/docs/api-reference/websocket-operations/receive-chat-message.mdx +0 -5
  23. package/docs/api-reference/websocket-operations/receive-notifications.mdx +0 -5
  24. package/docs/api-reference/websocket-operations/receive-presence-update.mdx +0 -5
  25. package/docs/api-reference/websocket-operations/send-chat-message.mdx +0 -5
  26. package/docs/api-reference/websocket-operations/send-presence-update.mdx +0 -5
  27. package/docs/dory.json +0 -64
  28. package/docs/favicon.svg +0 -75
  29. package/docs/features.mdx +0 -440
  30. package/docs/introduction.mdx +0 -44
  31. package/docs/logo/logo.svg +0 -18
  32. package/docs/websocket-playground-demo.mdx +0 -135
  33. package/index.html +0 -54
  34. package/scripts/generate-frontmatter-json.js +0 -154
  35. package/scripts/generate-llm-txt.js +0 -115
  36. package/src/app.css +0 -5
  37. package/src/app.tsx +0 -13
  38. package/src/components/dropdown.tsx +0 -53
  39. package/src/components/hooks.tsx +0 -28
  40. package/src/components/loading.tsx +0 -21
  41. package/src/components/mdx-provider.tsx +0 -13
  42. package/src/components/navigation.tsx +0 -58
  43. package/src/components/notification.tsx +0 -13
  44. package/src/components/routes.tsx +0 -92
  45. package/src/components/search-index.ts +0 -43
  46. package/src/components/search.tsx +0 -435
  47. package/src/components/store.ts +0 -216
  48. package/src/config/mdx.js +0 -12
  49. package/src/config/mdx.ts +0 -12
  50. package/src/main.tsx +0 -22
  51. package/src/mdx/accordion.tsx +0 -41
  52. package/src/mdx/api-playground.tsx +0 -659
  53. package/src/mdx/api.tsx +0 -354
  54. package/src/mdx/async-api.tsx +0 -353
  55. package/src/mdx/callout.tsx +0 -64
  56. package/src/mdx/card.tsx +0 -54
  57. package/src/mdx/code.tsx +0 -289
  58. package/src/mdx/expandable.tsx +0 -36
  59. package/src/mdx/fence.tsx +0 -74
  60. package/src/mdx/icon.tsx +0 -73
  61. package/src/mdx/latex.tsx +0 -26
  62. package/src/mdx/list.tsx +0 -7
  63. package/src/mdx/mdx.tsx +0 -47
  64. package/src/mdx/mermaid.tsx +0 -147
  65. package/src/mdx/open-api.tsx +0 -311
  66. package/src/mdx/processor.ts +0 -174
  67. package/src/mdx/source.tsx +0 -58
  68. package/src/mdx/step.tsx +0 -51
  69. package/src/mdx/table.tsx +0 -20
  70. package/src/mdx/tag.tsx +0 -53
  71. package/src/mdx/text.tsx +0 -99
  72. package/src/mdx/websocket-playground.tsx +0 -824
  73. package/src/plugins/docs-assets.ts +0 -79
  74. package/src/plugins/frontmatter-dev-server.ts +0 -158
  75. package/src/plugins/frontmatter-generator.ts +0 -157
  76. package/src/plugins/llm-txt-dev-server.ts +0 -183
  77. package/src/plugins/llm-txt-generator.ts +0 -186
  78. package/src/plugins/sanitize.ts +0 -163
  79. package/src/plugins/unified-mdx-plugin.ts +0 -35
  80. package/src/theme.scss +0 -72
  81. package/src/types/config.ts +0 -47
  82. package/src/ui/header.tsx +0 -91
  83. package/src/ui/layout.tsx +0 -193
  84. package/src/ui/mobile-navigation.tsx +0 -64
  85. package/src/ui/prev-next-link.tsx +0 -74
  86. package/src/ui/table-of-content.tsx +0 -166
  87. package/src/utils/colors.ts +0 -54
  88. package/src/utils/fonts.ts +0 -23
  89. package/src/utils/functions.ts +0 -12
  90. package/src/vite-env.d.ts +0 -1
  91. package/tsconfig.app.json +0 -33
  92. package/tsconfig.bin.json +0 -24
  93. package/tsconfig.json +0 -7
  94. package/tsconfig.node.json +0 -26
  95. package/vite.config.ts +0 -41
@@ -1,366 +0,0 @@
1
- {
2
- "openapi": "3.0.0",
3
- "info": {
4
- "title": "Products API",
5
- "version": "1.0.0",
6
- "description": "API for managing products"
7
- },
8
- "servers": [
9
- {
10
- "url": "https://api.example.com/v1",
11
- "description": "Production server"
12
- }
13
- ],
14
- "components": {
15
- "securitySchemes": {
16
- "ApiKeyAuth": {
17
- "type": "apiKey",
18
- "in": "header",
19
- "name": "X-API-Key"
20
- }
21
- },
22
- "schemas": {
23
- "Product": {
24
- "type": "object",
25
- "required": ["name", "price", "category"],
26
- "properties": {
27
- "id": {
28
- "type": "string",
29
- "format": "uuid",
30
- "description": "Unique identifier for the product"
31
- },
32
- "name": {
33
- "type": "string",
34
- "description": "Name of the product"
35
- },
36
- "description": {
37
- "type": "string",
38
- "description": "Detailed description of the product"
39
- },
40
- "price": {
41
- "type": "number",
42
- "format": "float",
43
- "minimum": 0,
44
- "description": "Price of the product"
45
- },
46
- "category": {
47
- "type": "string",
48
- "description": "Category of the product"
49
- },
50
- "inStock": {
51
- "type": "boolean",
52
- "default": true,
53
- "description": "Whether the product is in stock"
54
- },
55
- "createdAt": {
56
- "type": "string",
57
- "format": "date-time",
58
- "description": "Creation timestamp"
59
- },
60
- "updatedAt": {
61
- "type": "string",
62
- "format": "date-time",
63
- "description": "Last update timestamp"
64
- }
65
- }
66
- },
67
- "Error": {
68
- "type": "object",
69
- "properties": {
70
- "code": {
71
- "type": "string",
72
- "description": "Error code"
73
- },
74
- "message": {
75
- "type": "string",
76
- "description": "Error message"
77
- }
78
- }
79
- }
80
- }
81
- },
82
- "paths": {
83
- "/products": {
84
- "get": {
85
- "summary": "List all products",
86
- "description": "Retrieve a paginated list of products",
87
- "security": [
88
- {
89
- "ApiKeyAuth": []
90
- }
91
- ],
92
- "parameters": [
93
- {
94
- "name": "page",
95
- "in": "query",
96
- "description": "Page number",
97
- "required": false,
98
- "schema": {
99
- "type": "integer",
100
- "default": 1,
101
- "minimum": 1
102
- }
103
- },
104
- {
105
- "name": "limit",
106
- "in": "query",
107
- "description": "Number of items per page",
108
- "required": false,
109
- "schema": {
110
- "type": "integer",
111
- "default": 10,
112
- "minimum": 1,
113
- "maximum": 100
114
- }
115
- },
116
- {
117
- "name": "category",
118
- "in": "query",
119
- "description": "Filter by category",
120
- "required": false,
121
- "schema": {
122
- "type": "string"
123
- }
124
- }
125
- ],
126
- "responses": {
127
- "200": {
128
- "description": "Successful response",
129
- "content": {
130
- "application/json": {
131
- "schema": {
132
- "type": "object",
133
- "properties": {
134
- "data": {
135
- "type": "array",
136
- "items": {
137
- "$ref": "#/components/schemas/Product"
138
- }
139
- },
140
- "total": {
141
- "type": "integer"
142
- },
143
- "page": {
144
- "type": "integer"
145
- },
146
- "limit": {
147
- "type": "integer"
148
- }
149
- }
150
- }
151
- }
152
- }
153
- },
154
- "401": {
155
- "description": "Unauthorized",
156
- "content": {
157
- "application/json": {
158
- "schema": {
159
- "$ref": "#/components/schemas/Error"
160
- }
161
- }
162
- }
163
- }
164
- }
165
- },
166
- "post": {
167
- "summary": "Create a new product",
168
- "description": "Create a new product with the provided details",
169
- "security": [
170
- {
171
- "ApiKeyAuth": []
172
- }
173
- ],
174
- "requestBody": {
175
- "required": true,
176
- "content": {
177
- "application/json": {
178
- "schema": {
179
- "type": "object",
180
- "required": ["name", "price", "category"],
181
- "properties": {
182
- "name": {
183
- "type": "string"
184
- },
185
- "description": {
186
- "type": "string"
187
- },
188
- "price": {
189
- "type": "number",
190
- "minimum": 0
191
- },
192
- "category": {
193
- "type": "string"
194
- },
195
- "inStock": {
196
- "type": "boolean"
197
- }
198
- }
199
- }
200
- }
201
- }
202
- },
203
- "responses": {
204
- "201": {
205
- "description": "Product created successfully",
206
- "content": {
207
- "application/json": {
208
- "schema": {
209
- "$ref": "#/components/schemas/Product"
210
- }
211
- }
212
- }
213
- },
214
- "400": {
215
- "description": "Invalid input",
216
- "content": {
217
- "application/json": {
218
- "schema": {
219
- "$ref": "#/components/schemas/Error"
220
- }
221
- }
222
- }
223
- },
224
- "401": {
225
- "description": "Unauthorized",
226
- "content": {
227
- "application/json": {
228
- "schema": {
229
- "$ref": "#/components/schemas/Error"
230
- }
231
- }
232
- }
233
- }
234
- }
235
- }
236
- },
237
- "/products/{id}": {
238
- "parameters": [
239
- {
240
- "name": "id",
241
- "in": "path",
242
- "required": true,
243
- "schema": {
244
- "type": "string",
245
- "format": "uuid"
246
- },
247
- "description": "Product ID"
248
- }
249
- ],
250
- "get": {
251
- "summary": "Get product by ID",
252
- "description": "Retrieve a specific product by its ID",
253
- "security": [
254
- {
255
- "ApiKeyAuth": []
256
- }
257
- ],
258
- "responses": {
259
- "200": {
260
- "description": "Successful response",
261
- "content": {
262
- "application/json": {
263
- "schema": {
264
- "$ref": "#/components/schemas/Product"
265
- }
266
- }
267
- }
268
- },
269
- "404": {
270
- "description": "Product not found",
271
- "content": {
272
- "application/json": {
273
- "schema": {
274
- "$ref": "#/components/schemas/Error"
275
- }
276
- }
277
- }
278
- }
279
- }
280
- },
281
- "put": {
282
- "summary": "Update product",
283
- "description": "Update an existing product by its ID",
284
- "security": [
285
- {
286
- "ApiKeyAuth": []
287
- }
288
- ],
289
- "requestBody": {
290
- "required": true,
291
- "content": {
292
- "application/json": {
293
- "schema": {
294
- "type": "object",
295
- "properties": {
296
- "name": {
297
- "type": "string"
298
- },
299
- "description": {
300
- "type": "string"
301
- },
302
- "price": {
303
- "type": "number",
304
- "minimum": 0
305
- },
306
- "category": {
307
- "type": "string"
308
- },
309
- "inStock": {
310
- "type": "boolean"
311
- }
312
- }
313
- }
314
- }
315
- }
316
- },
317
- "responses": {
318
- "200": {
319
- "description": "Product updated successfully",
320
- "content": {
321
- "application/json": {
322
- "schema": {
323
- "$ref": "#/components/schemas/Product"
324
- }
325
- }
326
- }
327
- },
328
- "404": {
329
- "description": "Product not found",
330
- "content": {
331
- "application/json": {
332
- "schema": {
333
- "$ref": "#/components/schemas/Error"
334
- }
335
- }
336
- }
337
- }
338
- }
339
- },
340
- "delete": {
341
- "summary": "Delete product",
342
- "description": "Delete a product by its ID",
343
- "security": [
344
- {
345
- "ApiKeyAuth": []
346
- }
347
- ],
348
- "responses": {
349
- "204": {
350
- "description": "Product deleted successfully"
351
- },
352
- "404": {
353
- "description": "Product not found",
354
- "content": {
355
- "application/json": {
356
- "schema": {
357
- "$ref": "#/components/schemas/Error"
358
- }
359
- }
360
- }
361
- }
362
- }
363
- }
364
- }
365
- }
366
- }
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'POST /products'
3
- description: 'Create a new product'
4
- openapi: 'POST /products'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'DELETE /products/{id}'
3
- description: 'Delete a product'
4
- openapi: 'DELETE /products/{id}'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'GET /products'
3
- description: 'Get a list of products'
4
- openapi: 'GET /products'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'PUT /products/{id}'
3
- description: 'Update a product'
4
- openapi: 'PUT /products/{id}'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'SUBSCRIBE /chat'
3
- description: 'Subscribe to receive chat messages from other users'
4
- asyncapi: 'subscribe /chat'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'SUBSCRIBE /notifications'
3
- description: 'Subscribe to receive system notifications'
4
- asyncapi: 'subscribe /notifications'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'SUBSCRIBE /presence'
3
- description: 'Subscribe to receive user presence updates'
4
- asyncapi: 'subscribe /presence'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'PUBLISH /chat'
3
- description: 'Send a chat message to other users'
4
- asyncapi: 'publish /chat'
5
- ---
@@ -1,5 +0,0 @@
1
- ---
2
- title: 'PUBLISH /presence'
3
- description: 'Send a presence update'
4
- asyncapi: 'publish /presence'
5
- ---
package/docs/dory.json DELETED
@@ -1,64 +0,0 @@
1
- {
2
- "name": "Docucod",
3
- "favicon": "./favicon.svg",
4
- "colors": {
5
- "primary": "#0ea5e9",
6
- "light": "#0C8BC6",
7
- "dark": "#0284c7"
8
- },
9
- "fonts": {
10
- "family": "Montserrat",
11
- "source": "https://fonts.gstatic.com/s/googlesansflex/v5/t5sJIQcYNIWbFgDgAAzZ34auoVyXkJCOvp3SFWJbN5hF8Ju1x6sKCyp0l9sI40swNJwGpVd4AZzz0v6lJ4qFXNZhGjLvDSkV4USKMo6qQzwliVdHAy9jxTDHg_ugnAakpwGc-cxgUqDCIUI.woff2",
12
- "format": "woff2"
13
- },
14
- "navigation": {
15
- "tabs": [
16
- {
17
- "tab": "Documentation",
18
- "groups": [
19
- {
20
- "group": "Getting Started",
21
- "pages": [
22
- "introduction"
23
- ]
24
- },
25
- {
26
- "group": "Features",
27
- "pages": [
28
- "features"
29
- ]
30
- },
31
- {
32
- "group": "Playground",
33
- "pages": [
34
- "websocket-playground-demo"
35
- ]
36
- },
37
- {
38
- "group": "API Reference",
39
- "pages": [
40
- "api-reference/operations/create",
41
- "api-reference/operations/get",
42
- "api-reference/operations/update",
43
- "api-reference/operations/delete"
44
- ]
45
- },
46
- {
47
- "group": "WebSocket API Reference",
48
- "pages": [
49
- "api-reference/websocket-operations/send-chat-message",
50
- "api-reference/websocket-operations/receive-chat-message",
51
- "api-reference/websocket-operations/receive-notifications",
52
- "api-reference/websocket-operations/send-presence-update",
53
- "api-reference/websocket-operations/receive-presence-update"
54
- ]
55
- }
56
- ]
57
- }
58
- ]
59
- },
60
- "logo": {
61
- "light": "./logo/logo.svg",
62
- "dark": "./logo/logo.svg"
63
- }
64
- }