-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzpress.config.ts
More file actions
622 lines (621 loc) · 21.8 KB
/
zpress.config.ts
File metadata and controls
622 lines (621 loc) · 21.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
import { defineConfig } from '@zpress/kit'
export default defineConfig({
title: 'zpress',
description: 'Beautiful Docs, Zero Effort',
tagline:
'An opinionated documentation framework for monorepos. No restructuring, no plugins, no theme wiring — just point it at your markdown.',
theme: {
switcher: true,
},
home: {
features: { truncate: { description: 2 } },
},
sidebar: {
below: [{ text: 'Contributing', link: '/contributing', icon: 'pixelarticons:git-merge' }],
},
actions: [
{ theme: 'brand', text: 'Introduction', link: '/getting-started/introduction' },
{ theme: 'alt', text: 'Quick Start', link: '/getting-started/quick-start' },
],
features: [
{
title: 'Zero Effort',
description: 'No restructuring, no plugins, no theme wiring. Point it at markdown and ship.',
icon: 'pixelarticons:speed-fast',
},
{
title: 'Your Structure',
description: 'Config maps to how you already organize markdown. The tool fits your docs.',
icon: 'pixelarticons:layout',
},
{
title: 'AI-Friendly',
description:
'Auto llms.txt generation, raw markdown served as text/markdown, and glob discovery that picks up new files without config changes.',
icon: 'pixelarticons:robot',
},
{
title: 'Monorepo Native',
description: 'First-class workspace support with standalone sidebars and landing pages.',
icon: 'pixelarticons:git-merge',
},
{
title: 'VSCode Extension',
description: 'Preview your docs site directly inside VS Code as you write.',
icon: 'simple-icons:visualstudiocode',
},
{
title: 'OpenAPI Support',
description:
'Drop in an OpenAPI spec and get interactive API reference pages with try-it-out requests.',
icon: 'simple-icons:openapiinitiative',
},
],
workspaces: [
{
title: 'Packages',
description: 'Internal packages that power the zpress documentation framework',
icon: 'pixelarticons:archive',
items: [
{
title: '@zpress/kit',
icon: { id: 'pixelarticons:archive', color: 'purple' },
description:
'Documentation framework powered by Rspress with a config-driven information architecture',
tags: ['typescript', 'node'],
path: '/packages/zpress',
items: [
{ title: 'Overview', path: '/packages/zpress', include: 'packages/zpress/README.md' },
{
title: 'Changelog',
path: '/packages/zpress/changelog',
include: 'packages/zpress/CHANGELOG.md',
},
],
},
{
title: '@zpress/cli',
icon: { id: 'pixelarticons:terminal', color: 'green' },
description: 'CLI for building and serving zpress documentation sites',
tags: ['typescript', 'node'],
path: '/packages/cli',
items: [
{ title: 'Overview', path: '/packages/cli', include: 'packages/cli/README.md' },
{
title: 'Changelog',
path: '/packages/cli/changelog',
include: 'packages/cli/CHANGELOG.md',
},
],
},
{
title: '@zpress/core',
icon: { id: 'pixelarticons:cpu', color: 'blue' },
description: 'Sync engine and asset utilities for zpress',
tags: ['typescript', 'node'],
path: '/packages/core',
items: [
{ title: 'Overview', path: '/packages/core', include: 'packages/core/README.md' },
{
title: 'Changelog',
path: '/packages/core/changelog',
include: 'packages/core/CHANGELOG.md',
},
],
},
{
title: '@zpress/config',
icon: { id: 'pixelarticons:sliders', color: 'amber' },
description: 'Configuration loading and validation for zpress',
tags: ['typescript', 'zod'],
path: '/packages/config',
items: [
{ title: 'Overview', path: '/packages/config', include: 'packages/config/README.md' },
{
title: 'Changelog',
path: '/packages/config/changelog',
include: 'packages/config/CHANGELOG.md',
},
],
},
{
title: '@zpress/ui',
icon: { id: 'pixelarticons:paint-bucket', color: 'pink' },
description: 'Rspress plugin, theme components, and styles for zpress',
tags: ['typescript', 'react'],
path: '/packages/ui',
items: [
{ title: 'Overview', path: '/packages/ui', include: 'packages/ui/README.md' },
{
title: 'Changelog',
path: '/packages/ui/changelog',
include: 'packages/ui/CHANGELOG.md',
},
],
},
{
title: '@zpress/theme',
icon: { id: 'pixelarticons:mood-happy', color: 'cyan' },
description: 'Theme types and definitions for zpress',
tags: ['typescript'],
path: '/packages/theme',
items: [
{ title: 'Overview', path: '/packages/theme', include: 'packages/theme/README.md' },
{
title: 'Changelog',
path: '/packages/theme/changelog',
include: 'packages/theme/CHANGELOG.md',
},
],
},
{
title: '@zpress/templates',
icon: { id: 'pixelarticons:note', color: 'slate' },
description:
'Documentation templates SDK — built-in templates, extensions, and custom registrations',
tags: ['typescript', 'liquid'],
path: '/packages/templates',
},
],
},
],
openapi: {
spec: 'docs/examples/petstore.json',
path: '/petstore',
title: 'Petstore API',
},
sections: [
{
title: 'Getting Started',
description: 'Set up zpress and ship your first documentation site in minutes.',
icon: 'pixelarticons:speed-fast',
path: '/getting-started',
landing: true,
items: [
{
title: 'Introduction',
description: 'What zpress is, why it exists, and what it gives you out of the box.',
path: '/getting-started/introduction',
include: 'docs/getting-started/introduction.mdx',
},
{
title: 'Quick Start',
description: 'Install zpress and create your first documentation site in minutes.',
path: '/getting-started/quick-start',
include: 'docs/getting-started/quick-start.md',
},
],
},
{
title: 'Concepts',
description: 'Core ideas behind how zpress organizes and renders documentation.',
icon: 'pixelarticons:book-open',
path: '/concepts',
landing: true,
items: [
{
title: 'Content',
description: 'How sections and pages define your information architecture.',
path: '/concepts/content',
include: 'docs/concepts/content.md',
},
{
title: 'Navigation',
description: 'How the top nav bar and auto-generated landing pages control discovery.',
path: '/concepts/navigation',
include: 'docs/concepts/navigation.md',
},
{
title: 'Workspaces',
description: 'Monorepo support with standalone sidebars and landing page cards.',
path: '/concepts/workspaces',
include: 'docs/concepts/workspaces.md',
},
{
title: 'Themes',
description: 'Built-in themes, color modes, and color token overrides.',
path: '/concepts/themes',
include: 'docs/concepts/themes.mdx',
},
{
title: 'LLM Output',
description: 'Structured text output for LLMs, AI agents, and programmatic consumers.',
path: '/concepts/llm-output',
include: 'docs/concepts/llm-output.md',
},
],
},
{
title: 'Guides',
description: 'Step-by-step instructions for deploying and configuring your site.',
icon: 'pixelarticons:bookmark',
path: '/guides',
landing: true,
items: [
{
title: 'Deploy to Vercel',
description: 'Build and deploy your zpress site to Vercel static hosting.',
path: '/guides/deploying-to-vercel',
include: 'docs/guides/deploying-to-vercel.md',
},
{
title: 'Deploy to GitHub Pages',
description: 'Build and deploy your zpress site with GitHub Actions.',
path: '/guides/deploying-to-github-pages',
include: 'docs/guides/deploying-to-github-pages.md',
},
],
},
{
title: 'Framework',
description: 'An opinionated approach to documentation organization, inspired by Diataxis.',
icon: 'pixelarticons:notes',
path: '/framework',
landing: true,
items: [
{
title: 'Overview',
description: 'Why documentation needs structure and how zpress maps to Diataxis.',
path: '/framework/overview',
include: 'docs/framework/overview.md',
},
{
title: 'Types',
description: 'The seven documentation types and when to use each one.',
path: '/framework/types',
include: 'docs/framework/types.md',
},
{
title: 'Recommended',
description: 'The recommended section layout for a zpress documentation site.',
path: '/framework/recommended',
include: 'docs/framework/recommended.md',
},
{
title: 'Templates',
description: 'Starter templates for each documentation type.',
path: '/framework/templates',
include: 'docs/framework/templates.md',
items: [
{
title: 'Concept',
description: 'Copy-paste template for concept (explanation) documentation.',
path: '/framework/templates/concept',
include: 'docs/framework/templates/concept.md',
},
{
title: 'Guide',
description: 'Copy-paste template for how-to guide documentation.',
path: '/framework/templates/guide',
include: 'docs/framework/templates/guide.md',
},
],
},
{
title: 'Scaling',
description: 'How to evolve your documentation structure as your project grows.',
path: '/framework/scaling',
include: 'docs/framework/scaling.md',
},
],
},
{
title: 'Reference',
description: 'Technical reference for every zpress API surface.',
icon: 'pixelarticons:list-box',
path: '/reference',
landing: true,
items: [
{
title: 'Configuration',
description: 'Complete reference for all zpress.config.ts fields and entry shapes.',
path: '/reference/configuration',
include: 'docs/references/configuration.md',
},
{
title: 'CLI Commands',
description: 'All zpress CLI commands, flags, and behavior.',
path: '/reference/cli',
include: 'docs/references/cli.md',
},
{
title: 'Frontmatter Fields',
description: 'Every frontmatter field supported by zpress pages.',
path: '/reference/frontmatter',
include: 'docs/references/frontmatter.md',
},
{
title: 'VSCode Extension',
description: 'Preview your zpress docs site directly inside VS Code.',
path: '/reference/vscode-extension',
include: 'docs/references/vscode-extension.md',
},
{
title: 'OpenAPI',
description: 'Generate interactive API reference pages from an OpenAPI spec.',
path: '/reference/openapi',
include: 'docs/references/openapi.mdx',
},
{
title: 'Built-ins',
description: 'Components, diagrams, and markdown extensions included out of the box.',
path: '/references/built-ins',
items: [
{
title: 'Code Blocks',
description: 'Syntax highlighting, line numbers, diffs, and code block features.',
path: '/references/built-ins/code-blocks',
include: 'docs/references/built-ins/code-blocks.md',
},
{
title: 'Cards',
description: 'Card components for landing pages, feature grids, and indexes.',
path: '/references/built-ins/cards',
include: 'docs/references/built-ins/cards.mdx',
},
{
title: 'File Tree',
description: 'Render interactive file tree visualizations.',
path: '/references/built-ins/file-tree',
include: 'docs/references/built-ins/file-tree.md',
},
{
title: 'Desktop Window',
description: 'macOS-style window chrome that all window components build on.',
path: '/references/built-ins/desktop-window',
include: 'docs/references/built-ins/desktop-window.mdx',
},
{
title: 'Browser Window',
description: 'Wrap content in a fake browser chrome frame.',
path: '/references/built-ins/browser-window',
include: 'docs/references/built-ins/browser-window.mdx',
},
{
title: 'IDE Window',
description: 'Editor-style window with file tabs for code blocks.',
path: '/references/built-ins/ide-window',
include: 'docs/references/built-ins/ide-window.mdx',
},
{
title: 'Terminal Window',
description: 'Render terminal sessions with commands, outputs, and colored text.',
path: '/references/built-ins/terminal-window',
include: 'docs/references/built-ins/terminal-window.mdx',
},
{
title: 'Mermaid Diagrams',
description: 'Render diagrams from text using Mermaid fenced code blocks.',
path: '/references/built-ins/mermaid',
include: 'docs/references/built-ins/mermaid.md',
},
{
title: 'Math (KaTeX)',
description: 'Render LaTeX math expressions inline and in blocks.',
path: '/references/built-ins/math',
include: 'docs/references/built-ins/math.md',
},
{
title: 'Superscript & Subscript',
description: 'Inline superscript and subscript syntax.',
path: '/references/built-ins/superscript-subscript',
include: 'docs/references/built-ins/superscript-subscript.md',
},
],
},
{
title: 'Icons',
description: 'Supported icon sets and color options.',
path: '/references/icons',
items: [
{
title: 'Overview',
description: 'Supported icon sets and how to use them across your site.',
path: '/references/icons/overview',
include: 'docs/references/icons/overview.mdx',
},
{
title: 'Colors',
description: 'Available icon color classes for workspace and feature cards.',
path: '/references/icons/colors',
include: 'docs/references/icons/colors.mdx',
},
],
},
{
title: 'Tags',
description: 'Technology tag definitions for workspace cards.',
path: '/references/technology',
items: [
{
title: 'Overview',
description: 'How technology tags map to icons on workspace cards.',
path: '/references/technology/overview',
include: 'docs/references/technology/overview.mdx',
},
{
title: 'Languages',
description: 'Tags for programming languages.',
path: '/references/technology/languages',
include: 'docs/references/technology/languages.mdx',
},
{
title: 'Frameworks',
description: 'Tags for frontend, backend, and mobile frameworks.',
path: '/references/technology/frameworks',
include: 'docs/references/technology/frameworks.mdx',
},
{
title: 'Databases',
description: 'Tags for databases and data tools.',
path: '/references/technology/databases',
include: 'docs/references/technology/databases.mdx',
},
{
title: 'Infrastructure',
description: 'Tags for cloud, hosting, CI/CD, and DevOps.',
path: '/references/technology/infrastructure',
include: 'docs/references/technology/infrastructure.mdx',
},
{
title: 'Tooling',
description: 'Tags for build tools, styling, and testing.',
path: '/references/technology/tooling',
include: 'docs/references/technology/tooling.mdx',
},
{
title: 'Integrations',
description: 'Tags for auth, AI/ML, CMS, and project-specific tools.',
path: '/references/technology/integrations',
include: 'docs/references/technology/integrations.mdx',
},
],
},
],
},
{
title: 'Packages',
icon: 'pixelarticons:archive',
path: '/packages',
standalone: true,
items: [
{
title: '@zpress/kit',
path: '/packages/zpress',
items: [
{ title: 'Overview', path: '/packages/zpress', include: 'packages/zpress/README.md' },
{
title: 'Changelog',
path: '/packages/zpress/changelog',
include: 'packages/zpress/CHANGELOG.md',
},
],
},
{
title: '@zpress/cli',
path: '/packages/cli',
items: [
{ title: 'Overview', path: '/packages/cli', include: 'packages/cli/README.md' },
{
title: 'Changelog',
path: '/packages/cli/changelog',
include: 'packages/cli/CHANGELOG.md',
},
],
},
{
title: '@zpress/core',
path: '/packages/core',
items: [
{ title: 'Overview', path: '/packages/core', include: 'packages/core/README.md' },
{
title: 'Changelog',
path: '/packages/core/changelog',
include: 'packages/core/CHANGELOG.md',
},
],
},
{
title: '@zpress/config',
path: '/packages/config',
items: [
{ title: 'Overview', path: '/packages/config', include: 'packages/config/README.md' },
{
title: 'Changelog',
path: '/packages/config/changelog',
include: 'packages/config/CHANGELOG.md',
},
],
},
{
title: '@zpress/ui',
path: '/packages/ui',
items: [
{ title: 'Overview', path: '/packages/ui', include: 'packages/ui/README.md' },
{
title: 'Changelog',
path: '/packages/ui/changelog',
include: 'packages/ui/CHANGELOG.md',
},
],
},
{
title: '@zpress/theme',
path: '/packages/theme',
items: [
{ title: 'Overview', path: '/packages/theme', include: 'packages/theme/README.md' },
{
title: 'Changelog',
path: '/packages/theme/changelog',
include: 'packages/theme/CHANGELOG.md',
},
],
},
],
},
{
title: 'Contributing',
icon: 'pixelarticons:git-merge',
path: '/contributing',
standalone: true,
items: [
{
title: 'Overview',
path: '/contributing',
include: 'contributing/README.md',
},
{
title: { from: 'heading' },
path: '/contributing/concepts',
include: 'contributing/concepts/*.md',
sort: 'alpha',
},
{
title: { from: 'heading' },
path: '/contributing/guides',
include: 'contributing/guides/*.md',
sort: 'alpha',
},
{
title: 'Standards',
items: [
{
title: { from: 'heading' },
path: '/contributing/standards/typescript',
include: 'contributing/standards/typescript/*.md',
sort: 'alpha',
},
{
title: { from: 'heading' },
path: '/contributing/standards/git',
include: 'contributing/standards/git-*.md',
sort: 'alpha',
},
{
title: { from: 'heading' },
path: '/contributing/standards/documentation',
include: 'contributing/standards/documentation/*.md',
sort: 'alpha',
},
],
},
],
},
],
nav: [
{ title: 'Getting Started', link: '/getting-started/introduction' },
{ title: 'Concepts', link: '/concepts/content' },
{ title: 'Guides', link: '/guides/deploying-to-vercel' },
{ title: 'Framework', link: '/framework/overview' },
{ title: 'Reference', link: '/reference/configuration' },
],
socialLinks: [
{ icon: 'github', mode: 'link', content: 'https://github.com/joggrdocs/zpress' },
{ icon: 'npm', mode: 'link', content: 'https://www.npmjs.com/package/@zpress/kit' },
],
footer: {
message: 'Built with zpress',
copyright: `Copyright © ${new Date().getFullYear()} Joggr`,
socials: true,
},
})