@axerity/cli 0.1.4 → 0.2.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/bin/axerity.js +67 -218
- package/dist/client/_app/immutable/assets/0.jCJXzoiy.css +1 -0
- package/dist/client/_app/immutable/assets/2.DZRzHaE1.css +1 -0
- package/dist/client/_app/immutable/assets/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-cyrillic-wght-normal.BEAKL7Jp.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-latin-ext-wght-normal.DC-KSUi6.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-latin-wght-normal.BgDaEnEv.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-cyrillic-ext-wght-normal.I4S5GZfc.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-cyrillic-wght-normal.BmXc_FBt.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-latin-ext-wght-normal.DrnZ1wKl.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-latin-wght-normal.B_7UjwxQ.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-symbols2-wght-normal.GZpp1pK2.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-vietnamese-wght-normal.D8KDMBhC.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-vietnamese-wght-normal.6IgcOCM7.woff2 +0 -0
- package/dist/client/_app/immutable/chunks/0CIKaoUA.js +139 -0
- package/dist/client/_app/immutable/chunks/0tC8Ubqr.js +2 -0
- package/dist/client/_app/immutable/chunks/29nvmPLe2.js +1 -0
- package/dist/client/_app/immutable/chunks/9IV9o0dV2.js +4 -0
- package/dist/client/_app/immutable/chunks/B-elEOLV.js +24 -0
- package/dist/client/_app/immutable/chunks/B1R9-4vu.js +89 -0
- package/dist/client/_app/immutable/chunks/B1eXHGII2.js +10 -0
- package/dist/client/_app/immutable/chunks/B2NKIbe62.js +206 -0
- package/dist/client/_app/immutable/chunks/B5Brrqz92.js +1 -0
- package/dist/client/_app/immutable/chunks/B6nymVS3.js +1 -0
- package/dist/client/_app/immutable/chunks/B8E5l9fg2.js +1 -0
- package/dist/client/_app/immutable/chunks/B8gBHxth2.js +1 -0
- package/dist/client/_app/immutable/chunks/BC8A8xkk.js +2 -0
- package/dist/client/_app/immutable/chunks/BGU5ZGjx.js +1 -0
- package/dist/client/_app/immutable/chunks/BLhBgXDr2.js +1 -0
- package/dist/client/_app/immutable/chunks/BNdlLOgu2.js +2 -0
- package/dist/client/_app/immutable/chunks/BQyPqLag.js +84 -0
- package/dist/client/_app/immutable/chunks/BRQspS80.js +162 -0
- package/dist/client/_app/immutable/chunks/BVz-DmJs2.js +132 -0
- package/dist/client/_app/immutable/chunks/BWPyau1x.js +1 -0
- package/dist/client/_app/immutable/chunks/BXD4L9Ly.js +9 -0
- package/dist/client/_app/immutable/chunks/B_Yg36qy2.js +1 -0
- package/dist/client/_app/immutable/chunks/BcuUc08l.js +292 -0
- package/dist/client/_app/immutable/chunks/BdsP84LY.js +231 -0
- package/dist/client/_app/immutable/chunks/Bie0X5s02.js +62 -0
- package/dist/client/_app/immutable/chunks/BifhSqXX.js +1 -0
- package/dist/client/_app/immutable/chunks/BjVjgMFk2.js +15 -0
- package/dist/client/_app/immutable/chunks/BpwmCo88.js +1 -0
- package/dist/client/_app/immutable/chunks/BxQVBtgJ.js +1 -0
- package/dist/client/_app/immutable/chunks/C2oEw9bf.js +34 -0
- package/dist/client/_app/immutable/chunks/C6Oj8XFW.js +1 -0
- package/dist/client/_app/immutable/chunks/C6v0vZRT2.js +36 -0
- package/dist/client/_app/immutable/chunks/C7H7uo1r.js +70 -0
- package/dist/client/_app/immutable/chunks/C8Fc0cco.js +1 -0
- package/dist/client/_app/immutable/chunks/CDfHwfr9.js +1 -0
- package/dist/client/_app/immutable/chunks/CEW3xh3M.js +124 -0
- package/dist/client/_app/immutable/chunks/CFNmf5NX.js +1 -0
- package/dist/client/_app/immutable/chunks/CGhzzHe4.js +1 -0
- package/dist/client/_app/immutable/chunks/CJMWL00f.js +1 -0
- package/dist/client/_app/immutable/chunks/CLrCY0qQ2.js +1 -0
- package/dist/client/_app/immutable/chunks/COu5VFF2.js +78 -0
- package/dist/client/_app/immutable/chunks/CSKSodPl2.js +1 -0
- package/dist/client/_app/immutable/chunks/CVNFCEpi.js +1 -0
- package/dist/client/_app/immutable/chunks/CWUJwgR2.js +1 -0
- package/dist/client/_app/immutable/chunks/CXC42hVj.js +70 -0
- package/dist/client/_app/immutable/chunks/CZqBFf11.js +30 -0
- package/dist/client/_app/immutable/chunks/CaWcga612.js +1 -0
- package/dist/client/_app/immutable/chunks/CcX7Oofq.js +1 -0
- package/dist/client/_app/immutable/chunks/Chn8RaCU2.js +1 -0
- package/dist/client/_app/immutable/chunks/CtmfIXf-.js +161 -0
- package/dist/client/_app/immutable/chunks/D0Co2O6p.js +7 -0
- package/dist/client/_app/immutable/chunks/D1O9pT8r.js +1 -0
- package/dist/client/_app/immutable/chunks/D1z0eUZA.js +3 -0
- package/dist/client/_app/immutable/chunks/D5KVydqU.js +1 -0
- package/dist/client/_app/immutable/chunks/D6jRqBbL.js +1 -0
- package/dist/client/_app/immutable/chunks/DDXR3Aw12.js +1 -0
- package/dist/client/_app/immutable/chunks/DG5yTEkY.js +1 -0
- package/dist/client/_app/immutable/chunks/DGHybmkM2.js +1 -0
- package/dist/client/_app/immutable/chunks/DITdNjTm.js +7 -0
- package/dist/client/_app/immutable/chunks/D_nZbl6c.js +162 -0
- package/dist/client/_app/immutable/chunks/Dg6QheNk.js +85 -0
- package/dist/client/_app/immutable/chunks/Dn1BfjD4.js +1 -0
- package/dist/client/_app/immutable/chunks/DpEnPnBc.js +1 -0
- package/dist/client/_app/immutable/chunks/Drl36yuV.js +40 -0
- package/dist/client/_app/immutable/chunks/ED9-GWAc2.js +10 -0
- package/dist/client/_app/immutable/chunks/FqbQrHcz2.js +321 -0
- package/dist/client/_app/immutable/chunks/PLsDE8Xa.js +24 -0
- package/dist/client/_app/immutable/chunks/PwGqCEPd.js +106 -0
- package/dist/client/_app/immutable/chunks/QmWylQL4.js +96 -0
- package/dist/client/_app/immutable/chunks/SbORYBuH.js +1 -0
- package/dist/client/_app/immutable/chunks/Vhh-h91d.js +257 -0
- package/dist/client/_app/immutable/chunks/Y3d8lUBM.js +120 -0
- package/dist/client/_app/immutable/chunks/aheLp5ES.js +32 -0
- package/dist/client/_app/immutable/chunks/dcFrWhgf.js +1 -0
- package/dist/client/_app/immutable/chunks/dqbyyLvi2.js +10 -0
- package/dist/client/_app/immutable/chunks/hFfQmBrk2.js +1 -0
- package/dist/client/_app/immutable/chunks/m89wIWMZ.js +1 -0
- package/dist/client/_app/immutable/chunks/mktnrgVa.js +1 -0
- package/dist/client/_app/immutable/chunks/qD2cSsUD2.js +1 -0
- package/dist/client/_app/immutable/chunks/v-V-aVm52.js +43 -0
- package/dist/client/_app/immutable/chunks/v97jXyQK.js +3 -0
- package/dist/client/_app/immutable/chunks/wCc4pE4l.js +3 -0
- package/dist/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/dist/client/_app/immutable/entry/app.BxBJhrll.js +2 -0
- package/dist/client/_app/immutable/entry/start.mAPciu1x.js +1 -0
- package/dist/client/_app/immutable/nodes/0.C7MOOY8s.js +1 -0
- package/dist/client/_app/immutable/nodes/1.C1SZKZS6.js +1 -0
- package/dist/client/_app/immutable/nodes/2.C9w6NQmI.js +28 -0
- package/dist/client/_app/version.json +1 -0
- package/dist/env.js +94 -0
- package/dist/handler.js +1494 -0
- package/dist/index.js +345 -0
- package/dist/server/chunks/0-lMxIppsX.js +40 -0
- package/dist/server/chunks/0-lMxIppsX.js.map +1 -0
- package/dist/server/chunks/1-CyLqCHnY.js +9 -0
- package/dist/server/chunks/1-CyLqCHnY.js.map +1 -0
- package/dist/server/chunks/2-B-CcMKoh.js +54 -0
- package/dist/server/chunks/2-B-CcMKoh.js.map +1 -0
- package/dist/server/chunks/Icon-B5VFrlh0.js +186 -0
- package/dist/server/chunks/Icon-B5VFrlh0.js.map +1 -0
- package/dist/server/chunks/_error.svelte-COifK9P1.js +48 -0
- package/dist/server/chunks/_error.svelte-COifK9P1.js.map +1 -0
- package/dist/server/chunks/_layout.svelte-DTQwWfEr.js +31 -0
- package/dist/server/chunks/_layout.svelte-DTQwWfEr.js.map +1 -0
- package/dist/server/chunks/_page.svelte-gMTRy91w.js +2206 -0
- package/dist/server/chunks/_page.svelte-gMTRy91w.js.map +1 -0
- package/dist/server/chunks/_server.ts-BBt3KS4Z.js +32 -0
- package/dist/server/chunks/_server.ts-BBt3KS4Z.js.map +1 -0
- package/dist/server/chunks/_server.ts-BaIDzhzq.js +26 -0
- package/dist/server/chunks/_server.ts-BaIDzhzq.js.map +1 -0
- package/dist/server/chunks/_server.ts-BtzVXaCw.js +29 -0
- package/dist/server/chunks/_server.ts-BtzVXaCw.js.map +1 -0
- package/dist/server/chunks/_server.ts-BuKSyj8m.js +37 -0
- package/dist/server/chunks/_server.ts-BuKSyj8m.js.map +1 -0
- package/dist/server/chunks/_server.ts-Cfw-nQ4-.js +31 -0
- package/dist/server/chunks/_server.ts-Cfw-nQ4-.js.map +1 -0
- package/dist/server/chunks/_server.ts-DlaxEvWB.js +53 -0
- package/dist/server/chunks/_server.ts-DlaxEvWB.js.map +1 -0
- package/dist/server/chunks/_server.ts-DnjaLdrg.js +195 -0
- package/dist/server/chunks/_server.ts-DnjaLdrg.js.map +1 -0
- package/dist/server/chunks/_server.ts-T58MO2wL.js +41 -0
- package/dist/server/chunks/_server.ts-T58MO2wL.js.map +1 -0
- package/dist/server/chunks/content-store-DPJsj8gD.js +5252 -0
- package/dist/server/chunks/content-store-DPJsj8gD.js.map +1 -0
- package/dist/server/chunks/docpage-BkHysAhp.js +5 -0
- package/dist/server/chunks/docpage-BkHysAhp.js.map +1 -0
- package/dist/server/chunks/exports-ZnEJ4gG9.js +758 -0
- package/dist/server/chunks/exports-ZnEJ4gG9.js.map +1 -0
- package/dist/server/chunks/hooks.server-nz527EC9.js +42 -0
- package/dist/server/chunks/hooks.server-nz527EC9.js.map +1 -0
- package/dist/server/chunks/internal-CvDbuC7W.js +5374 -0
- package/dist/server/chunks/internal-CvDbuC7W.js.map +1 -0
- package/dist/server/chunks/mdfile-DBiwGtNY.js +5 -0
- package/dist/server/chunks/mdfile-DBiwGtNY.js.map +1 -0
- package/dist/server/chunks/site-BfALkgJ-.js +52 -0
- package/dist/server/chunks/site-BfALkgJ-.js.map +1 -0
- package/dist/server/index.js +4356 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/manifest.js +103 -0
- package/dist/server/manifest.js.map +1 -0
- package/dist/shims.js +32 -0
- package/package.json +24 -16
- package/runtime/crawl.js +48 -0
- package/runtime/preview.js +42 -0
- package/runtime/serve.js +69 -0
- package/mdsvex.config.js +0 -261
- package/scripts/prepare-engine.mjs +0 -20
- package/src/app.d.ts +0 -17
- package/src/app.html +0 -39
- package/src/content/demo/api/meta.json +0 -5
- package/src/content/demo/api/pet/add-pet.md +0 -105
- package/src/content/demo/api/pet/delete-pet.md +0 -70
- package/src/content/demo/api/pet/find-by-status.md +0 -72
- package/src/content/demo/api/pet/find-by-tags.md +0 -64
- package/src/content/demo/api/pet/get-pet.md +0 -99
- package/src/content/demo/api/pet/meta.json +0 -15
- package/src/content/demo/api/pet/pet-object.md +0 -112
- package/src/content/demo/api/pet/update-pet-with-form.md +0 -69
- package/src/content/demo/api/pet/update-pet.md +0 -79
- package/src/content/demo/api/pet/upload-image.md +0 -79
- package/src/content/demo/api/store/delete-order.md +0 -62
- package/src/content/demo/api/store/get-order.md +0 -70
- package/src/content/demo/api/store/inventory.md +0 -54
- package/src/content/demo/api/store/meta.json +0 -5
- package/src/content/demo/api/store/order-object.md +0 -77
- package/src/content/demo/api/store/place-order.md +0 -83
- package/src/content/demo/api/user/create-user.md +0 -69
- package/src/content/demo/api/user/create-with-list.md +0 -57
- package/src/content/demo/api/user/delete-user.md +0 -61
- package/src/content/demo/api/user/get-user.md +0 -69
- package/src/content/demo/api/user/login.md +0 -80
- package/src/content/demo/api/user/logout.md +0 -45
- package/src/content/demo/api/user/meta.json +0 -14
- package/src/content/demo/api/user/update-user.md +0 -69
- package/src/content/demo/api/user/user-object.md +0 -85
- package/src/content/demo/changelog.md +0 -44
- package/src/content/demo/components/accordion.md +0 -70
- package/src/content/demo/components/api.md +0 -185
- package/src/content/demo/components/badge.md +0 -34
- package/src/content/demo/components/callout.md +0 -83
- package/src/content/demo/components/cards.md +0 -88
- package/src/content/demo/components/code-group.md +0 -55
- package/src/content/demo/components/columns.md +0 -42
- package/src/content/demo/components/frame.md +0 -51
- package/src/content/demo/components/icon.md +0 -54
- package/src/content/demo/components/kbd.md +0 -28
- package/src/content/demo/components/meta.json +0 -26
- package/src/content/demo/components/roadmap.md +0 -86
- package/src/content/demo/components/steps.md +0 -72
- package/src/content/demo/components/tabs.md +0 -146
- package/src/content/demo/components/tooltip.md +0 -44
- package/src/content/demo/components/tree.md +0 -83
- package/src/content/demo/components/type-table.md +0 -77
- package/src/content/demo/components/update.md +0 -48
- package/src/content/demo/components/video.md +0 -56
- package/src/content/demo/components/webhooks.md +0 -109
- package/src/content/demo/components/websockets.md +0 -101
- package/src/content/demo/configuration/ai.md +0 -40
- package/src/content/demo/configuration/cli.md +0 -48
- package/src/content/demo/configuration/deployment.md +0 -105
- package/src/content/demo/configuration/index.md +0 -92
- package/src/content/demo/configuration/layouts.md +0 -51
- package/src/content/demo/configuration/meta.json +0 -5
- package/src/content/demo/configuration/navigation.md +0 -167
- package/src/content/demo/configuration/openapi.md +0 -103
- package/src/content/demo/configuration/search.md +0 -36
- package/src/content/demo/index.md +0 -59
- package/src/content/demo/installation.md +0 -66
- package/src/content/demo/meta.json +0 -15
- package/src/content/demo/quick-start.md +0 -47
- package/src/content/demo/theming/advanced.md +0 -116
- package/src/content/demo/theming/code.md +0 -66
- package/src/content/demo/theming/colors.md +0 -103
- package/src/content/demo/theming/index.md +0 -88
- package/src/content/demo/theming/layout.md +0 -71
- package/src/content/demo/theming/meta.json +0 -5
- package/src/content/demo/theming/themes.md +0 -99
- package/src/content/demo/theming/typography.md +0 -83
- package/src/content/demo/writing/code-blocks.md +0 -154
- package/src/content/demo/writing/diagrams.md +0 -44
- package/src/content/demo/writing/frontmatter.md +0 -33
- package/src/content/demo/writing/markdown.md +0 -62
- package/src/content/demo/writing/meta.json +0 -5
- package/src/hooks.server.ts +0 -49
- package/src/lib/assets/favicon.svg +0 -1
- package/src/lib/base.ts +0 -12
- package/src/lib/components/DynamicIcon.svelte +0 -41
- package/src/lib/components/docs/Analytics.svelte +0 -38
- package/src/lib/components/docs/Banner.svelte +0 -44
- package/src/lib/components/docs/Breadcrumbs.svelte +0 -38
- package/src/lib/components/docs/CopyPageMenu.svelte +0 -119
- package/src/lib/components/docs/DocsLayout.svelte +0 -192
- package/src/lib/components/docs/Footer.svelte +0 -60
- package/src/lib/components/docs/Mermaid.svelte +0 -39
- package/src/lib/components/docs/Navbar.svelte +0 -144
- package/src/lib/components/docs/PageMeta.svelte +0 -35
- package/src/lib/components/docs/PageNav.svelte +0 -44
- package/src/lib/components/docs/SearchDialog.svelte +0 -182
- package/src/lib/components/docs/Sidebar.svelte +0 -85
- package/src/lib/components/docs/SidebarDropdown.svelte +0 -56
- package/src/lib/components/docs/SidebarFooterLinks.svelte +0 -19
- package/src/lib/components/docs/SidebarGroup.svelte +0 -54
- package/src/lib/components/docs/SidebarLink.svelte +0 -67
- package/src/lib/components/docs/TableOfContents.svelte +0 -77
- package/src/lib/components/docs/ThemeToggle.svelte +0 -19
- package/src/lib/components/docs/VersionSwitcher.svelte +0 -80
- package/src/lib/components/kit/Accordion.svelte +0 -60
- package/src/lib/components/kit/AccordionGroup.svelte +0 -13
- package/src/lib/components/kit/Badge.svelte +0 -32
- package/src/lib/components/kit/Callout.svelte +0 -51
- package/src/lib/components/kit/Card.svelte +0 -72
- package/src/lib/components/kit/CardGroup.svelte +0 -21
- package/src/lib/components/kit/CodeGroup.svelte +0 -65
- package/src/lib/components/kit/Columns.svelte +0 -26
- package/src/lib/components/kit/Event.svelte +0 -23
- package/src/lib/components/kit/EventList.svelte +0 -9
- package/src/lib/components/kit/File.svelte +0 -15
- package/src/lib/components/kit/Folder.svelte +0 -46
- package/src/lib/components/kit/Frame.svelte +0 -81
- package/src/lib/components/kit/Icon.svelte +0 -17
- package/src/lib/components/kit/Kbd.svelte +0 -11
- package/src/lib/components/kit/Roadmap.svelte +0 -15
- package/src/lib/components/kit/RoadmapItem.svelte +0 -109
- package/src/lib/components/kit/Step.svelte +0 -63
- package/src/lib/components/kit/Steps.svelte +0 -16
- package/src/lib/components/kit/Tab.svelte +0 -27
- package/src/lib/components/kit/Tabs.svelte +0 -75
- package/src/lib/components/kit/Tooltip.svelte +0 -33
- package/src/lib/components/kit/Tree.svelte +0 -11
- package/src/lib/components/kit/TypeTable.svelte +0 -187
- package/src/lib/components/kit/Update.svelte +0 -32
- package/src/lib/components/kit/Video.svelte +0 -64
- package/src/lib/components/kit/accordion-context.ts +0 -1
- package/src/lib/components/kit/api/Api.svelte +0 -80
- package/src/lib/components/kit/api/ApiExamplePanel.svelte +0 -100
- package/src/lib/components/kit/api/ApiField.svelte +0 -124
- package/src/lib/components/kit/api/Channel.svelte +0 -121
- package/src/lib/components/kit/api/Endpoint.svelte +0 -116
- package/src/lib/components/kit/api/Enum.svelte +0 -44
- package/src/lib/components/kit/api/EnumValues.svelte +0 -35
- package/src/lib/components/kit/api/Expandable.svelte +0 -70
- package/src/lib/components/kit/api/Message.svelte +0 -67
- package/src/lib/components/kit/api/ObjectExample.svelte +0 -11
- package/src/lib/components/kit/api/RequestExample.svelte +0 -11
- package/src/lib/components/kit/api/ResponseExample.svelte +0 -11
- package/src/lib/components/kit/api/Webhook.svelte +0 -115
- package/src/lib/components/kit/api/api-context.ts +0 -15
- package/src/lib/components/kit/tabs-context.ts +0 -8
- package/src/lib/components/kit/tabs-store.svelte.ts +0 -28
- package/src/lib/config/site.ts +0 -34
- package/src/lib/content/index.ts +0 -50
- package/src/lib/content/raw.ts +0 -21
- package/src/lib/content/tree.ts +0 -169
- package/src/lib/index.ts +0 -79
- package/src/lib/nav-match.ts +0 -23
- package/src/lib/openapi/generate.ts +0 -629
- package/src/lib/server/og.ts +0 -140
- package/src/lib/state/search.svelte.ts +0 -9
- package/src/lib/state/theme.svelte.ts +0 -58
- package/src/lib/types.ts +0 -216
- package/src/params/docpage.ts +0 -3
- package/src/params/mdfile.ts +0 -3
- package/src/routes/+error.svelte +0 -46
- package/src/routes/+layout.svelte +0 -25
- package/src/routes/[...path=mdfile]/+server.ts +0 -21
- package/src/routes/[...slug=docpage]/+page.svelte +0 -63
- package/src/routes/[...slug=docpage]/+page.ts +0 -44
- package/src/routes/layout.css +0 -897
- package/src/routes/llms-full.txt/+server.ts +0 -22
- package/src/routes/llms.txt/+server.ts +0 -20
- package/src/routes/og/[...slug]/+server.ts +0 -77
- package/src/routes/rss.xml/+server.ts +0 -65
- package/src/routes/search.json/+server.ts +0 -54
- package/src/routes/sitemap.xml/+server.ts +0 -21
- package/svelte.config.js +0 -35
- package/tsconfig.json +0 -20
- package/vite.config.ts +0 -67
- /package/{static → dist/client}/favicon-dark.svg +0 -0
- /package/{static → dist/client}/favicon-light.svg +0 -0
- /package/{static → dist/client}/favicon.svg +0 -0
- /package/{static → dist/client}/fonts/geist-400.ttf +0 -0
- /package/{static → dist/client}/fonts/geist-600.ttf +0 -0
- /package/{static → dist/client}/fonts/geist-700.ttf +0 -0
- /package/{static → dist/client}/og-image.png +0 -0
- /package/{static → dist/client}/robots.txt +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: CLI
|
|
3
|
-
description: The axerity command.
|
|
4
|
-
icon: code
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# CLI
|
|
8
|
-
|
|
9
|
-
The `axerity` command scaffolds, runs, and builds your site. It carries the whole
|
|
10
|
-
engine, so your project only holds content and config.
|
|
11
|
-
|
|
12
|
-
## Commands
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
axerity init [dir] # scaffold a new site (defaults to the current folder)
|
|
16
|
-
axerity dev # start the dev server
|
|
17
|
-
axerity build # build the static site
|
|
18
|
-
axerity preview # preview the production build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Run them with `pnpm dlx @axerity/cli <command>` (or `npx @axerity/cli <command>`),
|
|
22
|
-
or add `@axerity/cli` as a dev dependency and call `axerity` through your scripts.
|
|
23
|
-
|
|
24
|
-
## init
|
|
25
|
-
|
|
26
|
-
`axerity init my-docs` creates a starter site: an `axerity.json`, a `docs/`
|
|
27
|
-
folder with a couple of pages and a `meta.json`, and a `.gitignore`. Leave off
|
|
28
|
-
the folder name to scaffold into the current directory.
|
|
29
|
-
|
|
30
|
-
## dev
|
|
31
|
-
|
|
32
|
-
`axerity dev` serves your site with live reload. Editing a Markdown file or
|
|
33
|
-
`axerity.json` updates the browser immediately. Pass through any Vite flag, for
|
|
34
|
-
example `axerity dev --port 4000`.
|
|
35
|
-
|
|
36
|
-
## build
|
|
37
|
-
|
|
38
|
-
`axerity build` produces a static site in `build/`. Every page is prerendered to
|
|
39
|
-
HTML, and the search index, `llms.txt`, sitemap, RSS feed, and OpenGraph images
|
|
40
|
-
are all written out, ready to host anywhere.
|
|
41
|
-
|
|
42
|
-
## How it works
|
|
43
|
-
|
|
44
|
-
The engine runs from its own install, not from your repo. When you run a command,
|
|
45
|
-
Axerity reads your `docs/` and `axerity.json` and renders against them, then
|
|
46
|
-
writes the result to `build/` in your project. Your content is the source of
|
|
47
|
-
truth and nothing else in your folder is touched, so there is no workspace to
|
|
48
|
-
gitignore beyond `build/`.
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Deployment
|
|
3
|
-
description: Build and host your docs.
|
|
4
|
-
icon: rocket
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Deployment
|
|
8
|
-
|
|
9
|
-
`axerity build` writes a plain folder of static files to `build/`. Every page is
|
|
10
|
-
prerendered to HTML, and the search index, `.md` URLs, `llms.txt`, sitemap, RSS
|
|
11
|
-
feed, and OpenGraph images are all written out. Any static host can serve it, no
|
|
12
|
-
server required.
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
axerity build # -> build/
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Most hosts write `.html` files (`installation.html`) but link to clean URLs
|
|
19
|
-
(`/installation`), so the one thing to get right per host is **clean URL**
|
|
20
|
-
handling. Each guide below covers it.
|
|
21
|
-
|
|
22
|
-
## Vercel
|
|
23
|
-
|
|
24
|
-
Add a `vercel.json` so Vercel serves the static output instead of looking for a
|
|
25
|
-
SvelteKit server build:
|
|
26
|
-
|
|
27
|
-
```json title="vercel.json"
|
|
28
|
-
{
|
|
29
|
-
"framework": null,
|
|
30
|
-
"buildCommand": "axerity build",
|
|
31
|
-
"outputDirectory": "build",
|
|
32
|
-
"cleanUrls": true
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Push the repo and Vercel does the rest. If pages still 404, open Project →
|
|
37
|
-
Settings and set the Framework Preset to **Other**.
|
|
38
|
-
|
|
39
|
-
## Cloudflare Pages
|
|
40
|
-
|
|
41
|
-
In the Pages project settings:
|
|
42
|
-
|
|
43
|
-
- **Build command:** `npx @axerity/cli build`
|
|
44
|
-
- **Build output directory:** `build`
|
|
45
|
-
- **Framework preset:** None
|
|
46
|
-
|
|
47
|
-
Cloudflare serves clean URLs automatically.
|
|
48
|
-
|
|
49
|
-
## Netlify
|
|
50
|
-
|
|
51
|
-
```toml title="netlify.toml"
|
|
52
|
-
[build]
|
|
53
|
-
command = "npx @axerity/cli build"
|
|
54
|
-
publish = "build"
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Netlify serves clean URLs (pretty URLs) by default.
|
|
58
|
-
|
|
59
|
-
## GitHub Pages
|
|
60
|
-
|
|
61
|
-
Build, then publish the `build/` folder (for example with a GitHub Action that
|
|
62
|
-
runs `npx @axerity/cli build` and uploads `build/` as the Pages artifact).
|
|
63
|
-
|
|
64
|
-
Project sites are served from `https://<user>.github.io/<repo>/`, a sub-path, so
|
|
65
|
-
set the base in `axerity.json`:
|
|
66
|
-
|
|
67
|
-
```json title="axerity.json"
|
|
68
|
-
{
|
|
69
|
-
"basePath": "/<repo>"
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
User and organization sites (served from the domain root) need no `basePath`.
|
|
74
|
-
|
|
75
|
-
## Nginx
|
|
76
|
-
|
|
77
|
-
Serve `build/` and fall back to the `.html` file for clean URLs:
|
|
78
|
-
|
|
79
|
-
```nginx
|
|
80
|
-
server {
|
|
81
|
-
listen 80;
|
|
82
|
-
server_name docs.example.com;
|
|
83
|
-
root /var/www/build;
|
|
84
|
-
|
|
85
|
-
location / {
|
|
86
|
-
try_files $uri $uri.html $uri/index.html /404.html;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Caddy
|
|
92
|
-
|
|
93
|
-
```caddy
|
|
94
|
-
docs.example.com {
|
|
95
|
-
root * /var/www/build
|
|
96
|
-
try_files {path} {path}.html {path}/index.html
|
|
97
|
-
file_server
|
|
98
|
-
}
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Any other host
|
|
102
|
-
|
|
103
|
-
Upload the contents of `build/` and point the host at it. Configure two things if
|
|
104
|
-
you can: serve `<name>.html` for `/<name>` (clean URLs), and use `404.html` as
|
|
105
|
-
the not-found page.
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The config file
|
|
3
|
-
description: Everything you set in axerity.json.
|
|
4
|
-
icon: sliders
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The config file
|
|
8
|
-
|
|
9
|
-
The whole site is configured from one file at the project root: `axerity.json`.
|
|
10
|
-
You never edit code to change the site. Drop in Markdown, set up your
|
|
11
|
-
`meta.json` files for ordering, and edit `axerity.json` for everything global.
|
|
12
|
-
|
|
13
|
-
## Editor autocomplete
|
|
14
|
-
|
|
15
|
-
The repo ships a JSON schema. Point your config at it on the first line and your
|
|
16
|
-
editor gives you autocomplete and validation for every field:
|
|
17
|
-
|
|
18
|
-
```json title="axerity.json"
|
|
19
|
-
{
|
|
20
|
-
"$schema": "./axerity.schema.json"
|
|
21
|
-
}
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## A full example
|
|
25
|
-
|
|
26
|
-
```json title="axerity.json"
|
|
27
|
-
{
|
|
28
|
-
"$schema": "./axerity.schema.json",
|
|
29
|
-
"name": "Axerity",
|
|
30
|
-
"description": "A documentation site generator built with Svelte.",
|
|
31
|
-
"url": "https://axerity.com",
|
|
32
|
-
"github": "https://github.com/your/repo",
|
|
33
|
-
"editLink": "https://github.com/your/repo/edit/main/src/content/docs",
|
|
34
|
-
"theme": "stripe",
|
|
35
|
-
"layout": "boxed",
|
|
36
|
-
"sidebar": { "variant": "floating" },
|
|
37
|
-
"logo": { "light": "/logo-light.svg", "dark": "/logo-dark.svg" },
|
|
38
|
-
"og": { "enabled": true },
|
|
39
|
-
"banner": { "text": "v1.0 is out", "href": "/docs", "id": "v1", "dismissible": true },
|
|
40
|
-
"versions": [{ "label": "v1.0", "href": "/docs" }],
|
|
41
|
-
"dropdowns": [
|
|
42
|
-
{
|
|
43
|
-
"label": "Guides",
|
|
44
|
-
"icon": "book-open",
|
|
45
|
-
"href": "/docs",
|
|
46
|
-
"match": "/docs",
|
|
47
|
-
"tabs": [{ "title": "Documentation", "href": "/docs", "match": "/docs" }]
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"sidebarLinks": [{ "title": "Support", "href": "https://example.com/support" }],
|
|
51
|
-
"social": [{ "icon": "rss", "href": "/rss.xml" }],
|
|
52
|
-
"footer": { "note": "Built with Axerity", "links": [{ "title": "Status", "href": "/status" }] },
|
|
53
|
-
"analytics": { "plausible": "axerity.com" },
|
|
54
|
-
"topNav": [{ "title": "Docs", "href": "/docs" }]
|
|
55
|
-
}
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Fields
|
|
59
|
-
|
|
60
|
-
| Field | Type | What it does |
|
|
61
|
-
| -------------- | ------------------------ | ------------------------------------------------------------------------------------------- |
|
|
62
|
-
| `name` | string | Site name, used in the page title and navbar |
|
|
63
|
-
| `description` | string | Site description, used for SEO and `llms.txt` |
|
|
64
|
-
| `url` | string | Canonical site URL; enables absolute links in sitemap, RSS, and OpenGraph |
|
|
65
|
-
| `github` | string | Repo URL, shown as the GitHub icon in the navbar and footer |
|
|
66
|
-
| `editLink` | string | Base URL for the "Edit this page" link; the source path is appended |
|
|
67
|
-
| `theme` | string | A built-in [theme](/theming/themes) preset |
|
|
68
|
-
| `brand` | object | Custom `{ accent, radius }` that override the theme. See [Colors](/theming/colors) |
|
|
69
|
-
| `layout` | string | `flat` (default) or `boxed`. See [Layouts](/configuration/layouts) |
|
|
70
|
-
| `basePath` | string | Serve the whole site under a sub-path like `/docs`. Empty (default) is the root |
|
|
71
|
-
| `sidebar` | object | Sidebar appearance: `{ "variant": "flush" \| "card" \| "floating" }` |
|
|
72
|
-
| `logo` | object | Navbar logo `{ light, dark, alt, href }`. Local SVGs are inlined |
|
|
73
|
-
| `og` | object | Per-page OpenGraph image generation `{ enabled, background, foreground, … }` |
|
|
74
|
-
| `ogImage` | string | Static OG image path, used when `og.enabled` is off |
|
|
75
|
-
| `banner` | object | Announcement bar `{ text, href, id, dismissible }` |
|
|
76
|
-
| `analytics` | object | `{ plausible, googleAnalytics }` scripts injected on every page |
|
|
77
|
-
| `topNav` | array | Fallback top nav links when no dropdowns are set |
|
|
78
|
-
| `versions` | array | Versions shown in the navbar version switcher |
|
|
79
|
-
| `dropdowns` | array | Areas that swap the whole sidebar. See [Navigation](/configuration/navigation) |
|
|
80
|
-
| `openapi` | string, object, or array | Generate an API reference from an OpenAPI spec. See [API reference](/configuration/openapi) |
|
|
81
|
-
| `sidebarLinks` | array | Links pinned to the bottom of the sidebar |
|
|
82
|
-
| `social` | array | Social links shown in the footer `{ icon, href, label }` |
|
|
83
|
-
| `footer` | object | Footer `{ note, links }` |
|
|
84
|
-
|
|
85
|
-
Every field except `name` and `topNav` is optional. Leave a field out and the
|
|
86
|
-
related UI does not render.
|
|
87
|
-
|
|
88
|
-
## Icons
|
|
89
|
-
|
|
90
|
-
Anywhere a config field takes an `icon`, use a [Lucide](https://lucide.dev) icon
|
|
91
|
-
name in kebab case, such as `book-open`, `credit-card`, or `git-branch`. Any
|
|
92
|
-
Lucide icon works, so you never register icons by hand.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Layouts
|
|
3
|
-
description: Page width and the API layout.
|
|
4
|
-
icon: layout-grid
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Layouts
|
|
8
|
-
|
|
9
|
-
## Flat and boxed
|
|
10
|
-
|
|
11
|
-
The whole shell has two modes, set with `layout` in `axerity.json`:
|
|
12
|
-
|
|
13
|
-
```json title="axerity.json"
|
|
14
|
-
{
|
|
15
|
-
"layout": "flat"
|
|
16
|
-
}
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
- `flat` (default) is full width. The sidebar sits at the left edge.
|
|
20
|
-
- `boxed` centers the shell in a max-width container on wide screens.
|
|
21
|
-
|
|
22
|
-
## The doc layout
|
|
23
|
-
|
|
24
|
-
Normal pages use the three column layout: sidebar on the left, content in the
|
|
25
|
-
middle, and a table of contents on the right. The table of contents tracks your
|
|
26
|
-
scroll position. It hides on narrow screens, and the sidebar becomes a drawer.
|
|
27
|
-
|
|
28
|
-
## The API layout
|
|
29
|
-
|
|
30
|
-
Set `layout: api` in a page's frontmatter to switch to the API layout. It is
|
|
31
|
-
wider, drops the table of contents, and gives you a two column layout with the
|
|
32
|
-
content on the left and sticky request and response examples on the right.
|
|
33
|
-
|
|
34
|
-
```md
|
|
35
|
-
---
|
|
36
|
-
title: Create a user
|
|
37
|
-
layout: api
|
|
38
|
-
---
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
See the [API reference components](/api/pet/pet-object) for what you can
|
|
42
|
-
put on these pages.
|
|
43
|
-
|
|
44
|
-
## On every page
|
|
45
|
-
|
|
46
|
-
Both layouts include a few things automatically:
|
|
47
|
-
|
|
48
|
-
- A breadcrumb trail above the title.
|
|
49
|
-
- A copy page button. See [AI and LLMs](/configuration/ai).
|
|
50
|
-
- Previous and next links at the bottom.
|
|
51
|
-
- A footer.
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Navigation
|
|
3
|
-
description: Sidebar, groups, dropdowns, tabs, and ordering.
|
|
4
|
-
icon: list
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Navigation
|
|
8
|
-
|
|
9
|
-
Your sidebar is built from the folder structure under `src/content/docs`, and
|
|
10
|
-
ordered by `meta.json` files. The top navigation and area switching come from
|
|
11
|
-
`axerity.json`.
|
|
12
|
-
|
|
13
|
-
## Folders become sidebar sections
|
|
14
|
-
|
|
15
|
-
Each top-level folder under `src/content/docs` becomes a section. Files inside a
|
|
16
|
-
folder become its pages. Nest a folder inside another and it becomes a
|
|
17
|
-
collapsible group.
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
content/docs/
|
|
21
|
-
index.md -> /docs
|
|
22
|
-
installation.md -> /docs/installation
|
|
23
|
-
components/
|
|
24
|
-
callout.md -> /docs/components/callout
|
|
25
|
-
api/
|
|
26
|
-
users/
|
|
27
|
-
get-user.md -> /docs/api/users/get-user (nested group)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## meta.json
|
|
31
|
-
|
|
32
|
-
Every folder can have a `meta.json` that sets its title, icon, and the order of
|
|
33
|
-
its pages.
|
|
34
|
-
|
|
35
|
-
```json title="meta.json"
|
|
36
|
-
{
|
|
37
|
-
"title": "Getting Started",
|
|
38
|
-
"icon": "rocket",
|
|
39
|
-
"pages": ["index", "installation", "quick-start"]
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
| Field | What it does |
|
|
44
|
-
| ------------- | ------------------------------------------------------------- |
|
|
45
|
-
| `title` | The section or group label |
|
|
46
|
-
| `icon` | A Lucide icon name shown next to the label |
|
|
47
|
-
| `pages` | Order of pages by slug. Anything left out is added at the end |
|
|
48
|
-
| `defaultOpen` | For a nested group, expand it by default |
|
|
49
|
-
|
|
50
|
-
Pages not listed in `pages` are appended in alphabetical order, so you only have
|
|
51
|
-
to list the ones you care about.
|
|
52
|
-
|
|
53
|
-
## Page frontmatter
|
|
54
|
-
|
|
55
|
-
Each page sets its own metadata in frontmatter:
|
|
56
|
-
|
|
57
|
-
```md
|
|
58
|
-
---
|
|
59
|
-
title: Installation
|
|
60
|
-
description: Get Axerity running locally.
|
|
61
|
-
icon: download
|
|
62
|
-
badge: New
|
|
63
|
-
---
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
| Field | What it does |
|
|
67
|
-
| ------------- | ------------------------------------------------------ |
|
|
68
|
-
| `title` | Sidebar label and page title |
|
|
69
|
-
| `description` | Used for SEO, search, and prev/next |
|
|
70
|
-
| `icon` | Lucide icon next to the sidebar link |
|
|
71
|
-
| `badge` | Small pill next to the title, such as `New` |
|
|
72
|
-
| `layout` | `api` switches to the wide API layout |
|
|
73
|
-
| `method` | An HTTP method shown as a colored badge in the sidebar |
|
|
74
|
-
|
|
75
|
-
## Dropdowns and tabs
|
|
76
|
-
|
|
77
|
-
A dropdown swaps the entire sidebar. Use it to split a site into areas like
|
|
78
|
-
Guides and API Reference. Each dropdown can have its own top-nav tabs.
|
|
79
|
-
|
|
80
|
-
```json title="axerity.json"
|
|
81
|
-
{
|
|
82
|
-
"dropdowns": [
|
|
83
|
-
{
|
|
84
|
-
"label": "Guides",
|
|
85
|
-
"icon": "book-open",
|
|
86
|
-
"href": "/docs",
|
|
87
|
-
"match": "/docs",
|
|
88
|
-
"tabs": [
|
|
89
|
-
{ "title": "Documentation", "href": "/docs", "match": "/docs" },
|
|
90
|
-
{ "title": "Components", "href": "/docs/components/callout", "match": "/docs/components" }
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"label": "API Reference",
|
|
95
|
-
"icon": "code",
|
|
96
|
-
"href": "/docs/api/users/get-user",
|
|
97
|
-
"match": "/docs/api"
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
- `href` is where the link goes.
|
|
104
|
-
- `match` is the path prefix that marks a dropdown or tab as active. The longest
|
|
105
|
-
match wins, so nested areas take priority.
|
|
106
|
-
- The sidebar shows only the sections under the active dropdown, and the navbar
|
|
107
|
-
shows only that dropdown's tabs.
|
|
108
|
-
|
|
109
|
-
## Sidebar links
|
|
110
|
-
|
|
111
|
-
Pin external links to the bottom of the sidebar. They stay in place while the
|
|
112
|
-
nav scrolls, and open in a new tab.
|
|
113
|
-
|
|
114
|
-
```json title="axerity.json"
|
|
115
|
-
{
|
|
116
|
-
"sidebarLinks": [
|
|
117
|
-
{ "title": "Support", "href": "https://example.com/support" },
|
|
118
|
-
{ "title": "Dashboard", "href": "https://app.example.com" }
|
|
119
|
-
]
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
## Versions
|
|
124
|
-
|
|
125
|
-
Add a version switcher to the navbar. Each entry has a `label` and an `href`.
|
|
126
|
-
|
|
127
|
-
```json title="axerity.json"
|
|
128
|
-
{
|
|
129
|
-
"versions": [
|
|
130
|
-
{ "label": "v2.0", "href": "/v2" },
|
|
131
|
-
{ "label": "v1.0", "href": "/v1" }
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
An `href` can point anywhere, so the simplest setup sends old versions to a
|
|
137
|
-
separate site:
|
|
138
|
-
|
|
139
|
-
```json title="axerity.json"
|
|
140
|
-
{
|
|
141
|
-
"versions": [
|
|
142
|
-
{ "label": "v2.0", "href": "/" },
|
|
143
|
-
{ "label": "v1.0", "href": "https://v1.example.com" }
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### Versioned content
|
|
149
|
-
|
|
150
|
-
When a version's `href` is a local path like `/v2`, put that version's pages in
|
|
151
|
-
a matching top-level folder. Each folder is its own independent content tree
|
|
152
|
-
with its own sidebar.
|
|
153
|
-
|
|
154
|
-
```
|
|
155
|
-
content/docs/
|
|
156
|
-
v2/
|
|
157
|
-
index.md -> /v2
|
|
158
|
-
installation.md -> /v2/installation
|
|
159
|
-
v1/
|
|
160
|
-
index.md -> /v1
|
|
161
|
-
installation.md -> /v1/installation
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
The switcher then keeps the reader on the same page across versions. Moving from
|
|
165
|
-
`/v2/installation` to v1 lands on `/v1/installation` when that page exists, and
|
|
166
|
-
falls back to the version's index when it does not. The site root redirects to
|
|
167
|
-
the first version in the list.
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: API reference
|
|
3
|
-
description: Generate a full API reference from an OpenAPI spec.
|
|
4
|
-
icon: webhook
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Callout } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# API reference
|
|
12
|
-
|
|
13
|
-
Point Axerity at an OpenAPI 3 spec and it generates the whole reference for you:
|
|
14
|
-
a page per operation with parameters, request and response bodies, examples, auth,
|
|
15
|
-
and a page per schema. The pages use the same [API components](/components/api)
|
|
16
|
-
you would write by hand, so they match the rest of your docs.
|
|
17
|
-
|
|
18
|
-
## Point at a spec
|
|
19
|
-
|
|
20
|
-
Add an `openapi` field to `axerity.json`. The simplest form is a path or URL:
|
|
21
|
-
|
|
22
|
-
```json title="axerity.json"
|
|
23
|
-
{
|
|
24
|
-
"openapi": "./openapi.json"
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
The spec can be a local file or a URL, in JSON or YAML:
|
|
29
|
-
|
|
30
|
-
```json title="axerity.json"
|
|
31
|
-
{
|
|
32
|
-
"openapi": "https://api.example.com/openapi.yaml"
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Pages are written into your content tree the next time you run `axerity dev` or
|
|
37
|
-
`axerity build`, and they regenerate when a local spec changes.
|
|
38
|
-
|
|
39
|
-
<Callout type="info">
|
|
40
|
-
|
|
41
|
-
Generated pages are managed for you. They are added to `.gitignore` so they do
|
|
42
|
-
not clutter your repo, and they are rebuilt from the spec every time.
|
|
43
|
-
|
|
44
|
-
</Callout>
|
|
45
|
-
|
|
46
|
-
## Choose where it lands
|
|
47
|
-
|
|
48
|
-
Use the object form to set the output folder and the section title:
|
|
49
|
-
|
|
50
|
-
```json title="axerity.json"
|
|
51
|
-
{
|
|
52
|
-
"openapi": {
|
|
53
|
-
"spec": "./openapi.json",
|
|
54
|
-
"output": "api-reference",
|
|
55
|
-
"title": "API Reference"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
| Field | Type | What it does |
|
|
61
|
-
| -------- | ------ | ----------------------------------------------------- |
|
|
62
|
-
| `spec` | string | Local path or URL to an OpenAPI 3 spec (JSON or YAML) |
|
|
63
|
-
| `output` | string | Content folder for the generated pages |
|
|
64
|
-
| `title` | string | Section title (defaults to the spec's `info.title`) |
|
|
65
|
-
|
|
66
|
-
With `output: "api-reference"`, an operation tagged `Pet` lands at
|
|
67
|
-
`/api-reference/pet/<operationId>` and each schema at
|
|
68
|
-
`/api-reference/schemas/<name>`.
|
|
69
|
-
|
|
70
|
-
## Group several specs
|
|
71
|
-
|
|
72
|
-
Pass an array to generate more than one reference, each into its own folder:
|
|
73
|
-
|
|
74
|
-
```json title="axerity.json"
|
|
75
|
-
{
|
|
76
|
-
"openapi": [
|
|
77
|
-
{ "spec": "./checkout.json", "output": "checkout-api", "title": "Checkout" },
|
|
78
|
-
{ "spec": "./storefront.json", "output": "storefront-api", "title": "Storefront" }
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Show it as a navbar tab
|
|
84
|
-
|
|
85
|
-
The generated pages are ordinary docs, so you surface them like any other area:
|
|
86
|
-
add a [dropdown](/configuration/navigation) that points at the output folder.
|
|
87
|
-
Clicking the tab swaps the sidebar to the API reference.
|
|
88
|
-
|
|
89
|
-
```json title="axerity.json"
|
|
90
|
-
{
|
|
91
|
-
"dropdowns": [
|
|
92
|
-
{
|
|
93
|
-
"label": "API Reference",
|
|
94
|
-
"icon": "code",
|
|
95
|
-
"href": "/api-reference/pet/getpetbyid",
|
|
96
|
-
"match": "/api-reference"
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Set `href` to any page inside the folder (a good landing operation), and `match`
|
|
103
|
-
to the folder so the tab highlights while the reader is anywhere in the reference.
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Search
|
|
3
|
-
description: Full text search across your docs.
|
|
4
|
-
icon: search
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Search
|
|
8
|
-
|
|
9
|
-
Axerity ships with full text search powered by [Orama](https://orama.com). Press
|
|
10
|
-
`Cmd K` or `Ctrl K`, or click the search box in the navbar, to open it.
|
|
11
|
-
|
|
12
|
-
## How it works
|
|
13
|
-
|
|
14
|
-
The search index is built at compile time. Every page's title, description, and
|
|
15
|
-
text is collected into a single JSON file. When you open search the first time,
|
|
16
|
-
that file is fetched and loaded into Orama in the browser. Searching then runs
|
|
17
|
-
locally, with no server.
|
|
18
|
-
|
|
19
|
-
## What is indexed
|
|
20
|
-
|
|
21
|
-
- Page titles, with the highest weight.
|
|
22
|
-
- Page descriptions from frontmatter.
|
|
23
|
-
- The page body text, with Markdown and code stripped out.
|
|
24
|
-
- The section name, shown next to each result.
|
|
25
|
-
|
|
26
|
-
There is nothing to configure. Add pages and they are searchable on the next
|
|
27
|
-
build.
|
|
28
|
-
|
|
29
|
-
## Keyboard
|
|
30
|
-
|
|
31
|
-
| Key | Action |
|
|
32
|
-
| -------------- | ----------------- |
|
|
33
|
-
| `Cmd/Ctrl + K` | Open or close |
|
|
34
|
-
| `Up` / `Down` | Move between hits |
|
|
35
|
-
| `Enter` | Open the result |
|
|
36
|
-
| `Esc` | Close |
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Introduction
|
|
3
|
-
description: A documentation site generator for Svelte.
|
|
4
|
-
icon: home
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Card, CardGroup, Callout } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Introduction
|
|
12
|
-
|
|
13
|
-
Axerity is a documentation site generator for Svelte. You write your content in
|
|
14
|
-
Markdown, drop in Svelte components when you need them, and get a fast static
|
|
15
|
-
site with search, navigation, and a clean theme.
|
|
16
|
-
|
|
17
|
-
## What you get
|
|
18
|
-
|
|
19
|
-
- File based content. Add a Markdown file and it shows up in the sidebar.
|
|
20
|
-
- A `meta.json` in each folder to set titles, icons, and ordering.
|
|
21
|
-
- Code blocks with syntax highlighting, copy buttons, titles, line highlighting,
|
|
22
|
-
and line numbers.
|
|
23
|
-
- Components you can use right inside Markdown: callouts, cards, tabs, steps,
|
|
24
|
-
accordions, type tables, and a layout for API reference pages.
|
|
25
|
-
- Light and dark themes, driven entirely by CSS variables.
|
|
26
|
-
- Full text search, built at compile time.
|
|
27
|
-
|
|
28
|
-
<Callout type="tip">
|
|
29
|
-
|
|
30
|
-
The whole site is configured from one `axerity.json` file. Drop in Markdown,
|
|
31
|
-
set up your `meta.json` files, and you never have to touch the code.
|
|
32
|
-
|
|
33
|
-
</Callout>
|
|
34
|
-
|
|
35
|
-
## Get started
|
|
36
|
-
|
|
37
|
-
<CardGroup cols={2}>
|
|
38
|
-
<Card title="Installation" icon="download" href="/installation">
|
|
39
|
-
|
|
40
|
-
Get Axerity running locally in about a minute.
|
|
41
|
-
|
|
42
|
-
</Card>
|
|
43
|
-
<Card title="Quick Start" icon="rocket" href="/quick-start">
|
|
44
|
-
|
|
45
|
-
Write your first page and watch the sidebar fill in.
|
|
46
|
-
|
|
47
|
-
</Card>
|
|
48
|
-
<Card title="Components" icon="blocks" href="/components/callout">
|
|
49
|
-
|
|
50
|
-
Browse the components you can use in your pages.
|
|
51
|
-
|
|
52
|
-
</Card>
|
|
53
|
-
<Card title="API Reference" icon="code" href="/api/pet/pet-object">
|
|
54
|
-
|
|
55
|
-
See the layout built for documenting an API.
|
|
56
|
-
|
|
57
|
-
</Card>
|
|
58
|
-
|
|
59
|
-
</CardGroup>
|