@axerity/cli 0.1.4 → 0.2.1
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 +70 -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/Dt_5ZQE2.js +1 -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/O1MNaiG9.js +3 -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/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/wCc4pE4l.js +3 -0
- package/dist/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/dist/client/_app/immutable/entry/app.D6KBNU0y.js +2 -0
- package/dist/client/_app/immutable/entry/start.CQdeQUt-.js +1 -0
- package/dist/client/_app/immutable/nodes/0.DBZ13WOO.js +1 -0
- package/dist/client/_app/immutable/nodes/1.B_AZbN4M.js +1 -0
- package/dist/client/_app/immutable/nodes/2.OqcLisIf.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-oTZ8HCk-.js +40 -0
- package/dist/server/chunks/0-oTZ8HCk-.js.map +1 -0
- package/dist/server/chunks/1-nu6YvZRQ.js +9 -0
- package/dist/server/chunks/1-nu6YvZRQ.js.map +1 -0
- package/dist/server/chunks/2-YpqcBGyH.js +54 -0
- package/dist/server/chunks/2-YpqcBGyH.js.map +1 -0
- package/dist/server/chunks/Icon-D37LtZZG.js +186 -0
- package/dist/server/chunks/Icon-D37LtZZG.js.map +1 -0
- package/dist/server/chunks/_error.svelte-NKP81ks-.js +48 -0
- package/dist/server/chunks/_error.svelte-NKP81ks-.js.map +1 -0
- package/dist/server/chunks/_layout.svelte-2Eq-_AqW.js +31 -0
- package/dist/server/chunks/_layout.svelte-2Eq-_AqW.js.map +1 -0
- package/dist/server/chunks/_page.svelte-Chjw6C-d.js +2206 -0
- package/dist/server/chunks/_page.svelte-Chjw6C-d.js.map +1 -0
- package/dist/server/chunks/_server.ts-5K31OG2_.js +31 -0
- package/dist/server/chunks/_server.ts-5K31OG2_.js.map +1 -0
- package/dist/server/chunks/_server.ts-BRaXDyO1.js +29 -0
- package/dist/server/chunks/_server.ts-BRaXDyO1.js.map +1 -0
- package/dist/server/chunks/_server.ts-BuDGLKUC.js +213 -0
- package/dist/server/chunks/_server.ts-BuDGLKUC.js.map +1 -0
- package/dist/server/chunks/_server.ts-Bx1daJ1-.js +53 -0
- package/dist/server/chunks/_server.ts-Bx1daJ1-.js.map +1 -0
- package/dist/server/chunks/_server.ts-By7FRFNB.js +37 -0
- package/dist/server/chunks/_server.ts-By7FRFNB.js.map +1 -0
- package/dist/server/chunks/_server.ts-DIxsjlQ0.js +32 -0
- package/dist/server/chunks/_server.ts-DIxsjlQ0.js.map +1 -0
- package/dist/server/chunks/_server.ts-Dgpc__Yz.js +41 -0
- package/dist/server/chunks/_server.ts-Dgpc__Yz.js.map +1 -0
- package/dist/server/chunks/_server.ts-kWOJv5IZ.js +26 -0
- package/dist/server/chunks/_server.ts-kWOJv5IZ.js.map +1 -0
- package/dist/server/chunks/content-store-DV5Rlfo3.js +5252 -0
- package/dist/server/chunks/content-store-DV5Rlfo3.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-C0PApeP1.js +758 -0
- package/dist/server/chunks/exports-C0PApeP1.js.map +1 -0
- package/dist/server/chunks/hooks.server-BnfZljxX.js +42 -0
- package/dist/server/chunks/hooks.server-BnfZljxX.js.map +1 -0
- package/dist/server/chunks/internal-pc3wKdix.js +5374 -0
- package/dist/server/chunks/internal-pc3wKdix.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-CmugjRXT.js +57 -0
- package/dist/server/chunks/site-CmugjRXT.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 +58 -0
- package/runtime/preview.js +42 -0
- package/runtime/serve.js +78 -0
- package/runtime/static.js +76 -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,56 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Video
|
|
3
|
-
description: Embed a YouTube video in a responsive player.
|
|
4
|
-
icon: play
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Video } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Video
|
|
12
|
-
|
|
13
|
-
The `Video` component renders a responsive 16:9 player. It works with hosted
|
|
14
|
-
files and with the common providers, and picks the right player for whatever you
|
|
15
|
-
give it:
|
|
16
|
-
|
|
17
|
-
- A direct video file (`.mp4`, `.webm`, `.ogg`, `.mov`, `.m4v`) plays in the
|
|
18
|
-
browser's native player.
|
|
19
|
-
- A YouTube link or id embeds through the privacy friendly `youtube-nocookie`
|
|
20
|
-
host.
|
|
21
|
-
- A Vimeo link embeds through the Vimeo player.
|
|
22
|
-
|
|
23
|
-
## YouTube
|
|
24
|
-
|
|
25
|
-
<Video src="https://youtu.be/oRdxUFDoQe0" title="Michael Jackson - Beat It" />
|
|
26
|
-
|
|
27
|
-
A full watch link, a short `youtu.be` link, or a bare video id all work:
|
|
28
|
-
|
|
29
|
-
```svelte
|
|
30
|
-
<Video src="https://youtu.be/oRdxUFDoQe0" title="Michael Jackson - Beat It" />
|
|
31
|
-
<Video src="https://www.youtube.com/watch?v=oRdxUFDoQe0" />
|
|
32
|
-
<Video src="oRdxUFDoQe0" />
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Hosted file
|
|
36
|
-
|
|
37
|
-
Point `src` at a video file and it plays inline with native controls. Pass
|
|
38
|
-
`poster` for a still frame to show before playback:
|
|
39
|
-
|
|
40
|
-
```svelte
|
|
41
|
-
<Video src="/media/demo.mp4" poster="/media/demo-poster.jpg" title="Product demo" />
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Vimeo
|
|
45
|
-
|
|
46
|
-
```svelte
|
|
47
|
-
<Video src="https://vimeo.com/76979871" title="Vimeo example" />
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Props
|
|
51
|
-
|
|
52
|
-
| Prop | Type | Description |
|
|
53
|
-
| -------- | -------- | ------------------------------------------------ |
|
|
54
|
-
| `src` | `string` | File URL, provider URL, or YouTube id (required) |
|
|
55
|
-
| `title` | `string` | Label for screen readers (default `Video`) |
|
|
56
|
-
| `poster` | `string` | Still frame for hosted files, shown before play |
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Webhooks
|
|
3
|
-
description: Document the events your API sends to a customer's endpoint.
|
|
4
|
-
icon: webhook
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Webhook, EventList, Event, ResponseField, ResponseExample } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Webhooks
|
|
12
|
-
|
|
13
|
-
Webhook docs read differently from endpoints: you are documenting an event your
|
|
14
|
-
service sends to the customer's server. The `Webhook` component lays out the
|
|
15
|
-
event, its payload, and an example, with the same sticky rail as the API kit.
|
|
16
|
-
|
|
17
|
-
## An event
|
|
18
|
-
|
|
19
|
-
<Webhook event="invoice.paid" method="POST" description="Sent when an invoice is paid in full.">
|
|
20
|
-
|
|
21
|
-
## Payload
|
|
22
|
-
|
|
23
|
-
<ResponseField name="id" type="string">
|
|
24
|
-
|
|
25
|
-
Unique id for the event.
|
|
26
|
-
|
|
27
|
-
</ResponseField>
|
|
28
|
-
|
|
29
|
-
<ResponseField name="type" type="string">
|
|
30
|
-
|
|
31
|
-
The event type, always `invoice.paid` here.
|
|
32
|
-
|
|
33
|
-
</ResponseField>
|
|
34
|
-
|
|
35
|
-
<ResponseField name="data" type="object">
|
|
36
|
-
|
|
37
|
-
The invoice that was paid.
|
|
38
|
-
|
|
39
|
-
</ResponseField>
|
|
40
|
-
|
|
41
|
-
<ResponseExample title="Example event">
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"id": "evt_1abc",
|
|
46
|
-
"type": "invoice.paid",
|
|
47
|
-
"data": { "id": "in_9xy", "amount": 4200, "currency": "usd" }
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
</ResponseExample>
|
|
52
|
-
|
|
53
|
-
</Webhook>
|
|
54
|
-
|
|
55
|
-
## Usage
|
|
56
|
-
|
|
57
|
-
Wrap the event in `<Webhook>` and document the payload with `ResponseField`, then
|
|
58
|
-
add a `ResponseExample` (or `ObjectExample`) with a fenced code block for the
|
|
59
|
-
sample event:
|
|
60
|
-
|
|
61
|
-
```svelte
|
|
62
|
-
<Webhook event="invoice.paid" method="POST" description="Sent when an invoice is paid.">
|
|
63
|
-
## Payload
|
|
64
|
-
|
|
65
|
-
<ResponseField name="id" type="string">Unique id for the event.</ResponseField>
|
|
66
|
-
|
|
67
|
-
<ResponseExample title="Example event">
|
|
68
|
-
(a fenced json block with the sample payload)
|
|
69
|
-
</ResponseExample>
|
|
70
|
-
</Webhook>
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
It works just like the [API components](/components/api), so any of
|
|
74
|
-
`ResponseField`, `ResponseExample`, and `ObjectExample` are available inside.
|
|
75
|
-
|
|
76
|
-
## Listing events
|
|
77
|
-
|
|
78
|
-
`EventList` renders an index of every event you send. Link each one to its
|
|
79
|
-
detail page.
|
|
80
|
-
|
|
81
|
-
<EventList>
|
|
82
|
-
<Event name="invoice.paid" href="/components/webhooks">An invoice was paid in full.</Event>
|
|
83
|
-
<Event name="invoice.payment_failed" href="/components/webhooks">A payment attempt failed.</Event>
|
|
84
|
-
<Event name="customer.created" href="/components/webhooks">A new customer was created.</Event>
|
|
85
|
-
</EventList>
|
|
86
|
-
|
|
87
|
-
```svelte
|
|
88
|
-
<EventList>
|
|
89
|
-
<Event name="invoice.paid" href="/webhooks/invoice-paid">An invoice was paid.</Event>
|
|
90
|
-
<Event name="customer.created" href="/webhooks/customer-created">A customer was created.</Event>
|
|
91
|
-
</EventList>
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Props
|
|
95
|
-
|
|
96
|
-
### Webhook
|
|
97
|
-
|
|
98
|
-
| Prop | Type | Description |
|
|
99
|
-
| ------------- | -------- | ------------------------------------- |
|
|
100
|
-
| `event` | `string` | The event type, e.g. `invoice.paid` |
|
|
101
|
-
| `method` | `string` | Delivery method (default `POST`) |
|
|
102
|
-
| `description` | `string` | Short summary of when the event fires |
|
|
103
|
-
|
|
104
|
-
### Event
|
|
105
|
-
|
|
106
|
-
| Prop | Type | Description |
|
|
107
|
-
| ------ | -------- | ------------------------------- |
|
|
108
|
-
| `name` | `string` | The event type (required) |
|
|
109
|
-
| `href` | `string` | Link to the event's detail page |
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: WebSockets
|
|
3
|
-
description: Document channels and messages for WebSocket and AsyncAPI services.
|
|
4
|
-
icon: radio
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Channel, Message, ResponseField, ResponseExample } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# WebSockets
|
|
12
|
-
|
|
13
|
-
Event-driven APIs are documented as channels and messages, not requests and
|
|
14
|
-
responses. `Channel` lays out a connection and its messages with the same sticky
|
|
15
|
-
rail as the API kit, and `Message` marks the direction of each one.
|
|
16
|
-
|
|
17
|
-
## A channel
|
|
18
|
-
|
|
19
|
-
<Channel address={'/chat/{roomId}'} protocol="wss" server="wss://api.example.com" description="Real-time chat for a room.">
|
|
20
|
-
|
|
21
|
-
<Message direction="receive" name="message.created">
|
|
22
|
-
|
|
23
|
-
A new chat message arrived.
|
|
24
|
-
|
|
25
|
-
## Payload
|
|
26
|
-
|
|
27
|
-
<ResponseField name="id" type="string">
|
|
28
|
-
|
|
29
|
-
Unique id for the message.
|
|
30
|
-
|
|
31
|
-
</ResponseField>
|
|
32
|
-
|
|
33
|
-
<ResponseField name="body" type="string">
|
|
34
|
-
|
|
35
|
-
The message text.
|
|
36
|
-
|
|
37
|
-
</ResponseField>
|
|
38
|
-
|
|
39
|
-
<ResponseExample title="message.created">
|
|
40
|
-
|
|
41
|
-
```json
|
|
42
|
-
{ "id": "msg_1", "body": "hey there", "user": "ada" }
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
</ResponseExample>
|
|
46
|
-
|
|
47
|
-
</Message>
|
|
48
|
-
|
|
49
|
-
<Message direction="send" name="message.send">
|
|
50
|
-
|
|
51
|
-
Send a new message to the room.
|
|
52
|
-
|
|
53
|
-
## Payload
|
|
54
|
-
|
|
55
|
-
<ResponseField name="body" type="string" required>
|
|
56
|
-
|
|
57
|
-
The message text to send.
|
|
58
|
-
|
|
59
|
-
</ResponseField>
|
|
60
|
-
|
|
61
|
-
</Message>
|
|
62
|
-
|
|
63
|
-
</Channel>
|
|
64
|
-
|
|
65
|
-
## Usage
|
|
66
|
-
|
|
67
|
-
Wrap a channel in `<Channel>`, then mark each message with `<Message>` and
|
|
68
|
-
document its payload with `ResponseField` and `ResponseExample`:
|
|
69
|
-
|
|
70
|
-
```svelte
|
|
71
|
-
<Channel address="/chat/{roomId}" protocol="wss" server="wss://api.example.com">
|
|
72
|
-
<Message direction="receive" name="message.created">
|
|
73
|
-
## Payload
|
|
74
|
-
|
|
75
|
-
<ResponseField name="body" type="string">The message text.</ResponseField>
|
|
76
|
-
</Message>
|
|
77
|
-
|
|
78
|
-
<Message direction="send" name="message.send">Send a message to the room.</Message>
|
|
79
|
-
</Channel>
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
`receive` is server-to-client, `send` is client-to-server (the AsyncAPI
|
|
83
|
-
`publish`/`subscribe` keywords work too).
|
|
84
|
-
|
|
85
|
-
## Props
|
|
86
|
-
|
|
87
|
-
### Channel
|
|
88
|
-
|
|
89
|
-
| Prop | Type | Description |
|
|
90
|
-
| ------------- | -------- | ---------------------------------------------- |
|
|
91
|
-
| `address` | `string` | The channel or topic, e.g. `/chat/{roomId}` |
|
|
92
|
-
| `protocol` | `string` | `ws`, `wss`, `kafka`, `mqtt`, … (default `ws`) |
|
|
93
|
-
| `server` | `string` | Base server URL, prepended to the address |
|
|
94
|
-
| `description` | `string` | Short summary of the channel |
|
|
95
|
-
|
|
96
|
-
### Message
|
|
97
|
-
|
|
98
|
-
| Prop | Type | Description |
|
|
99
|
-
| ----------- | -------- | ---------------------------------------------- |
|
|
100
|
-
| `direction` | `string` | `send` or `receive` (or `publish`/`subscribe`) |
|
|
101
|
-
| `name` | `string` | The message name, e.g. `message.created` |
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: AI and LLMs
|
|
3
|
-
description: Copy page, Markdown URLs, and llms.txt.
|
|
4
|
-
icon: file-text
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# AI and LLMs
|
|
8
|
-
|
|
9
|
-
Axerity makes your docs easy to feed to a language model.
|
|
10
|
-
|
|
11
|
-
## Copy page
|
|
12
|
-
|
|
13
|
-
Every page has a copy page button at the top right. The main button copies the
|
|
14
|
-
page as clean Markdown, with the frontmatter and scripts stripped out. The
|
|
15
|
-
dropdown has more options:
|
|
16
|
-
|
|
17
|
-
- Copy page as Markdown.
|
|
18
|
-
- View as Markdown, which opens the raw Markdown in a new tab.
|
|
19
|
-
- Open in ChatGPT, with a prompt pointing at the page.
|
|
20
|
-
- Open in Claude, with the same.
|
|
21
|
-
|
|
22
|
-
## Markdown URLs
|
|
23
|
-
|
|
24
|
-
Every page is also served as raw Markdown at a `.md` URL. Add `.md` to any page
|
|
25
|
-
path:
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
/installation -> the rendered page
|
|
29
|
-
/installation.md -> the raw Markdown
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
These are static files, generated at build time.
|
|
33
|
-
|
|
34
|
-
## llms.txt
|
|
35
|
-
|
|
36
|
-
Two files are generated for whole site ingestion, following the
|
|
37
|
-
[llms.txt](https://llmstxt.org) convention:
|
|
38
|
-
|
|
39
|
-
- `/llms.txt` is an index of every page with links to its Markdown.
|
|
40
|
-
- `/llms-full.txt` is the full Markdown of every page in one file.
|
|
@@ -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.
|