doccupine 0.0.133 → 0.0.135
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 +50 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +478 -45
- package/dist/lib/config-manager.d.ts +8 -1
- package/dist/lib/config-manager.js +98 -4
- package/dist/lib/metadata.d.ts +5 -0
- package/dist/lib/metadata.js +15 -4
- package/dist/lib/openapi-types.d.ts +120 -0
- package/dist/lib/openapi-types.js +14 -0
- package/dist/lib/openapi.d.ts +52 -0
- package/dist/lib/openapi.js +603 -0
- package/dist/lib/rss.d.ts +24 -0
- package/dist/lib/rss.js +137 -0
- package/dist/lib/structures.js +50 -4
- package/dist/lib/types.d.ts +22 -0
- package/dist/lib/utils.d.ts +8 -0
- package/dist/lib/utils.js +14 -0
- package/dist/templates/app/api/playground/route.d.ts +1 -0
- package/dist/templates/app/api/playground/route.js +199 -0
- package/dist/templates/app/rssRoute.d.ts +11 -0
- package/dist/templates/app/rssRoute.js +30 -0
- package/dist/templates/components/Docs.d.ts +1 -1
- package/dist/templates/components/Docs.js +15 -3
- package/dist/templates/components/MDXComponents.d.ts +1 -1
- package/dist/templates/components/MDXComponents.js +29 -0
- package/dist/templates/components/SideBar.d.ts +1 -1
- package/dist/templates/components/SideBar.js +13 -0
- package/dist/templates/components/layout/Accordion.d.ts +1 -1
- package/dist/templates/components/layout/Accordion.js +3 -2
- package/dist/templates/components/layout/ActionBar.d.ts +1 -1
- package/dist/templates/components/layout/ActionBar.js +65 -27
- package/dist/templates/components/layout/ApiPlayground.d.ts +1 -0
- package/dist/templates/components/layout/ApiPlayground.js +1075 -0
- package/dist/templates/components/layout/ApiPlaygroundDemo.d.ts +1 -0
- package/dist/templates/components/layout/ApiPlaygroundDemo.js +81 -0
- package/dist/templates/components/layout/Badge.d.ts +1 -0
- package/dist/templates/components/layout/Badge.js +455 -0
- package/dist/templates/components/layout/Code.d.ts +1 -1
- package/dist/templates/components/layout/Code.js +10 -22
- package/dist/templates/components/layout/CopyButton.d.ts +1 -0
- package/dist/templates/components/layout/CopyButton.js +68 -0
- package/dist/templates/components/layout/DocsComponents.d.ts +1 -1
- package/dist/templates/components/layout/DocsComponents.js +14 -0
- package/dist/templates/components/layout/Mermaid.d.ts +1 -1
- package/dist/templates/components/layout/Mermaid.js +21 -3
- package/dist/templates/components/layout/Prompt.d.ts +1 -0
- package/dist/templates/components/layout/Prompt.js +149 -0
- package/dist/templates/components/layout/SharedStyles.d.ts +1 -1
- package/dist/templates/components/layout/SharedStyles.js +0 -4
- package/dist/templates/components/layout/Steps.d.ts +1 -1
- package/dist/templates/components/layout/Steps.js +0 -1
- package/dist/templates/components/layout/Tooltip.d.ts +1 -0
- package/dist/templates/components/layout/Tooltip.js +222 -0
- package/dist/templates/components/layout/Tree.d.ts +1 -0
- package/dist/templates/components/layout/Tree.js +322 -0
- package/dist/templates/components/layout/TreeData.d.ts +1 -0
- package/dist/templates/components/layout/TreeData.js +131 -0
- package/dist/templates/components/layout/Update.d.ts +1 -1
- package/dist/templates/components/layout/Update.js +5 -1
- package/dist/templates/lib/rss.d.ts +1 -0
- package/dist/templates/lib/rss.js +78 -0
- package/dist/templates/mdx/accordion.mdx.d.ts +1 -1
- package/dist/templates/mdx/accordion.mdx.js +19 -1
- package/dist/templates/mdx/ai-assistant.mdx.d.ts +1 -1
- package/dist/templates/mdx/ai-assistant.mdx.js +3 -2
- package/dist/templates/mdx/analytics.mdx.d.ts +1 -1
- package/dist/templates/mdx/analytics.mdx.js +2 -2
- package/dist/templates/mdx/api-playground.mdx.d.ts +1 -0
- package/dist/templates/mdx/api-playground.mdx.js +158 -0
- package/dist/templates/mdx/authentication.mdx.d.ts +1 -1
- package/dist/templates/mdx/authentication.mdx.js +3 -3
- package/dist/templates/mdx/badges.mdx.d.ts +1 -0
- package/dist/templates/mdx/badges.mdx.js +237 -0
- package/dist/templates/mdx/buttons.mdx.d.ts +1 -1
- package/dist/templates/mdx/buttons.mdx.js +1 -1
- package/dist/templates/mdx/callouts.mdx.d.ts +1 -1
- package/dist/templates/mdx/callouts.mdx.js +1 -1
- package/dist/templates/mdx/cards.mdx.d.ts +1 -1
- package/dist/templates/mdx/cards.mdx.js +1 -1
- package/dist/templates/mdx/color-swatches.mdx.d.ts +1 -1
- package/dist/templates/mdx/color-swatches.mdx.js +1 -1
- package/dist/templates/mdx/columns.mdx.d.ts +1 -1
- package/dist/templates/mdx/columns.mdx.js +1 -1
- package/dist/templates/mdx/commands.mdx.d.ts +1 -1
- package/dist/templates/mdx/commands.mdx.js +3 -2
- package/dist/templates/mdx/components.mdx.d.ts +1 -1
- package/dist/templates/mdx/components.mdx.js +25 -10
- package/dist/templates/mdx/deployment-and-hosting.mdx.d.ts +1 -1
- package/dist/templates/mdx/deployment-and-hosting.mdx.js +4 -3
- package/dist/templates/mdx/fields.mdx.d.ts +1 -1
- package/dist/templates/mdx/fields.mdx.js +1 -1
- package/dist/templates/mdx/fonts.mdx.d.ts +1 -1
- package/dist/templates/mdx/fonts.mdx.js +2 -2
- package/dist/templates/mdx/footer-links.mdx.d.ts +1 -1
- package/dist/templates/mdx/footer-links.mdx.js +1 -1
- package/dist/templates/mdx/frames.mdx.d.ts +1 -1
- package/dist/templates/mdx/frames.mdx.js +1 -1
- package/dist/templates/mdx/globals.mdx.d.ts +1 -1
- package/dist/templates/mdx/globals.mdx.js +1 -1
- package/dist/templates/mdx/icons.mdx.d.ts +1 -1
- package/dist/templates/mdx/icons.mdx.js +1 -1
- package/dist/templates/mdx/image-and-embeds.mdx.d.ts +1 -1
- package/dist/templates/mdx/image-and-embeds.mdx.js +1 -1
- package/dist/templates/mdx/images-and-embeds.mdx.d.ts +1 -0
- package/dist/templates/mdx/images-and-embeds.mdx.js +118 -0
- package/dist/templates/mdx/media-and-assets.mdx.d.ts +1 -1
- package/dist/templates/mdx/media-and-assets.mdx.js +2 -2
- package/dist/templates/mdx/mermaid.mdx.d.ts +1 -1
- package/dist/templates/mdx/mermaid.mdx.js +1 -1
- package/dist/templates/mdx/model-context-protocol.mdx.d.ts +1 -1
- package/dist/templates/mdx/model-context-protocol.mdx.js +2 -2
- package/dist/templates/mdx/navigation.mdx.d.ts +1 -1
- package/dist/templates/mdx/navigation.mdx.js +27 -12
- package/dist/templates/mdx/platform/ai-assistant.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/ai-assistant.mdx.js +4 -3
- package/dist/templates/mdx/platform/analytics.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/analytics.mdx.js +2 -2
- package/dist/templates/mdx/platform/api-playground.mdx.d.ts +1 -0
- package/dist/templates/mdx/platform/api-playground.mdx.js +62 -0
- package/dist/templates/mdx/platform/billing.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/billing.mdx.js +1 -1
- package/dist/templates/mdx/platform/build-and-deploy.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/build-and-deploy.mdx.js +1 -1
- package/dist/templates/mdx/platform/creating-a-project.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/creating-a-project.mdx.js +12 -2
- package/dist/templates/mdx/platform/custom-domains.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/custom-domains.mdx.js +1 -1
- package/dist/templates/mdx/platform/fonts-settings.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/fonts-settings.mdx.js +1 -1
- package/dist/templates/mdx/platform/footer-links.mdx.d.ts +1 -0
- package/dist/templates/mdx/platform/{external-links.mdx.js → footer-links.mdx.js} +5 -5
- package/dist/templates/mdx/platform/import-from-github.mdx.d.ts +1 -0
- package/dist/templates/mdx/platform/import-from-github.mdx.js +91 -0
- package/dist/templates/mdx/platform/mcp.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/mcp.mdx.js +3 -3
- package/dist/templates/mdx/platform/project-settings.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/project-settings.mdx.js +1 -1
- package/dist/templates/mdx/platform/self-updating-docs.mdx.d.ts +1 -0
- package/dist/templates/mdx/platform/self-updating-docs.mdx.js +113 -0
- package/dist/templates/mdx/platform/team-members.mdx.d.ts +1 -1
- package/dist/templates/mdx/platform/team-members.mdx.js +1 -1
- package/dist/templates/mdx/prompt.mdx.d.ts +1 -0
- package/dist/templates/mdx/prompt.mdx.js +69 -0
- package/dist/templates/mdx/sections.mdx.d.ts +1 -1
- package/dist/templates/mdx/sections.mdx.js +1 -1
- package/dist/templates/mdx/steps.mdx.d.ts +1 -1
- package/dist/templates/mdx/steps.mdx.js +1 -1
- package/dist/templates/mdx/tabs.mdx.d.ts +1 -1
- package/dist/templates/mdx/tabs.mdx.js +1 -1
- package/dist/templates/mdx/theme.mdx.d.ts +1 -1
- package/dist/templates/mdx/theme.mdx.js +1 -1
- package/dist/templates/mdx/tooltips.mdx.d.ts +1 -0
- package/dist/templates/mdx/tooltips.mdx.js +57 -0
- package/dist/templates/mdx/tree.mdx.d.ts +1 -0
- package/dist/templates/mdx/tree.mdx.js +158 -0
- package/dist/templates/mdx/update.mdx.d.ts +1 -1
- package/dist/templates/mdx/update.mdx.js +42 -2
- package/dist/templates/mdx/what-is-doccupine.mdx.d.ts +1 -1
- package/dist/templates/mdx/what-is-doccupine.mdx.js +1 -1
- package/dist/templates/package.js +7 -7
- package/dist/templates/services/openapi/playgroundAllowlistStub.d.ts +1 -0
- package/dist/templates/services/openapi/playgroundAllowlistStub.js +4 -0
- package/dist/templates/types/openapi.d.ts +1 -0
- package/dist/templates/types/openapi.js +93 -0
- package/dist/templates/utils/apiSnippets.d.ts +1 -0
- package/dist/templates/utils/apiSnippets.js +94 -0
- package/dist/templates/utils/orderNavItems.d.ts +1 -1
- package/dist/templates/utils/orderNavItems.js +3 -0
- package/dist/templates/utils/playgroundAllowlist.d.ts +1 -0
- package/dist/templates/utils/playgroundAllowlist.js +70 -0
- package/dist/templates/utils/ssrfGuard.d.ts +1 -0
- package/dist/templates/utils/ssrfGuard.js +217 -0
- package/package.json +4 -3
- package/dist/templates/mdx/platform/external-links.mdx.d.ts +0 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
export const badgesMdxTemplate = `---
|
|
2
|
+
title: "Badges"
|
|
3
|
+
description: "Highlight statuses, version labels, and metadata inline with colored badges."
|
|
4
|
+
date: "2026-07-27"
|
|
5
|
+
category: "Components"
|
|
6
|
+
categoryOrder: 1
|
|
7
|
+
order: 12
|
|
8
|
+
---
|
|
9
|
+
# Badges
|
|
10
|
+
|
|
11
|
+
Highlight statuses, version labels, and metadata with small colored badges - inline within text or standing on their own.
|
|
12
|
+
|
|
13
|
+
## Basic badge
|
|
14
|
+
|
|
15
|
+
You can use the Badge component directly within your MDX files without any import:
|
|
16
|
+
|
|
17
|
+
\`\`\`html
|
|
18
|
+
<Badge>Badge</Badge>
|
|
19
|
+
\`\`\`
|
|
20
|
+
|
|
21
|
+
<Badge>Badge</Badge>
|
|
22
|
+
|
|
23
|
+
## Colors
|
|
24
|
+
|
|
25
|
+
The \`color\` property selects one of eleven variants to convey different meanings:
|
|
26
|
+
|
|
27
|
+
\`\`\`html
|
|
28
|
+
<Badge color="gray">Badge</Badge>
|
|
29
|
+
<Badge color="blue">Badge</Badge>
|
|
30
|
+
<Badge color="green">Badge</Badge>
|
|
31
|
+
<Badge color="yellow">Badge</Badge>
|
|
32
|
+
<Badge color="orange">Badge</Badge>
|
|
33
|
+
<Badge color="red">Badge</Badge>
|
|
34
|
+
<Badge color="purple">Badge</Badge>
|
|
35
|
+
<Badge color="white">Badge</Badge>
|
|
36
|
+
<Badge color="surface">Badge</Badge>
|
|
37
|
+
<Badge color="white-destructive">Badge</Badge>
|
|
38
|
+
<Badge color="surface-destructive">Badge</Badge>
|
|
39
|
+
\`\`\`
|
|
40
|
+
|
|
41
|
+
<Badge color="gray">Badge</Badge>
|
|
42
|
+
<Badge color="blue">Badge</Badge>
|
|
43
|
+
<Badge color="green">Badge</Badge>
|
|
44
|
+
<Badge color="yellow">Badge</Badge>
|
|
45
|
+
<Badge color="orange">Badge</Badge>
|
|
46
|
+
<Badge color="red">Badge</Badge>
|
|
47
|
+
<Badge color="purple">Badge</Badge>
|
|
48
|
+
<Badge color="white">Badge</Badge>
|
|
49
|
+
<Badge color="surface">Badge</Badge>
|
|
50
|
+
<Badge color="white-destructive">Badge</Badge>
|
|
51
|
+
<Badge color="surface-destructive">Badge</Badge>
|
|
52
|
+
|
|
53
|
+
## Sizes
|
|
54
|
+
|
|
55
|
+
Four sizes match different content hierarchies:
|
|
56
|
+
|
|
57
|
+
\`\`\`html
|
|
58
|
+
<Badge size="xs">Badge</Badge>
|
|
59
|
+
<Badge size="sm">Badge</Badge>
|
|
60
|
+
<Badge size="md">Badge</Badge>
|
|
61
|
+
<Badge size="lg">Badge</Badge>
|
|
62
|
+
\`\`\`
|
|
63
|
+
|
|
64
|
+
<Badge size="xs">Badge</Badge>
|
|
65
|
+
<Badge size="sm">Badge</Badge>
|
|
66
|
+
<Badge size="md">Badge</Badge>
|
|
67
|
+
<Badge size="lg">Badge</Badge>
|
|
68
|
+
|
|
69
|
+
## Shapes
|
|
70
|
+
|
|
71
|
+
Choose between rounded corners and a pill shape:
|
|
72
|
+
|
|
73
|
+
\`\`\`html
|
|
74
|
+
<Badge shape="rounded">Badge</Badge>
|
|
75
|
+
<Badge shape="pill">Badge</Badge>
|
|
76
|
+
\`\`\`
|
|
77
|
+
|
|
78
|
+
<Badge shape="rounded">Badge</Badge>
|
|
79
|
+
<Badge shape="pill">Badge</Badge>
|
|
80
|
+
|
|
81
|
+
## Icons
|
|
82
|
+
|
|
83
|
+
Add a [Lucide](https://lucide.dev/icons) icon (kebab-case name) for extra context. Unknown names render nothing, so a typo never breaks the page:
|
|
84
|
+
|
|
85
|
+
\`\`\`html
|
|
86
|
+
<Badge icon="circle-check" color="green">Passing</Badge>
|
|
87
|
+
<Badge icon="clock" color="orange">Pending</Badge>
|
|
88
|
+
<Badge icon="ban" color="red">Blocked</Badge>
|
|
89
|
+
\`\`\`
|
|
90
|
+
|
|
91
|
+
<Badge icon="circle-check" color="green">Passing</Badge>
|
|
92
|
+
<Badge icon="clock" color="orange">Pending</Badge>
|
|
93
|
+
<Badge icon="ban" color="red">Blocked</Badge>
|
|
94
|
+
|
|
95
|
+
## Stroke variant
|
|
96
|
+
|
|
97
|
+
Set \`stroke\` for an outline instead of a filled background:
|
|
98
|
+
|
|
99
|
+
\`\`\`html
|
|
100
|
+
<Badge stroke color="blue">Badge</Badge>
|
|
101
|
+
<Badge stroke color="green">Badge</Badge>
|
|
102
|
+
<Badge stroke color="orange">Badge</Badge>
|
|
103
|
+
<Badge stroke color="red">Badge</Badge>
|
|
104
|
+
\`\`\`
|
|
105
|
+
|
|
106
|
+
<Badge stroke color="blue">Badge</Badge>
|
|
107
|
+
<Badge stroke color="green">Badge</Badge>
|
|
108
|
+
<Badge stroke color="orange">Badge</Badge>
|
|
109
|
+
<Badge stroke color="red">Badge</Badge>
|
|
110
|
+
|
|
111
|
+
## Solid variant
|
|
112
|
+
|
|
113
|
+
Set \`solid\` for a strong filled background with contrasting text:
|
|
114
|
+
|
|
115
|
+
\`\`\`html
|
|
116
|
+
<Badge solid color="blue">Badge</Badge>
|
|
117
|
+
<Badge solid color="green">Badge</Badge>
|
|
118
|
+
<Badge solid color="red">Badge</Badge>
|
|
119
|
+
<Badge solid color="purple">Badge</Badge>
|
|
120
|
+
\`\`\`
|
|
121
|
+
|
|
122
|
+
<Badge solid color="blue">Badge</Badge>
|
|
123
|
+
<Badge solid color="green">Badge</Badge>
|
|
124
|
+
<Badge solid color="red">Badge</Badge>
|
|
125
|
+
<Badge solid color="purple">Badge</Badge>
|
|
126
|
+
|
|
127
|
+
## Semantic colors
|
|
128
|
+
|
|
129
|
+
The \`info\`, \`success\`, \`warning\`, and \`error\` colors come from your theme rather than the fixed palette, so they follow your \`theme.json\` and the light/dark toggle. They support the same \`stroke\` and \`solid\` variations:
|
|
130
|
+
|
|
131
|
+
\`\`\`html
|
|
132
|
+
<Badge color="info">Badge</Badge>
|
|
133
|
+
<Badge color="success">Badge</Badge>
|
|
134
|
+
<Badge color="warning">Badge</Badge>
|
|
135
|
+
<Badge color="error">Badge</Badge>
|
|
136
|
+
<Badge solid color="info">Badge</Badge>
|
|
137
|
+
<Badge solid color="success">Badge</Badge>
|
|
138
|
+
\`\`\`
|
|
139
|
+
|
|
140
|
+
<Badge color="info">Badge</Badge>
|
|
141
|
+
<Badge color="success">Badge</Badge>
|
|
142
|
+
<Badge color="warning">Badge</Badge>
|
|
143
|
+
<Badge color="error">Badge</Badge>
|
|
144
|
+
<Badge solid color="info">Badge</Badge>
|
|
145
|
+
<Badge solid color="success">Badge</Badge>
|
|
146
|
+
|
|
147
|
+
## HTTP method badges
|
|
148
|
+
|
|
149
|
+
Set \`mono\` for a monospace, uppercase label. Combining \`mono\`, \`solid\`, and the semantic colors gives the method chips Doccupine itself uses in the sidebar navigation and the API playground:
|
|
150
|
+
|
|
151
|
+
\`\`\`html
|
|
152
|
+
<Badge mono solid color="info" size="sm">GET</Badge>
|
|
153
|
+
<Badge mono solid color="success" size="sm">POST</Badge>
|
|
154
|
+
<Badge mono solid color="warning" size="sm">PUT</Badge>
|
|
155
|
+
<Badge mono solid color="error" size="sm">DELETE</Badge>
|
|
156
|
+
\`\`\`
|
|
157
|
+
|
|
158
|
+
<Badge mono solid color="info" size="sm">GET</Badge>
|
|
159
|
+
<Badge mono solid color="success" size="sm">POST</Badge>
|
|
160
|
+
<Badge mono solid color="warning" size="sm">PUT</Badge>
|
|
161
|
+
<Badge mono solid color="error" size="sm">DELETE</Badge>
|
|
162
|
+
|
|
163
|
+
## Disabled state
|
|
164
|
+
|
|
165
|
+
Set \`disabled\` to indicate inactive or unavailable states with reduced opacity:
|
|
166
|
+
|
|
167
|
+
\`\`\`html
|
|
168
|
+
<Badge disabled icon="lock" color="gray">Badge</Badge>
|
|
169
|
+
<Badge disabled icon="lock" color="blue">Badge</Badge>
|
|
170
|
+
\`\`\`
|
|
171
|
+
|
|
172
|
+
<Badge disabled icon="lock" color="gray">Badge</Badge>
|
|
173
|
+
<Badge disabled icon="lock" color="blue">Badge</Badge>
|
|
174
|
+
|
|
175
|
+
## Inline usage
|
|
176
|
+
|
|
177
|
+
Badges flow naturally with the surrounding text. For example, this feature requires a <Badge color="orange" size="sm">Premium</Badge> subscription, and this endpoint returns <Badge color="green" size="sm">JSON</Badge>.
|
|
178
|
+
|
|
179
|
+
\`\`\`html
|
|
180
|
+
This feature requires a <Badge color="orange" size="sm">Premium</Badge> subscription.
|
|
181
|
+
\`\`\`
|
|
182
|
+
|
|
183
|
+
## Combined properties
|
|
184
|
+
|
|
185
|
+
All properties compose freely:
|
|
186
|
+
|
|
187
|
+
\`\`\`html
|
|
188
|
+
<Badge icon="star" color="purple" size="lg" shape="pill">Pro</Badge>
|
|
189
|
+
<Badge icon="check" stroke color="green" size="sm">Verified</Badge>
|
|
190
|
+
<Badge icon="flask-conical" color="blue" shape="rounded">Beta</Badge>
|
|
191
|
+
\`\`\`
|
|
192
|
+
|
|
193
|
+
<Badge icon="star" color="purple" size="lg" shape="pill">Pro</Badge>
|
|
194
|
+
<Badge icon="check" stroke color="green" size="sm">Verified</Badge>
|
|
195
|
+
<Badge icon="flask-conical" color="blue" shape="rounded">Beta</Badge>
|
|
196
|
+
|
|
197
|
+
## Properties
|
|
198
|
+
|
|
199
|
+
<Field value="color" type="string">
|
|
200
|
+
Badge color variant. Defaults to \`gray\`. Options: \`gray\`, \`blue\`, \`green\`, \`yellow\`, \`orange\`, \`red\`, \`purple\`, \`white\`, \`surface\`, \`white-destructive\`, \`surface-destructive\`, plus the theme-driven \`info\`, \`success\`, \`warning\`, and \`error\`.
|
|
201
|
+
</Field>
|
|
202
|
+
|
|
203
|
+
<Field value="size" type="string">
|
|
204
|
+
Badge size. Defaults to \`md\`. Options: \`xs\`, \`sm\`, \`md\`, \`lg\`.
|
|
205
|
+
</Field>
|
|
206
|
+
|
|
207
|
+
<Field value="shape" type="string">
|
|
208
|
+
Badge shape. Defaults to \`rounded\`. Options: \`rounded\`, \`pill\`.
|
|
209
|
+
</Field>
|
|
210
|
+
|
|
211
|
+
<Field value="icon" type="string">
|
|
212
|
+
A [Lucide](https://lucide.dev/icons) icon name in kebab-case, displayed before the badge text.
|
|
213
|
+
</Field>
|
|
214
|
+
|
|
215
|
+
<Field value="stroke" type="boolean">
|
|
216
|
+
Display the badge with an outline instead of a filled background. Defaults to \`false\`.
|
|
217
|
+
</Field>
|
|
218
|
+
|
|
219
|
+
<Field value="solid" type="boolean">
|
|
220
|
+
Display the badge with a strong filled background and contrasting text. Takes precedence over \`stroke\`. Defaults to \`false\`.
|
|
221
|
+
</Field>
|
|
222
|
+
|
|
223
|
+
<Field value="mono" type="boolean">
|
|
224
|
+
Render the label in monospace uppercase, for code-like labels such as HTTP methods. Defaults to \`false\`.
|
|
225
|
+
</Field>
|
|
226
|
+
|
|
227
|
+
<Field value="disabled" type="boolean">
|
|
228
|
+
Display the badge in a disabled state with reduced opacity. Defaults to \`false\`.
|
|
229
|
+
</Field>
|
|
230
|
+
|
|
231
|
+
<Field value="className" type="string">
|
|
232
|
+
Additional CSS classes to apply to the badge.
|
|
233
|
+
</Field>
|
|
234
|
+
|
|
235
|
+
<Field value="children" type="node" required>
|
|
236
|
+
The badge label.
|
|
237
|
+
</Field>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const buttonsMdxTemplate = "---\ntitle: \"Buttons\"\ndescription: \"A flexible action component supporting variants, sizes, icons, and links.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const buttonsMdxTemplate = "---\ntitle: \"Buttons\"\ndescription: \"A flexible action component supporting variants, sizes, icons, and links.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 11\n---\n# Buttons\n\nA flexible action component supporting variants, sizes, icons, and links.\n\nButtons help users initiate actions or navigate to other pages. Use variants to convey emphasis, size for hierarchy, and icons to add clarity.\n\n## Button Usage\n\nYou can use the Button component directly within your MDX files without any import. The following examples show basic usage:\n\n```html\n<Button>Primary</Button>\n<Button variant=\"secondary\">Secondary</Button>\n<Button variant=\"tertiary\">Tertiary</Button>\n```\n\n<Button>Primary</Button>\n<Button variant=\"secondary\">Secondary</Button>\n<Button variant=\"tertiary\">Tertiary</Button>\n\n### Sizes\n\n```html\n<Button size=\"default\">Default size</Button>\n<Button size=\"big\">Big size</Button>\n```\n\n<Button size=\"default\">Default size</Button>\n<Button size=\"big\">Big size</Button>\n\n### Outline\n\n```html\n<Button outline>Outlined</Button>\n```\n\n<Button outline>Outlined</Button>\n\n### Full width\n\n```html\n<Button fullWidth>Full width button</Button>\n```\n\n<Button fullWidth>Full width button</Button>\n\n### With icon\n\n```html\n<Button icon=\"arrow-right\" iconPosition=\"left\">\n With left icon\n</Button>\n<Button icon=\"arrow-right\" iconPosition=\"right\">\n With right icon\n</Button>\n```\n\n<Button icon=\"arrow-right\" iconPosition=\"left\">With left icon</Button>\n<Button icon=\"arrow-right\" iconPosition=\"right\">With right icon</Button>\n\n### As a link\n\nButtons can render as links when you provide an `href`.\n\n```html\n<Button href=\"/\">Home</Button>\n```\n\n<Button href=\"/\">Home</Button>\n\n## Properties\n\n<Field value=\"children\" type=\"node\" required>\n The content of the button.\n</Field>\n\n<Field value=\"variant\" type=\"string\">\n Controls visual emphasis.\n</Field>\n\n- **primary**\n- **secondary**\n- **tertiary**\n\n<Field value=\"size\" type=\"string\">\n Controls the size of the button.\n</Field>\n\n- **default**\n- **big**\n\n<Field value=\"outline\" type=\"boolean\">\n When true, renders the outlined style of the selected variant.\n</Field>\n\n<Field value=\"fullWidth\" type=\"boolean\">\n When true, the button expands to the full width of its container.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n Optional icon to display inside the button.\n</Field>\n\n- [**Lucide icon**](https://lucide.dev/icons) name or icon node\n\n<Field value=\"iconPosition\" type=\"string\">\n The position of the icon relative to the text.\n</Field>\n\n- **left**\n- **right**\n\n<Field value=\"href\" type=\"string\">\n When provided, the button renders as a link (`<a>`), enabling navigation.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const calloutsMdxTemplate = "---\ntitle: \"Callouts\"\ndescription: \"Make your content stand out by using callouts for extra emphasis.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const calloutsMdxTemplate = "---\ntitle: \"Callouts\"\ndescription: \"Make your content stand out by using callouts for extra emphasis.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 5\n---\n# Callouts\n\nMake your content stand out by using callouts for extra emphasis.\n\nYou can format them as Note, Warning, Info, Danger and Success.\n\n## Callouts Usage\n\nYou can use the Callouts component directly within your MDX files without any import. The following example shows a basic usage:\n\n```html\n<Callout type=\"note\">This is a note callout</Callout>\n<Callout type=\"warning\">This is a warning callout</Callout>\n<Callout type=\"info\">This is an info callout</Callout>\n<Callout type=\"danger\">This is a danger callout</Callout>\n<Callout type=\"success\">This is a success callout</Callout>\n```\n\n<Callout type=\"note\">\n This is a note callout\n</Callout>\n<Callout type=\"warning\">\n This is a warning callout\n</Callout>\n<Callout type=\"info\">\n This is an info callout\n</Callout>\n<Callout type=\"danger\">\n This is a danger callout\n</Callout>\n<Callout type=\"success\">\n This is a success callout\n</Callout>\n\n## Properties\n\n<Field value=\"type\" type=\"string\">\n The type of the callout: `note`, `info`, `warning`, `danger`, or `success`.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n A custom [Lucide](https://lucide.dev/icons) icon name. Overrides the default icon for the callout type.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the callout.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const cardsMdxTemplate = "---\ntitle: \"Cards\"\ndescription: \"Cards act as visual containers for your content, giving you flexibility to combine text, icons, images, and links in a clean and organized way.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const cardsMdxTemplate = "---\ntitle: \"Cards\"\ndescription: \"Cards act as visual containers for your content, giving you flexibility to combine text, icons, images, and links in a clean and organized way.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 10\n---\n# Cards\n\nDuplicate a page or section with ease, then emphasize important information or links using customizable layouts and icons.\n\nCards act as visual containers for your content, giving you flexibility to combine text, icons, images, and links in a clean and organized way.\n\n## Cards Usage\n\nYou can use the Cards component directly within your MDX files without any import. The following example shows a basic usage:\n\n```html\n<Card title=\"Note\" icon=\"badge-info\">\n Doccupine CLI is a command-line tool that helps you create and manage your\n Doccupine project. It provides a simple and intuitive interface for creating\n and configuring your project.\n</Card>\n```\n\n<Card title=\"Note\" icon=\"badge-info\">\n Doccupine CLI is a command-line tool that helps you create and manage your Doccupine project. It provides a simple and intuitive interface for creating and configuring your project.\n</Card>\n\n## Link Card\n\nPass a `href` prop to turn the card into a clickable link. The card will display interactive hover and focus styles automatically.\n\n```html\n<Card title=\"Getting Started\" icon=\"rocket\" href=\"/cards\">\n Learn how to set up Doccupine and create your first documentation site.\n</Card>\n```\n\n<Card title=\"Getting Started\" icon=\"rocket\" href=\"/cards\">\n Learn how to set up Doccupine and create your first documentation site.\n</Card>\n\n## Properties\n\n<Field value=\"title\" type=\"string\">\n An optional title for the card. When omitted, the card renders without a title.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n The [Lucide](https://lucide.dev/icons) icon name to display in the card.\n</Field>\n\n<Field value=\"href\" type=\"string\">\n A URL or path to link to. When provided, the card becomes a clickable link with interactive styles.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the card.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const colorSwatchesMdxTemplate = "---\ntitle: \"Color Swatches\"\ndescription: \"Display color palettes with labeled swatches to document your theme colors.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const colorSwatchesMdxTemplate = "---\ntitle: \"Color Swatches\"\ndescription: \"Display color palettes with labeled swatches to document your theme colors.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 21\n---\n# Color Swatches\n\nDisplay color palettes with labeled swatches to document your theme colors.\n\nThe `ColorSwatch` component renders a visual preview of a color alongside its token name, and `ColorSwatchGroup` arranges multiple swatches in a responsive grid.\n\n## Usage\n\nYou can use the ColorSwatch components directly within your MDX files without any import:\n\n```html\n<ColorSwatchGroup>\n <ColorSwatch token=\"primary\" value=\"#6366F1\" />\n <ColorSwatch token=\"secondary\" value=\"#EC4899\" />\n <ColorSwatch token=\"success\" value=\"#10B981\" />\n <ColorSwatch token=\"warning\" value=\"#F59E0B\" />\n <ColorSwatch token=\"danger\" value=\"#EF4444\" />\n <ColorSwatch token=\"info\" value=\"#3B82F6\" />\n</ColorSwatchGroup>\n```\n\n<ColorSwatchGroup>\n <ColorSwatch token=\"primary\" value=\"#6366F1\" />\n <ColorSwatch token=\"secondary\" value=\"#EC4899\" />\n <ColorSwatch token=\"success\" value=\"#10B981\" />\n <ColorSwatch token=\"warning\" value=\"#F59E0B\" />\n <ColorSwatch token=\"danger\" value=\"#EF4444\" />\n <ColorSwatch token=\"info\" value=\"#3B82F6\" />\n</ColorSwatchGroup>\n\n## Dark Colors\n\nText color automatically adapts based on the background luminance, so dark swatches display white text:\n\n```html\n<ColorSwatchGroup>\n <ColorSwatch token=\"dark\" value=\"#1E1E2E\" />\n <ColorSwatch token=\"grayDark\" value=\"#374151\" />\n <ColorSwatch token=\"gray\" value=\"#6B7280\" />\n <ColorSwatch token=\"grayLight\" value=\"#D1D5DB\" />\n <ColorSwatch token=\"light\" value=\"#F9FAFB\" />\n <ColorSwatch token=\"white\" value=\"#FFFFFF\" />\n</ColorSwatchGroup>\n```\n\n<ColorSwatchGroup>\n <ColorSwatch token=\"dark\" value=\"#1E1E2E\" />\n <ColorSwatch token=\"grayDark\" value=\"#374151\" />\n <ColorSwatch token=\"gray\" value=\"#6B7280\" />\n <ColorSwatch token=\"grayLight\" value=\"#D1D5DB\" />\n <ColorSwatch token=\"light\" value=\"#F9FAFB\" />\n <ColorSwatch token=\"white\" value=\"#FFFFFF\" />\n</ColorSwatchGroup>\n\n## ColorSwatch Properties\n\n<Field value=\"token\" type=\"string\" required>\n The name or label displayed below the color preview (e.g. a design token name).\n</Field>\n\n<Field value=\"value\" type=\"string\" required>\n A hex color value (e.g. `#6366F1`). Displayed inside the color preview and used as the background.\n</Field>\n\n## ColorSwatchGroup Properties\n\n<Field value=\"children\" type=\"node\" required>\n One or more `ColorSwatch` components to display in a responsive grid.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const columnsMdxTemplate = "---\ntitle: \"Columns\"\ndescription: \"Columns are used to organize content in a grid-like structure.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const columnsMdxTemplate = "---\ntitle: \"Columns\"\ndescription: \"Columns are used to organize content in a grid-like structure.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 17\n---\n# Columns\n\nArrange multiple cards neatly in a side-by-side grid layout.\n\nThe `Columns` component helps you organize several `Card` elements into a visually balanced grid. By choosing how many columns you want, you can control the layout and spacing of your cards.\n\n## Columns Usage\n\nYou can use the `Columns` component to create a grid of cards with a specified number of columns.\n\n```html\n<Columns cols={2}>\n <Card title=\"Getting Started\" icon=\"rocket\">\n Kick off your project using our easy quickstart guide.\n </Card>\n <Card title=\"API Reference\" icon=\"code\">\n Browse all endpoints, parameters, and code examples for your API integration.\n </Card>\n</Columns>\n```\n\n<Columns cols={2}>\n <Card title=\"Getting Started\" icon=\"rocket\">\n Kick off your project using our easy quickstart guide.\n </Card>\n <Card title=\"API Reference\" icon=\"code\">\n Browse all endpoints, parameters, and code examples for your API integration.\n </Card>\n</Columns>\n\n## Properties\n\n<Field value=\"cols\" type=\"number\">\n The number of columns in the grid. Defaults to 1.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the columns.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const commandsMdxTemplate = "---\ntitle: \"Commands\"\ndescription: \"In this page, you can find all the commands available in Doccupine CLI.\"\ndate: \"2026-02-19\"\ncategory: \"Getting Started\"\ncategoryOrder: 0\norder:
|
|
1
|
+
export declare const commandsMdxTemplate = "---\ntitle: \"Commands\"\ndescription: \"In this page, you can find all the commands available in Doccupine CLI.\"\ndate: \"2026-02-19\"\ncategory: \"Getting Started\"\ncategoryOrder: 0\norder: 2\n---\n# Commands\n\nIn this page, you can find all the commands available in Doccupine CLI.\n\n## Run Doccupine CLI\n\nCreate a new directory for your project and navigate to it in your terminal. Run the following command to create a new Doccupine project:\n\n```bash\nnpx doccupine\n```\n\nOnce you run the command, Doccupine will ask you to select a directory to store your MDX files. Choose the directory where you want to create your documentation files.\nAfter selecting the directory, Doccupine will ask you to enter the name of the directory for the generated website. Enter the name of the directory where you want to create your website.\nFinally, Doccupine will ask for an optional path to an OpenAPI document. Leave it blank to skip, or point it at a `.yaml`, `.yml`, or `.json` spec to generate an interactive [API Playground](/api-playground) from your API.\n\nThis will start the development server on port 3000. Open your browser and navigate to http://localhost:3000 to view your documentation.\n\n## Options\n\n| Flag | Description |\n| --------------- | -------------------------------------------------------------------- |\n| `--port <port>` | Port for the dev server (default: `3000`). Auto-increments if taken. |\n| `--verbose` | Show all Next.js output including compilation details. |\n| `--reset` | Re-prompt for watch/output directories and the OpenAPI spec path. |\n\n## Verbose mode\n\n```bash\nnpx doccupine --verbose\n```\n\n<Callout type=\"note\">\n This will show Next.js output in the terminal, providing detailed logs useful for debugging during development.\n</Callout>\n\n## Generate the website\n\n```bash\nnpx doccupine build\n```\n\nThis scaffolds the Next.js app from your MDX files without starting the development server. To produce a production build, run `npm install && npm run build` in the generated output directory.\n\n## Show current configuration\n\n```bash\nnpx doccupine config --show\n```\n\nThis will show the current configuration for Doccupine.\n\n## Reset configuration\n\n```bash\nnpx doccupine config --reset\n```\n\nThis will reset the current configuration for Doccupine.";
|
|
@@ -4,7 +4,7 @@ description: "In this page, you can find all the commands available in Doccupine
|
|
|
4
4
|
date: "2026-02-19"
|
|
5
5
|
category: "Getting Started"
|
|
6
6
|
categoryOrder: 0
|
|
7
|
-
order:
|
|
7
|
+
order: 2
|
|
8
8
|
---
|
|
9
9
|
# Commands
|
|
10
10
|
|
|
@@ -20,6 +20,7 @@ npx doccupine
|
|
|
20
20
|
|
|
21
21
|
Once you run the command, Doccupine will ask you to select a directory to store your MDX files. Choose the directory where you want to create your documentation files.
|
|
22
22
|
After selecting the directory, Doccupine will ask you to enter the name of the directory for the generated website. Enter the name of the directory where you want to create your website.
|
|
23
|
+
Finally, Doccupine will ask for an optional path to an OpenAPI document. Leave it blank to skip, or point it at a \`.yaml\`, \`.yml\`, or \`.json\` spec to generate an interactive [API Playground](/api-playground) from your API.
|
|
23
24
|
|
|
24
25
|
This will start the development server on port 3000. Open your browser and navigate to http://localhost:3000 to view your documentation.
|
|
25
26
|
|
|
@@ -29,7 +30,7 @@ This will start the development server on port 3000. Open your browser and navig
|
|
|
29
30
|
| --------------- | -------------------------------------------------------------------- |
|
|
30
31
|
| \`--port <port>\` | Port for the dev server (default: \`3000\`). Auto-increments if taken. |
|
|
31
32
|
| \`--verbose\` | Show all Next.js output including compilation details. |
|
|
32
|
-
| \`--reset\` | Re-prompt for watch/output directories.
|
|
33
|
+
| \`--reset\` | Re-prompt for watch/output directories and the OpenAPI spec path. |
|
|
33
34
|
|
|
34
35
|
## Verbose mode
|
|
35
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const componentsMdxTemplate = "---\ntitle: \"Components\"\ndescription: \"Explore the full library of built-in components available in your documentation pages.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\ncategoryIcon: \"blocks\"\norder: 0\n---\n# Components\n\nDoccupine includes a rich set of built-in components you can use directly in your MDX files - no imports needed. Browse the full library below.\n\n<Columns cols={2}>\n <Card title=\"Headers and Text\" icon=\"heading\" href=\"/headers-and-text\">\n Headings, paragraphs, bold, italic, links, and other text formatting.\n </Card>\n <Card title=\"Lists and Tables\" icon=\"list\" href=\"/lists-and-tables\">\n Ordered lists, unordered lists, and data tables.\n </Card>\n <Card title=\"Code\" icon=\"code\" href=\"/code\">\n Inline code, fenced code blocks, and syntax highlighting.\n </Card>\n <Card title=\"Accordion\" icon=\"chevrons-down\" href=\"/accordion\">\n Collapsible sections for organizing lengthy content.\n </Card>\n <Card title=\"Tabs\" icon=\"panel-top\" href=\"/tabs\">\n Tabbed interfaces for grouping related content.\n </Card>\n <Card title=\"Cards\" icon=\"square\" href=\"/cards\">\n Visual containers for content, icons, and links.\n </Card>\n <Card title=\"Buttons\" icon=\"mouse-pointer-click\" href=\"/buttons\">\n Action components with variants, sizes, and icons.\n </Card>\n <Card title=\"
|
|
1
|
+
export declare const componentsMdxTemplate = "---\ntitle: \"Components\"\ndescription: \"Explore the full library of built-in components available in your documentation pages.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\ncategoryIcon: \"blocks\"\norder: 0\n---\n# Components\n\nDoccupine includes a rich set of built-in components you can use directly in your MDX files - no imports needed. Browse the full library below.\n\n<Columns cols={2}>\n <Card title=\"Headers and Text\" icon=\"heading\" href=\"/headers-and-text\">\n Headings, paragraphs, bold, italic, links, and other text formatting.\n </Card>\n <Card title=\"Lists and Tables\" icon=\"list\" href=\"/lists-and-tables\">\n Ordered lists, unordered lists, and data tables.\n </Card>\n <Card title=\"Code\" icon=\"code\" href=\"/code\">\n Inline code, fenced code blocks, and syntax highlighting.\n </Card>\n <Card title=\"Prompt\" icon=\"sparkles\" href=\"/prompt\">\n Pre-built AI prompts readers can copy or open in Cursor.\n </Card>\n <Card title=\"Callouts\" icon=\"megaphone\" href=\"/callouts\">\n Highlighted blocks for tips, warnings, and important notes.\n </Card>\n <Card title=\"Accordion\" icon=\"chevrons-down\" href=\"/accordion\">\n Collapsible sections for organizing lengthy content.\n </Card>\n <Card title=\"Tabs\" icon=\"panel-top\" href=\"/tabs\">\n Tabbed interfaces for grouping related content.\n </Card>\n <Card title=\"Steps\" icon=\"footprints\" href=\"/steps\">\n Numbered step-by-step guides and walkthroughs.\n </Card>\n <Card title=\"Tree\" icon=\"folder-tree\" href=\"/tree\">\n File and folder structures with collapsible nodes and keyboard navigation.\n </Card>\n <Card title=\"Cards\" icon=\"square\" href=\"/cards\">\n Visual containers for content, icons, and links.\n </Card>\n <Card title=\"Buttons\" icon=\"mouse-pointer-click\" href=\"/buttons\">\n Action components with variants, sizes, and icons.\n </Card>\n <Card title=\"Badges\" icon=\"tag\" href=\"/badges\">\n Colored labels for statuses, versions, and metadata.\n </Card>\n <Card title=\"Tooltips\" icon=\"message-square\" href=\"/tooltips\">\n Contextual definitions and explanations shown on hover.\n </Card>\n <Card title=\"Images and Embeds\" icon=\"image\" href=\"/images-and-embeds\">\n Images, videos, and embedded content.\n </Card>\n <Card title=\"Frames\" icon=\"frame\" href=\"/frames\">\n Bordered containers with captions for images, videos, and diagrams.\n </Card>\n <Card title=\"Icons\" icon=\"smile\" href=\"/icons\">\n Lucide icons you can use anywhere in your docs.\n </Card>\n <Card title=\"Columns\" icon=\"columns-3\" href=\"/columns\">\n Grid layouts for arranging cards and content side by side.\n </Card>\n <Card title=\"Fields\" icon=\"text-cursor-input\" href=\"/fields\">\n Property and parameter documentation blocks.\n </Card>\n <Card title=\"API Playground\" icon=\"square-terminal\" href=\"/api-playground\">\n Interactive API reference where readers send real requests and see live responses.\n </Card>\n <Card title=\"Update\" icon=\"bell\" href=\"/update\">\n Changelog blocks with a subscribable RSS feed.\n </Card>\n <Card title=\"Color Swatches\" icon=\"palette\" href=\"/color-swatches\">\n Visual color palette swatches to document your theme colors.\n </Card>\n <Card title=\"Mermaid\" icon=\"workflow\" href=\"/mermaid\">\n Flowcharts, sequence diagrams, and other visualizations from Mermaid syntax.\n </Card>\n</Columns>";
|
|
@@ -21,22 +21,37 @@ Doccupine includes a rich set of built-in components you can use directly in you
|
|
|
21
21
|
<Card title="Code" icon="code" href="/code">
|
|
22
22
|
Inline code, fenced code blocks, and syntax highlighting.
|
|
23
23
|
</Card>
|
|
24
|
+
<Card title="Prompt" icon="sparkles" href="/prompt">
|
|
25
|
+
Pre-built AI prompts readers can copy or open in Cursor.
|
|
26
|
+
</Card>
|
|
27
|
+
<Card title="Callouts" icon="megaphone" href="/callouts">
|
|
28
|
+
Highlighted blocks for tips, warnings, and important notes.
|
|
29
|
+
</Card>
|
|
24
30
|
<Card title="Accordion" icon="chevrons-down" href="/accordion">
|
|
25
31
|
Collapsible sections for organizing lengthy content.
|
|
26
32
|
</Card>
|
|
27
33
|
<Card title="Tabs" icon="panel-top" href="/tabs">
|
|
28
34
|
Tabbed interfaces for grouping related content.
|
|
29
35
|
</Card>
|
|
36
|
+
<Card title="Steps" icon="footprints" href="/steps">
|
|
37
|
+
Numbered step-by-step guides and walkthroughs.
|
|
38
|
+
</Card>
|
|
39
|
+
<Card title="Tree" icon="folder-tree" href="/tree">
|
|
40
|
+
File and folder structures with collapsible nodes and keyboard navigation.
|
|
41
|
+
</Card>
|
|
30
42
|
<Card title="Cards" icon="square" href="/cards">
|
|
31
43
|
Visual containers for content, icons, and links.
|
|
32
44
|
</Card>
|
|
33
45
|
<Card title="Buttons" icon="mouse-pointer-click" href="/buttons">
|
|
34
46
|
Action components with variants, sizes, and icons.
|
|
35
47
|
</Card>
|
|
36
|
-
<Card title="
|
|
37
|
-
|
|
48
|
+
<Card title="Badges" icon="tag" href="/badges">
|
|
49
|
+
Colored labels for statuses, versions, and metadata.
|
|
50
|
+
</Card>
|
|
51
|
+
<Card title="Tooltips" icon="message-square" href="/tooltips">
|
|
52
|
+
Contextual definitions and explanations shown on hover.
|
|
38
53
|
</Card>
|
|
39
|
-
<Card title="Images and Embeds" icon="image" href="/
|
|
54
|
+
<Card title="Images and Embeds" icon="image" href="/images-and-embeds">
|
|
40
55
|
Images, videos, and embedded content.
|
|
41
56
|
</Card>
|
|
42
57
|
<Card title="Frames" icon="frame" href="/frames">
|
|
@@ -45,17 +60,17 @@ Doccupine includes a rich set of built-in components you can use directly in you
|
|
|
45
60
|
<Card title="Icons" icon="smile" href="/icons">
|
|
46
61
|
Lucide icons you can use anywhere in your docs.
|
|
47
62
|
</Card>
|
|
63
|
+
<Card title="Columns" icon="columns-3" href="/columns">
|
|
64
|
+
Grid layouts for arranging cards and content side by side.
|
|
65
|
+
</Card>
|
|
48
66
|
<Card title="Fields" icon="text-cursor-input" href="/fields">
|
|
49
67
|
Property and parameter documentation blocks.
|
|
50
68
|
</Card>
|
|
51
|
-
<Card title="
|
|
52
|
-
|
|
53
|
-
</Card>
|
|
54
|
-
<Card title="Columns" icon="columns-3" href="/columns">
|
|
55
|
-
Grid layouts for arranging cards and content side by side.
|
|
69
|
+
<Card title="API Playground" icon="square-terminal" href="/api-playground">
|
|
70
|
+
Interactive API reference where readers send real requests and see live responses.
|
|
56
71
|
</Card>
|
|
57
|
-
<Card title="
|
|
58
|
-
|
|
72
|
+
<Card title="Update" icon="bell" href="/update">
|
|
73
|
+
Changelog blocks with a subscribable RSS feed.
|
|
59
74
|
</Card>
|
|
60
75
|
<Card title="Color Swatches" icon="palette" href="/color-swatches">
|
|
61
76
|
Visual color palette swatches to document your theme colors.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const deploymentAndHostingMdxTemplate = "---\ntitle: \"Deployment & Hosting\"\ndescription: \"Deploy your documentation site with the Doccupine Platform or self-host on any platform that supports Next.js.\"\ndate: \"2026-02-19\"\ncategory: \"
|
|
1
|
+
export declare const deploymentAndHostingMdxTemplate = "---\ntitle: \"Deployment & Hosting\"\ndescription: \"Deploy your documentation site with the Doccupine Platform or self-host on any platform that supports Next.js.\"\ndate: \"2026-02-19\"\ncategory: \"Deployment\"\ncategoryOrder: 4\ncategoryIcon: \"cloud-upload\"\norder: 1\n---\n# Deployment & Hosting\n\nThe fastest way to deploy your documentation is with the [Doccupine Platform](https://www.doccupine.com). If you prefer to manage your own infrastructure, you can self-host the generated Next.js app on any platform.\n\n## Doccupine Platform\n\nSign up at [doccupine.com](https://www.doccupine.com) and connect your repository. Your documentation site is live in minutes - no build configuration, no infrastructure to manage.\n\n<Callout type=\"success\">\n The Doccupine Platform is the recommended way to deploy. It handles builds, hosting, SSL, and updates automatically so you can focus on writing documentation.\n</Callout>\n\n### What you get\n\n- **Automatic deployments** on every push to your repository\n- **Site customization** through a visual dashboard - no code changes needed\n- **Team collaboration** so your whole team can manage docs together\n- **Custom domains** with automatic SSL\n- **AI Assistant and MCP server** included out of the box, no API key required\n- **Zero maintenance** - no servers, no build pipelines, no dependency updates\n\n### Getting started\n\n1. Create an account at [doccupine.com](https://www.doccupine.com).\n2. Connect your GitHub repository.\n3. Your site is deployed automatically.\n\nEvery push to your repository triggers a new deployment. You can customize your site's appearance, domain, and settings from the dashboard. See the [Platform Overview](/platform) for a full walkthrough of the dashboard, editor, and configuration options.\n\n---\n\n## Self-hosting\n\nDoccupine generates a standard Next.js app, so you can deploy it anywhere that supports Node.js or Next.js.\n\n<Callout type=\"warning\">\n Deploy the generated website directory (the Next.js app), not your MDX source directory. In a monorepo, set the root directory to the generated site directory.\n</Callout>\n\n<Callout type=\"note\">\n Self-hosting requires you to manage your own build pipeline, hosting, SSL certificates, and AI provider API keys. For a hands-off experience, consider the [Doccupine Platform](https://www.doccupine.com).\n</Callout>\n\n### Popular hosting options\n\n- **Vercel** - native Next.js support, zero-config deploys. Connect your repo and set the root directory to the generated app directory.\n- **Netlify** - supports Next.js via the `@netlify/plugin-nextjs` adapter. Works with the standard `next build` output.\n- **AWS Amplify** - fully managed hosting with CI/CD. Supports Next.js SSR out of the box.\n- **Cloudflare Pages** - deploy using the `@cloudflare/next-on-pages` adapter for edge-based hosting.\n- **Docker** - build a container from the generated app using the standard [Next.js Docker example](https://github.com/vercel/next.js/tree/canary/examples/with-docker) and deploy to any container platform.\n- **Node.js server** - run `next build && next start` on any server or VPS with Node.js installed.\n\n### Sitemap and robots.txt\n\nDoccupine generates `sitemap.xml` and `robots.txt` automatically when you set a site URL. This is required for search engine indexing and is strongly recommended for any public deployment.\n\nSet the URL in `config.json`:\n\n```json\n{\n \"url\": \"https://docs.example.com\"\n}\n```\n\nAt deploy time, you can override the value with the `NEXT_PUBLIC_SITE_URL` environment variable - useful for preview deployments or staging environments.\n\n```bash\nNEXT_PUBLIC_SITE_URL=https://staging.example.com\n```\n\nThe generated sitemap includes every page from every [section](/sections), with `lastModified` derived from each page's frontmatter `date` or the file's modification time. When no URL is configured, the sitemap is skipped and `robots.txt` is emitted without a sitemap reference.\n\n### Troubleshooting\n\n- **Build failed** - check build logs. Ensure your lockfile and correct Node.js version are present.\n- **Missing content** - verify your MDX files and assets are in the repository.\n- **SSR issues on edge platforms** - some features (like the AI chat API routes) require a Node.js runtime. Check your platform's documentation for SSR/API route support.";
|
|
@@ -2,9 +2,10 @@ export const deploymentAndHostingMdxTemplate = `---
|
|
|
2
2
|
title: "Deployment & Hosting"
|
|
3
3
|
description: "Deploy your documentation site with the Doccupine Platform or self-host on any platform that supports Next.js."
|
|
4
4
|
date: "2026-02-19"
|
|
5
|
-
category: "
|
|
6
|
-
categoryOrder:
|
|
7
|
-
|
|
5
|
+
category: "Deployment"
|
|
6
|
+
categoryOrder: 4
|
|
7
|
+
categoryIcon: "cloud-upload"
|
|
8
|
+
order: 1
|
|
8
9
|
---
|
|
9
10
|
# Deployment & Hosting
|
|
10
11
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fieldsMdxTemplate = "---\ntitle: \"Fields\"\ndescription: \"Configure parameters for your API or SDK documentation.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const fieldsMdxTemplate = "---\ntitle: \"Fields\"\ndescription: \"Configure parameters for your API or SDK documentation.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 18\n---\n# Fields\n\nConfigure parameters for your API or SDK documentation.\n\nFields allow you to describe both the **inputs** (parameters) and **outputs** (responses) of your API. The main field component is available: `Field` for parameters and for responses.\n\n## Fields Usage\n\nUse the `<Field>` component to declare API or SDK parameters, or define the return values of an API.\n\n<Field value=\"param\" type=\"string\" required>\n Example definition of a parameter field.\n</Field>\n\n```html\n<Field value=\"param\" type=\"string\" required>\n Example definition of a parameter field.\n</Field>\n```\n\n## Properties\n\n<Field value=\"value\" type=\"string\" required>\n The name of the field.\n</Field>\n\n<Field value=\"type\" type=\"string\" required>\n The type of the field.\n</Field>\n\n<Field value=\"required\" type=\"boolean\">\n Whether the field is required.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fontsMdxTemplate = "---\ntitle: \"Fonts\"\ndescription: \"Customize the documentation typography with a fonts.json file (Google Fonts or local custom fonts).\"\ndate: \"2026-02-19\"\ncategory: \"Configuration\"\ncategoryOrder:
|
|
1
|
+
export declare const fontsMdxTemplate = "---\ntitle: \"Fonts\"\ndescription: \"Customize the documentation typography with a fonts.json file (Google Fonts or local custom fonts).\"\ndate: \"2026-02-19\"\ncategory: \"Configuration\"\ncategoryOrder: 2\norder: 6\n---\n# Fonts\n\nDefine your site\u2019s typography with a `fonts.json` file. You can load fonts from Google Fonts or from local font files bundled with your project.\n\n## fonts.json\n\nPlace a `fonts.json` at your project root (the same directory where you execute `npx doccupine`). Choose one of the following configurations depending on the source of your fonts.\n\n## Google Fonts\n\nUse this when your font is hosted by Google Fonts.\n\n```json\n{\n \"googleFont\": {\n \"fontName\": \"Work_Sans\",\n \"subsets\": [\"latin\"],\n \"weight\": \"400\"\n }\n}\n```\n\n### Rules\n\n- **fontName**: Capitalize each word. If the name contains spaces, replace them with `_`.\n - Example: \"Work Sans\" \u2192 `Work_Sans`\n- **subsets**: Pick the subsets you need (for example, `latin`).\n- **weight**: The font weight to load - a single string (for example, `\"400\"`) or an array of strings (for example, `[\"400\", \"500\", \"700\"]`).\n\n<Callout type=\"warning\">\n The `fontName` must match the Google Fonts name exactly - capitalize each word and replace spaces with underscores.\n</Callout>\n\n### Tips\n\n- **One primary family**: Start with a single family and weight, then add more if needed.\n- **Readability**: Choose readable body fonts; reserve display fonts for headings.\n\n## Local custom fonts\n\nUse this when you want to ship your own font files. Upload your font files to the Next.js `public` directory, then reference them with relative paths.\n\n```json\n{\n \"localFonts\": {\n \"src\": [\n {\n \"path\": \"../public/font.woff\",\n \"weight\": \"400\",\n \"style\": \"normal\"\n },\n {\n \"path\": \"../public/font.woff\",\n \"weight\": \"400\",\n \"style\": \"italic\"\n },\n {\n \"path\": \"../public/font.woff\",\n \"weight\": \"700\",\n \"style\": \"normal\"\n },\n {\n \"path\": \"../public/font.woff\",\n \"weight\": \"700\",\n \"style\": \"italic\"\n }\n ]\n }\n}\n```\n\n### Single file shorthand\n\nIf you have only one file, you can use:\n\n```json\n{\n \"localFonts\": \"../public/font.woff\"\n}\n```\n\n### Rules\n\n- **Upload files**: Place `font.woff` (and any additional weights/styles) in your Next.js `public` directory.\n- **path**: Use a relative path to the file from where it is consumed by your build tooling; the example above uses `../public/font.woff`.\n- **weight**: String value of the font weight (for example, `\"400\"`, `\"700\"`).\n- **style**: `\"normal\"` or `\"italic\"`.\n\n### Tips\n\n- **Provide only what you need**: Include the minimal set of weights/styles to keep bundle size small.\n- **File formats**: `.woff` is broadly supported and recommended for the web.\n\n## Behavior\n\n- **Placement**: Put `fonts.json` in the project root alongside `config.json` and (optionally) `theme.json`.\n- **Validation**: Follow the naming rule for `googleFont.fontName` (capitalize, replace spaces with `_`).\n\n<Callout type=\"note\">\n When using local fonts, ensure the referenced files exist under the Next.js `public` directory. The paths in `fonts.json` are relative to where they are consumed by the build tooling.\n</Callout>\n\n## Examples\n\n- **Google Fonts (single weight)**\n\n```json\n{\n \"googleFont\": {\n \"fontName\": \"Work_Sans\",\n \"subsets\": [\"latin\"],\n \"weight\": \"400\"\n }\n}\n```\n\n- **Google Fonts (multiple weights)**\n\n```json\n{\n \"googleFont\": {\n \"fontName\": \"Work_Sans\",\n \"subsets\": [\"latin\"],\n \"weight\": [\"400\", \"500\", \"600\", \"700\"]\n }\n}\n```\n\n- **Local fonts (multiple weights/styles)**\n\n```json\n{\n \"localFonts\": {\n \"src\": [\n { \"path\": \"../public/font.woff\", \"weight\": \"400\", \"style\": \"normal\" },\n { \"path\": \"../public/font.woff\", \"weight\": \"400\", \"style\": \"italic\" },\n { \"path\": \"../public/font.woff\", \"weight\": \"700\", \"style\": \"normal\" },\n { \"path\": \"../public/font.woff\", \"weight\": \"700\", \"style\": \"italic\" }\n ]\n }\n}\n```";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const footerLinksMdxTemplate = "---\ntitle: \"Footer Links\"\ndescription: \"Add static links at the bottom of the documentation pages.\"\ndate: \"2026-02-19\"\ncategory: \"Configuration\"\ncategoryOrder:
|
|
1
|
+
export declare const footerLinksMdxTemplate = "---\ntitle: \"Footer Links\"\ndescription: \"Add static links at the bottom of the documentation pages.\"\ndate: \"2026-02-19\"\ncategory: \"Configuration\"\ncategoryOrder: 2\norder: 4\n---\n# Footer Links\n\nAdd a row of static links at the bottom of your documentation pages, just above the footer. Links open in a new tab and are useful for pointing users to related resources, repositories, or external docs.\n\n## links.json\n\nPlace a `links.json` at your project root (the same directory where you execute `npx doccupine`). When present, Doccupine displays the links at the bottom of each page. You can add as many links as you need.\n\n### Example links.json\n\n```json\n[\n {\n \"title\": \"Back to Home\",\n \"url\": \"https://doccupine.com\",\n \"icon\": \"arrow-left\"\n },\n {\n \"title\": \"GitHub\",\n \"url\": \"https://github.com/doccupine\",\n \"icon\": \"git-branch\"\n },\n {\n \"title\": \"Discord\",\n \"url\": \"https://discord.gg/E9BufYGPhG\",\n \"icon\": \"message-circle\"\n }\n]\n```\n\n### Fields\n\n- **title**: The label shown for the link.\n- **url**: The destination URL. Links open in a new tab with `target=\"_blank\"` and `rel=\"noopener noreferrer\"`.\n- **icon**: The icon to display next to the label. Icons are from [Lucide](https://lucide.dev/).\n\n## Behavior\n\n- **Empty or missing file**: If `links.json` is empty or not present, the footer links are hidden.\n- **Order**: Links appear in the same order as in the array.\n- **No limit**: Add as many links as you want; they wrap automatically on smaller screens.";
|