@axerity/cli 0.1.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.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/axerity.default.json +135 -0
- package/axerity.schema.json +268 -0
- package/bin/axerity.js +305 -0
- package/mdsvex.config.js +261 -0
- package/package.json +103 -0
- package/scripts/prepare-engine.mjs +20 -0
- package/src/app.d.ts +17 -0
- package/src/app.html +39 -0
- package/src/content/demo/api/meta.json +5 -0
- package/src/content/demo/api/pet/add-pet.md +105 -0
- package/src/content/demo/api/pet/delete-pet.md +70 -0
- package/src/content/demo/api/pet/find-by-status.md +72 -0
- package/src/content/demo/api/pet/find-by-tags.md +64 -0
- package/src/content/demo/api/pet/get-pet.md +99 -0
- package/src/content/demo/api/pet/meta.json +15 -0
- package/src/content/demo/api/pet/pet-object.md +112 -0
- package/src/content/demo/api/pet/update-pet-with-form.md +69 -0
- package/src/content/demo/api/pet/update-pet.md +79 -0
- package/src/content/demo/api/pet/upload-image.md +79 -0
- package/src/content/demo/api/store/delete-order.md +62 -0
- package/src/content/demo/api/store/get-order.md +70 -0
- package/src/content/demo/api/store/inventory.md +54 -0
- package/src/content/demo/api/store/meta.json +5 -0
- package/src/content/demo/api/store/order-object.md +77 -0
- package/src/content/demo/api/store/place-order.md +83 -0
- package/src/content/demo/api/user/create-user.md +69 -0
- package/src/content/demo/api/user/create-with-list.md +57 -0
- package/src/content/demo/api/user/delete-user.md +61 -0
- package/src/content/demo/api/user/get-user.md +69 -0
- package/src/content/demo/api/user/login.md +80 -0
- package/src/content/demo/api/user/logout.md +45 -0
- package/src/content/demo/api/user/meta.json +14 -0
- package/src/content/demo/api/user/update-user.md +69 -0
- package/src/content/demo/api/user/user-object.md +85 -0
- package/src/content/demo/changelog.md +44 -0
- package/src/content/demo/components/accordion.md +70 -0
- package/src/content/demo/components/api.md +185 -0
- package/src/content/demo/components/badge.md +34 -0
- package/src/content/demo/components/callout.md +83 -0
- package/src/content/demo/components/cards.md +88 -0
- package/src/content/demo/components/code-group.md +55 -0
- package/src/content/demo/components/columns.md +42 -0
- package/src/content/demo/components/frame.md +51 -0
- package/src/content/demo/components/icon.md +54 -0
- package/src/content/demo/components/kbd.md +28 -0
- package/src/content/demo/components/meta.json +26 -0
- package/src/content/demo/components/roadmap.md +86 -0
- package/src/content/demo/components/steps.md +72 -0
- package/src/content/demo/components/tabs.md +146 -0
- package/src/content/demo/components/tooltip.md +44 -0
- package/src/content/demo/components/tree.md +83 -0
- package/src/content/demo/components/type-table.md +77 -0
- package/src/content/demo/components/update.md +48 -0
- package/src/content/demo/components/video.md +56 -0
- package/src/content/demo/components/webhooks.md +109 -0
- package/src/content/demo/components/websockets.md +101 -0
- package/src/content/demo/configuration/ai.md +40 -0
- package/src/content/demo/configuration/cli.md +46 -0
- package/src/content/demo/configuration/deployment.md +105 -0
- package/src/content/demo/configuration/index.md +92 -0
- package/src/content/demo/configuration/layouts.md +51 -0
- package/src/content/demo/configuration/meta.json +5 -0
- package/src/content/demo/configuration/navigation.md +167 -0
- package/src/content/demo/configuration/openapi.md +103 -0
- package/src/content/demo/configuration/search.md +36 -0
- package/src/content/demo/index.md +59 -0
- package/src/content/demo/installation.md +49 -0
- package/src/content/demo/meta.json +15 -0
- package/src/content/demo/quick-start.md +47 -0
- package/src/content/demo/theming/advanced.md +116 -0
- package/src/content/demo/theming/code.md +66 -0
- package/src/content/demo/theming/colors.md +103 -0
- package/src/content/demo/theming/index.md +88 -0
- package/src/content/demo/theming/layout.md +71 -0
- package/src/content/demo/theming/meta.json +5 -0
- package/src/content/demo/theming/themes.md +99 -0
- package/src/content/demo/theming/typography.md +83 -0
- package/src/content/demo/writing/code-blocks.md +154 -0
- package/src/content/demo/writing/diagrams.md +44 -0
- package/src/content/demo/writing/frontmatter.md +33 -0
- package/src/content/demo/writing/markdown.md +62 -0
- package/src/content/demo/writing/meta.json +5 -0
- package/src/hooks.server.ts +49 -0
- package/src/lib/assets/favicon.svg +1 -0
- package/src/lib/base.ts +12 -0
- package/src/lib/components/DynamicIcon.svelte +26 -0
- package/src/lib/components/docs/Analytics.svelte +38 -0
- package/src/lib/components/docs/Banner.svelte +44 -0
- package/src/lib/components/docs/Breadcrumbs.svelte +38 -0
- package/src/lib/components/docs/CopyPageMenu.svelte +119 -0
- package/src/lib/components/docs/DocsLayout.svelte +192 -0
- package/src/lib/components/docs/Footer.svelte +60 -0
- package/src/lib/components/docs/Mermaid.svelte +39 -0
- package/src/lib/components/docs/Navbar.svelte +144 -0
- package/src/lib/components/docs/PageMeta.svelte +35 -0
- package/src/lib/components/docs/PageNav.svelte +44 -0
- package/src/lib/components/docs/SearchDialog.svelte +182 -0
- package/src/lib/components/docs/Sidebar.svelte +85 -0
- package/src/lib/components/docs/SidebarDropdown.svelte +56 -0
- package/src/lib/components/docs/SidebarFooterLinks.svelte +19 -0
- package/src/lib/components/docs/SidebarGroup.svelte +54 -0
- package/src/lib/components/docs/SidebarLink.svelte +67 -0
- package/src/lib/components/docs/TableOfContents.svelte +77 -0
- package/src/lib/components/docs/ThemeToggle.svelte +19 -0
- package/src/lib/components/docs/VersionSwitcher.svelte +80 -0
- package/src/lib/components/kit/Accordion.svelte +60 -0
- package/src/lib/components/kit/AccordionGroup.svelte +13 -0
- package/src/lib/components/kit/Badge.svelte +32 -0
- package/src/lib/components/kit/Callout.svelte +51 -0
- package/src/lib/components/kit/Card.svelte +72 -0
- package/src/lib/components/kit/CardGroup.svelte +21 -0
- package/src/lib/components/kit/CodeGroup.svelte +65 -0
- package/src/lib/components/kit/Columns.svelte +26 -0
- package/src/lib/components/kit/Event.svelte +23 -0
- package/src/lib/components/kit/EventList.svelte +9 -0
- package/src/lib/components/kit/File.svelte +15 -0
- package/src/lib/components/kit/Folder.svelte +46 -0
- package/src/lib/components/kit/Frame.svelte +81 -0
- package/src/lib/components/kit/Icon.svelte +17 -0
- package/src/lib/components/kit/Kbd.svelte +11 -0
- package/src/lib/components/kit/Roadmap.svelte +15 -0
- package/src/lib/components/kit/RoadmapItem.svelte +109 -0
- package/src/lib/components/kit/Step.svelte +63 -0
- package/src/lib/components/kit/Steps.svelte +16 -0
- package/src/lib/components/kit/Tab.svelte +27 -0
- package/src/lib/components/kit/Tabs.svelte +75 -0
- package/src/lib/components/kit/Tooltip.svelte +33 -0
- package/src/lib/components/kit/Tree.svelte +11 -0
- package/src/lib/components/kit/TypeTable.svelte +187 -0
- package/src/lib/components/kit/Update.svelte +32 -0
- package/src/lib/components/kit/Video.svelte +64 -0
- package/src/lib/components/kit/accordion-context.ts +1 -0
- package/src/lib/components/kit/api/Api.svelte +80 -0
- package/src/lib/components/kit/api/ApiExamplePanel.svelte +100 -0
- package/src/lib/components/kit/api/ApiField.svelte +124 -0
- package/src/lib/components/kit/api/Channel.svelte +121 -0
- package/src/lib/components/kit/api/Endpoint.svelte +116 -0
- package/src/lib/components/kit/api/Enum.svelte +44 -0
- package/src/lib/components/kit/api/EnumValues.svelte +35 -0
- package/src/lib/components/kit/api/Expandable.svelte +70 -0
- package/src/lib/components/kit/api/Message.svelte +67 -0
- package/src/lib/components/kit/api/ObjectExample.svelte +11 -0
- package/src/lib/components/kit/api/RequestExample.svelte +11 -0
- package/src/lib/components/kit/api/ResponseExample.svelte +11 -0
- package/src/lib/components/kit/api/Webhook.svelte +115 -0
- package/src/lib/components/kit/api/api-context.ts +15 -0
- package/src/lib/components/kit/tabs-context.ts +8 -0
- package/src/lib/components/kit/tabs-store.svelte.ts +28 -0
- package/src/lib/config/site.ts +34 -0
- package/src/lib/content/index.ts +50 -0
- package/src/lib/content/raw.ts +21 -0
- package/src/lib/content/tree.ts +169 -0
- package/src/lib/index.ts +79 -0
- package/src/lib/nav-match.ts +23 -0
- package/src/lib/openapi/generate.ts +629 -0
- package/src/lib/server/og.ts +140 -0
- package/src/lib/state/search.svelte.ts +9 -0
- package/src/lib/state/theme.svelte.ts +58 -0
- package/src/lib/types.ts +216 -0
- package/src/params/docpage.ts +3 -0
- package/src/params/mdfile.ts +3 -0
- package/src/routes/+error.svelte +46 -0
- package/src/routes/+layout.svelte +25 -0
- package/src/routes/[...path=mdfile]/+server.ts +21 -0
- package/src/routes/[...slug=docpage]/+page.svelte +63 -0
- package/src/routes/[...slug=docpage]/+page.ts +44 -0
- package/src/routes/layout.css +897 -0
- package/src/routes/llms-full.txt/+server.ts +22 -0
- package/src/routes/llms.txt/+server.ts +20 -0
- package/src/routes/og/[...slug]/+server.ts +77 -0
- package/src/routes/rss.xml/+server.ts +65 -0
- package/src/routes/search.json/+server.ts +54 -0
- package/src/routes/sitemap.xml/+server.ts +21 -0
- package/static/favicon-dark.svg +6 -0
- package/static/favicon-light.svg +6 -0
- package/static/favicon.svg +14 -0
- package/static/fonts/geist-400.ttf +0 -0
- package/static/fonts/geist-600.ttf +0 -0
- package/static/fonts/geist-700.ttf +0 -0
- package/static/og-image.png +0 -0
- package/static/robots.txt +4 -0
- package/svelte.config.js +35 -0
- package/tsconfig.json +20 -0
- package/vite.config.ts +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Axerity Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Axerity
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./axerity.schema.json",
|
|
3
|
+
"name": "Axerity",
|
|
4
|
+
"description": "A documentation site generator built with Svelte.",
|
|
5
|
+
"url": "https://axerity.com",
|
|
6
|
+
"github": "https://github.com/axerity",
|
|
7
|
+
"editLink": "https://github.com/axerity/axerity/edit/main/src/content/docs",
|
|
8
|
+
"og": {
|
|
9
|
+
"enabled": true,
|
|
10
|
+
"background": "#0a0a0a",
|
|
11
|
+
"foreground": "#fafafa",
|
|
12
|
+
"muted": "#a1a1a1",
|
|
13
|
+
"accent": "#fafafa"
|
|
14
|
+
},
|
|
15
|
+
"logo": {
|
|
16
|
+
"light": "/favicon-light.svg",
|
|
17
|
+
"dark": "/favicon-dark.svg",
|
|
18
|
+
"alt": "Axerity",
|
|
19
|
+
"href": "/"
|
|
20
|
+
},
|
|
21
|
+
"layout": "flat",
|
|
22
|
+
"theme": "neutral",
|
|
23
|
+
"sidebar": {
|
|
24
|
+
"variant": "card"
|
|
25
|
+
},
|
|
26
|
+
"versions": [
|
|
27
|
+
{
|
|
28
|
+
"label": "v1.0-preview",
|
|
29
|
+
"href": "/"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"dropdowns": [
|
|
33
|
+
{
|
|
34
|
+
"label": "Guides",
|
|
35
|
+
"icon": "book-open",
|
|
36
|
+
"href": "/",
|
|
37
|
+
"match": "/",
|
|
38
|
+
"tabs": [
|
|
39
|
+
{
|
|
40
|
+
"title": "Documentation",
|
|
41
|
+
"href": "/",
|
|
42
|
+
"match": "/",
|
|
43
|
+
"icon": "book-open"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"title": "Components",
|
|
47
|
+
"href": "/components/callout",
|
|
48
|
+
"match": "/components",
|
|
49
|
+
"icon": "blocks"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "API Reference",
|
|
55
|
+
"icon": "code",
|
|
56
|
+
"href": "/api/pet/pet-object",
|
|
57
|
+
"match": "/api",
|
|
58
|
+
"tabs": [
|
|
59
|
+
{
|
|
60
|
+
"title": "Pet",
|
|
61
|
+
"href": "/api/pet/pet-object",
|
|
62
|
+
"match": "/api/pet",
|
|
63
|
+
"icon": "paw-print"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"title": "Store",
|
|
67
|
+
"href": "/api/store/order-object",
|
|
68
|
+
"match": "/api/store",
|
|
69
|
+
"icon": "shopping-cart"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"title": "User",
|
|
73
|
+
"href": "/api/user/user-object",
|
|
74
|
+
"match": "/api/user",
|
|
75
|
+
"icon": "user"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"label": "Petstore API",
|
|
81
|
+
"icon": "paw-print",
|
|
82
|
+
"href": "/petstore-api/pet/addpet",
|
|
83
|
+
"match": "/petstore-api",
|
|
84
|
+
"tabs": [
|
|
85
|
+
{
|
|
86
|
+
"title": "Pet",
|
|
87
|
+
"href": "/petstore-api/pet/addpet",
|
|
88
|
+
"match": "/petstore-api/pet",
|
|
89
|
+
"icon": "paw-print"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"title": "Store",
|
|
93
|
+
"href": "/petstore-api/store/getinventory",
|
|
94
|
+
"match": "/petstore-api/store",
|
|
95
|
+
"icon": "shopping-cart"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"title": "User",
|
|
99
|
+
"href": "/petstore-api/user/createuser",
|
|
100
|
+
"match": "/petstore-api/user",
|
|
101
|
+
"icon": "user"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"title": "Schemas",
|
|
105
|
+
"href": "/petstore-api/schemas/order",
|
|
106
|
+
"match": "/petstore-api/schemas",
|
|
107
|
+
"icon": "box"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"sidebarLinks": [
|
|
113
|
+
{
|
|
114
|
+
"title": "Issues",
|
|
115
|
+
"href": "https://github.com/axerity/axerity/issues"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"openapi": [
|
|
119
|
+
{
|
|
120
|
+
"spec": "petstore-openapi.json",
|
|
121
|
+
"output": "petstore-api",
|
|
122
|
+
"title": "Petstore API"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"topNav": [
|
|
126
|
+
{
|
|
127
|
+
"title": "Docs",
|
|
128
|
+
"href": "/"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"title": "Components",
|
|
132
|
+
"href": "/components/callout"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://axerity.com/axerity.schema.json",
|
|
4
|
+
"title": "Axerity configuration",
|
|
5
|
+
"description": "Site-wide configuration for an Axerity documentation site.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["name", "topNav"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Path or URL to this JSON schema, for editor autocomplete."
|
|
13
|
+
},
|
|
14
|
+
"name": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Site name, used in the page title and the navbar."
|
|
17
|
+
},
|
|
18
|
+
"tagline": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Short tagline for the site."
|
|
21
|
+
},
|
|
22
|
+
"description": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Site description, used for SEO meta tags and llms.txt."
|
|
25
|
+
},
|
|
26
|
+
"url": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "uri",
|
|
29
|
+
"description": "Canonical site URL. Enables absolute links in sitemap, RSS, and OpenGraph."
|
|
30
|
+
},
|
|
31
|
+
"ogImage": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Path to a static OpenGraph image, used when per-page generation is off."
|
|
34
|
+
},
|
|
35
|
+
"og": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": false,
|
|
38
|
+
"description": "Per-page OpenGraph image generation.",
|
|
39
|
+
"properties": {
|
|
40
|
+
"enabled": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"description": "Generate a unique OG image per page at build time."
|
|
43
|
+
},
|
|
44
|
+
"background": { "type": "string", "description": "Card background color (any CSS color)." },
|
|
45
|
+
"foreground": { "type": "string", "description": "Title color." },
|
|
46
|
+
"muted": { "type": "string", "description": "Description and footer color." },
|
|
47
|
+
"accent": { "type": "string", "description": "Accent color for the mark fallback." },
|
|
48
|
+
"logo": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Path to the logo SVG shown in the card. Defaults to the site logo."
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"logo": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"description": "Navbar logo. Local SVGs are inlined; other formats render as an image.",
|
|
58
|
+
"properties": {
|
|
59
|
+
"light": { "type": "string", "description": "Logo shown in light mode." },
|
|
60
|
+
"dark": { "type": "string", "description": "Logo shown in dark mode." },
|
|
61
|
+
"alt": { "type": "string", "description": "Alt text / aria-label." },
|
|
62
|
+
"href": { "type": "string", "description": "Where the logo links to (default /)." }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"topNav": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"description": "Fallback top-nav links shown when no dropdowns are configured.",
|
|
68
|
+
"items": { "$ref": "#/definitions/navLink" }
|
|
69
|
+
},
|
|
70
|
+
"versions": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"description": "Versions shown in the navbar version switcher.",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"required": ["label", "href"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"label": { "type": "string" },
|
|
79
|
+
"href": { "type": "string" }
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"dropdowns": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"description": "Areas that swap the whole sidebar, each with its own tabs.",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"required": ["label", "href"],
|
|
90
|
+
"properties": {
|
|
91
|
+
"label": { "type": "string" },
|
|
92
|
+
"icon": { "type": "string" },
|
|
93
|
+
"href": { "type": "string" },
|
|
94
|
+
"match": { "type": "string" },
|
|
95
|
+
"tabs": { "type": "array", "items": { "$ref": "#/definitions/navLink" } }
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"sidebarLinks": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"description": "Links pinned to the bottom of the sidebar.",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"additionalProperties": false,
|
|
105
|
+
"required": ["title", "href"],
|
|
106
|
+
"properties": {
|
|
107
|
+
"title": { "type": "string" },
|
|
108
|
+
"href": { "type": "string" }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"social": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"description": "Social links shown in the footer.",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": ["icon", "href"],
|
|
119
|
+
"properties": {
|
|
120
|
+
"icon": { "type": "string", "description": "Lucide icon name." },
|
|
121
|
+
"href": { "type": "string" },
|
|
122
|
+
"label": { "type": "string" }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"footer": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"additionalProperties": false,
|
|
129
|
+
"description": "Footer content.",
|
|
130
|
+
"properties": {
|
|
131
|
+
"note": { "type": "string", "description": "Text shown on the right of the footer." },
|
|
132
|
+
"links": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": ["title", "href"],
|
|
138
|
+
"properties": {
|
|
139
|
+
"title": { "type": "string" },
|
|
140
|
+
"href": { "type": "string" }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"banner": {
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"description": "Announcement bar above the navbar.",
|
|
150
|
+
"required": ["text"],
|
|
151
|
+
"properties": {
|
|
152
|
+
"text": { "type": "string" },
|
|
153
|
+
"href": { "type": "string" },
|
|
154
|
+
"id": { "type": "string", "description": "Stable id used to remember dismissal." },
|
|
155
|
+
"dismissible": { "type": "boolean" }
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"analytics": {
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"description": "Analytics scripts injected on every page.",
|
|
162
|
+
"properties": {
|
|
163
|
+
"plausible": { "type": "string", "description": "Plausible data-domain." },
|
|
164
|
+
"googleAnalytics": { "type": "string", "description": "Google Analytics measurement id." }
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"brand": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"additionalProperties": false,
|
|
170
|
+
"description": "Override the accent and corners on top of the theme preset.",
|
|
171
|
+
"properties": {
|
|
172
|
+
"accent": { "type": "string", "description": "Accent color (any CSS color)." },
|
|
173
|
+
"accentDark": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"description": "Accent color in dark mode (defaults to accent)."
|
|
176
|
+
},
|
|
177
|
+
"accentContrast": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "Text color on the accent (default white)."
|
|
180
|
+
},
|
|
181
|
+
"radius": { "type": "string", "description": "Base corner radius, e.g. \"0.5rem\"." }
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"openapi": {
|
|
185
|
+
"description": "Generate API references from OpenAPI 3 specs (local path or URL, JSON or YAML). Use an array to group several specs.",
|
|
186
|
+
"oneOf": [
|
|
187
|
+
{ "type": "string", "description": "Local path or http(s) URL to an OpenAPI 3 spec." },
|
|
188
|
+
{ "$ref": "#/definitions/apiSource" },
|
|
189
|
+
{ "type": "array", "items": { "$ref": "#/definitions/apiSource" } }
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"editLink": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "Base URL for the 'Edit this page' link; the source path is appended."
|
|
195
|
+
},
|
|
196
|
+
"github": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"description": "Repository URL, shown as the GitHub icon in the navbar and footer."
|
|
199
|
+
},
|
|
200
|
+
"layout": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"enum": ["flat", "boxed"],
|
|
203
|
+
"description": "Page shape: flat (full-bleed) or boxed (centered max-width)."
|
|
204
|
+
},
|
|
205
|
+
"theme": {
|
|
206
|
+
"type": "string",
|
|
207
|
+
"enum": [
|
|
208
|
+
"neutral",
|
|
209
|
+
"stripe",
|
|
210
|
+
"vercel",
|
|
211
|
+
"linear",
|
|
212
|
+
"supabase",
|
|
213
|
+
"github",
|
|
214
|
+
"tailwind",
|
|
215
|
+
"mintlify",
|
|
216
|
+
"anthropic"
|
|
217
|
+
],
|
|
218
|
+
"description": "Built-in color theme preset."
|
|
219
|
+
},
|
|
220
|
+
"sidebar": {
|
|
221
|
+
"type": "object",
|
|
222
|
+
"additionalProperties": false,
|
|
223
|
+
"description": "Sidebar appearance.",
|
|
224
|
+
"properties": {
|
|
225
|
+
"variant": {
|
|
226
|
+
"type": "string",
|
|
227
|
+
"enum": ["flush", "card", "floating"],
|
|
228
|
+
"description": "flush (default), card (inset panel), or floating (detached card)."
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"basePath": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"description": "Serve the whole site under a sub-path, e.g. \"/docs\". Empty serves at the root.",
|
|
235
|
+
"pattern": "^(/[^/]+)*$"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"definitions": {
|
|
239
|
+
"apiSource": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"additionalProperties": false,
|
|
242
|
+
"required": ["spec"],
|
|
243
|
+
"properties": {
|
|
244
|
+
"spec": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "Local path or http(s) URL to an OpenAPI 3 spec (JSON or YAML)."
|
|
247
|
+
},
|
|
248
|
+
"output": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"description": "Content folder for this group (default api-reference)."
|
|
251
|
+
},
|
|
252
|
+
"title": { "type": "string", "description": "Section title (defaults to info.title)." }
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"navLink": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"additionalProperties": false,
|
|
258
|
+
"required": ["title", "href"],
|
|
259
|
+
"properties": {
|
|
260
|
+
"title": { "type": "string" },
|
|
261
|
+
"href": { "type": "string" },
|
|
262
|
+
"icon": { "type": "string", "description": "Lucide icon name." },
|
|
263
|
+
"match": { "type": "string", "description": "Path prefix that marks this link active." },
|
|
264
|
+
"external": { "type": "boolean", "description": "Open in a new tab." }
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|