@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,103 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Colors
|
|
3
|
-
description: Change the accent and surface palette.
|
|
4
|
-
icon: palette
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Callout } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Colors
|
|
12
|
-
|
|
13
|
-
All colors are defined as [oklch](https://oklch.com) values on `:root` and
|
|
14
|
-
`.dark` in `src/routes/layout.css`. oklch is `lightness chroma hue`, it keeps
|
|
15
|
-
colors perceptually even, which makes building a balanced scale much easier.
|
|
16
|
-
|
|
17
|
-
## From the config
|
|
18
|
-
|
|
19
|
-
You do not have to touch CSS to set a brand color. Add a `brand` block to
|
|
20
|
-
`axerity.json` and it overrides the active theme's accent and corner radius in
|
|
21
|
-
both light and dark:
|
|
22
|
-
|
|
23
|
-
```json title="axerity.json"
|
|
24
|
-
{
|
|
25
|
-
"brand": {
|
|
26
|
-
"accent": "#6d5efc",
|
|
27
|
-
"radius": "0.75rem"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
`accent` takes any CSS color (hex, `rgb()`, `oklch()`). `radius` sets the base
|
|
33
|
-
corner rounding. For anything beyond the accent, edit the tokens below.
|
|
34
|
-
|
|
35
|
-
## Change the accent
|
|
36
|
-
|
|
37
|
-
The accent drives links, active sidebar items, focus states, and highlights.
|
|
38
|
-
Set `--accent` (and its hover / contrast pair) in both themes:
|
|
39
|
-
|
|
40
|
-
```css title="src/routes/layout.css"
|
|
41
|
-
:root {
|
|
42
|
-
--accent: oklch(0.55 0.22 264); /* blue */
|
|
43
|
-
--accent-hover: oklch(0.62 0.2 264);
|
|
44
|
-
--accent-contrast: oklch(0.99 0 0); /* text on a solid accent */
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.dark {
|
|
48
|
-
--accent: oklch(0.7 0.16 264); /* lighter on dark */
|
|
49
|
-
--accent-hover: oklch(0.76 0.14 264);
|
|
50
|
-
--accent-contrast: oklch(0.18 0.02 264);
|
|
51
|
-
}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
<Callout type="tip">
|
|
55
|
-
|
|
56
|
-
Use a **lighter, less saturated** accent in dark mode than in light, high
|
|
57
|
-
chroma on a dark background is harsh. Bumping lightness by ~0.15 is a good start.
|
|
58
|
-
|
|
59
|
-
</Callout>
|
|
60
|
-
|
|
61
|
-
## Change the surfaces
|
|
62
|
-
|
|
63
|
-
Surfaces and text are neutral by default (`chroma 0`). To tint the whole UI,
|
|
64
|
-
say, a cool slate, give every neutral token a small chroma at a shared hue:
|
|
65
|
-
|
|
66
|
-
```css title="src/routes/layout.css"
|
|
67
|
-
.dark {
|
|
68
|
-
--bg: oklch(0.16 0.015 264);
|
|
69
|
-
--bg-subtle: oklch(0.2 0.018 264);
|
|
70
|
-
--surface: oklch(0.21 0.018 264);
|
|
71
|
-
--surface-raised: oklch(0.24 0.02 264);
|
|
72
|
-
--fg: oklch(0.96 0.01 264);
|
|
73
|
-
--fg-muted: oklch(0.72 0.015 264);
|
|
74
|
-
--border: oklch(0.28 0.015 264);
|
|
75
|
-
}
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Keep the **lightness** values close to the defaults, they're tuned for
|
|
79
|
-
contrast. Adjust **chroma** and **hue** to set the mood.
|
|
80
|
-
|
|
81
|
-
## The brand gradient
|
|
82
|
-
|
|
83
|
-
The signature gradient (used for accents and marks) is one variable:
|
|
84
|
-
|
|
85
|
-
```css title="src/routes/layout.css"
|
|
86
|
-
:root {
|
|
87
|
-
--brand-gradient: linear-gradient(135deg, oklch(0.55 0.22 264), oklch(0.6 0.2 300));
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## Semantic colors
|
|
92
|
-
|
|
93
|
-
Component accent colors (Callout variants, API method badges) are intentionally
|
|
94
|
-
**not** tied to `--accent`, they stay semantic (green = success, red = danger)
|
|
95
|
-
so meaning survives any accent change. Adjust them in their components if needed:
|
|
96
|
-
`src/lib/components/kit/Callout.svelte` and `…/api/Endpoint.svelte`.
|
|
97
|
-
|
|
98
|
-
<Callout type="warning">
|
|
99
|
-
|
|
100
|
-
Always check both light **and** dark after a color change, a value that reads
|
|
101
|
-
well on one can fail on the other.
|
|
102
|
-
|
|
103
|
-
</Callout>
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Theming overview
|
|
3
|
-
description: How Axerity's design-token system works.
|
|
4
|
-
icon: palette
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Callout } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Theming
|
|
12
|
-
|
|
13
|
-
Axerity is themed entirely through **CSS custom properties** (design tokens). Every
|
|
14
|
-
color, font, radius, and layout rail is a token, components never reference raw
|
|
15
|
-
values, so changing a handful of variables re-themes the whole site, light and
|
|
16
|
-
dark, in one place.
|
|
17
|
-
|
|
18
|
-
Everything lives in **`src/routes/layout.css`**.
|
|
19
|
-
|
|
20
|
-
## The two layers
|
|
21
|
-
|
|
22
|
-
Theming is split into two layers:
|
|
23
|
-
|
|
24
|
-
1. **Semantic tokens**, `--bg`, `--fg`, `--accent`, `--border`… defined on
|
|
25
|
-
`:root` (light) and overridden on `.dark` (dark). This is what you edit.
|
|
26
|
-
2. **Tailwind bridge**, an `@theme inline` block maps those tokens onto Tailwind
|
|
27
|
-
utilities (`bg-bg`, `text-fg`, `border-border`, `rounded-lg`, …) so components
|
|
28
|
-
can use them as normal classes.
|
|
29
|
-
|
|
30
|
-
```css title="src/routes/layout.css"
|
|
31
|
-
:root {
|
|
32
|
-
--bg: oklch(1 0 0);
|
|
33
|
-
--fg: oklch(0.205 0 0);
|
|
34
|
-
--accent: oklch(0.205 0 0);
|
|
35
|
-
/* …all light values… */
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.dark {
|
|
39
|
-
--bg: oklch(0.145 0 0);
|
|
40
|
-
--fg: oklch(0.985 0 0);
|
|
41
|
-
--accent: oklch(0.922 0 0);
|
|
42
|
-
/* …dark overrides… */
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@theme inline {
|
|
46
|
-
--color-bg: var(--bg);
|
|
47
|
-
--color-fg: var(--fg);
|
|
48
|
-
--color-accent: var(--accent);
|
|
49
|
-
/* …exposes bg-bg / text-fg / text-accent / … to Tailwind… */
|
|
50
|
-
}
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## The semantic tokens
|
|
54
|
-
|
|
55
|
-
| Token | Used for |
|
|
56
|
-
| ------------------- | ---------------------------------------- |
|
|
57
|
-
| `--bg` | Page background |
|
|
58
|
-
| `--bg-subtle` | Muted background (headers, hover) |
|
|
59
|
-
| `--surface` | Card / panel background |
|
|
60
|
-
| `--surface-raised` | Elevated surfaces (code blocks) |
|
|
61
|
-
| `--fg` | Primary text |
|
|
62
|
-
| `--fg-muted` | Body / secondary text |
|
|
63
|
-
| `--fg-subtle` | Tertiary text, labels |
|
|
64
|
-
| `--border` | Default borders |
|
|
65
|
-
| `--border-strong` | Emphasized borders |
|
|
66
|
-
| `--accent` | Accent, links, active states, highlights |
|
|
67
|
-
| `--accent-hover` | Accent hover state |
|
|
68
|
-
| `--accent-contrast` | Text on a solid accent background |
|
|
69
|
-
| `--brand-gradient` | The signature gradient |
|
|
70
|
-
|
|
71
|
-
<Callout type="tip">
|
|
72
|
-
|
|
73
|
-
Because components only use these tokens, you almost never edit a component to
|
|
74
|
-
re-theme, you edit the tokens.
|
|
75
|
-
|
|
76
|
-
</Callout>
|
|
77
|
-
|
|
78
|
-
## The default theme
|
|
79
|
-
|
|
80
|
-
Out of the box Axerity ships a **neutral (shadcn-style)** theme: pure grayscale
|
|
81
|
-
surfaces, a monochrome accent, and **dark by default**. The next pages show how
|
|
82
|
-
to make it yours.
|
|
83
|
-
|
|
84
|
-
- [Colors](/theming/colors), accent and surfaces
|
|
85
|
-
- [Typography](/theming/typography), fonts
|
|
86
|
-
- [Layout](/theming/layout), widths and rails
|
|
87
|
-
- [Code blocks](/theming/code), syntax themes
|
|
88
|
-
- [Advanced](/theming/advanced), radius, custom tokens, full themes
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Layout
|
|
3
|
-
description: Control widths, rails, and the page shell.
|
|
4
|
-
icon: layout-grid
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Callout } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Layout
|
|
12
|
-
|
|
13
|
-
## Flat vs boxed
|
|
14
|
-
|
|
15
|
-
The overall shell has two modes, set in `src/lib/config/site.ts`:
|
|
16
|
-
|
|
17
|
-
```ts title="src/lib/config/site.ts"
|
|
18
|
-
export const site: SiteConfig = {
|
|
19
|
-
name: 'Axerity',
|
|
20
|
-
layout: 'flat' // 'flat' (full-bleed, sidebar at the edge) or 'boxed' (centered)
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
- **`flat`** _(default)_, the sidebar sits flush at the left edge and the shell
|
|
25
|
-
spans the viewport.
|
|
26
|
-
- **`boxed`**, the whole shell (navbar + columns) centers in a max-width
|
|
27
|
-
container on wide screens.
|
|
28
|
-
|
|
29
|
-
## Layout rails
|
|
30
|
-
|
|
31
|
-
The widths of the shell's columns are tokens in the `@theme` block. Tune them to
|
|
32
|
-
taste:
|
|
33
|
-
|
|
34
|
-
```css title="src/routes/layout.css"
|
|
35
|
-
@theme inline {
|
|
36
|
-
--spacing-sidebar: 17rem; /* left navigation */
|
|
37
|
-
--spacing-toc: 15rem; /* right table of contents */
|
|
38
|
-
--spacing-header: 4rem; /* sticky navbar height */
|
|
39
|
-
--spacing-content: 48rem; /* reading width of doc pages */
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
`--spacing-content` is the most impactful, it sets the line length of prose.
|
|
44
|
-
17rem ≈ 272px sidebar, 48rem ≈ 768px content.
|
|
45
|
-
|
|
46
|
-
## The API layout
|
|
47
|
-
|
|
48
|
-
Pages with `layout: api` in their frontmatter switch to a **wide, TOC-less**
|
|
49
|
-
two-column layout (content on the left, sticky request/response samples on the
|
|
50
|
-
right):
|
|
51
|
-
|
|
52
|
-
```md title="content/docs/api/get-user.md"
|
|
53
|
-
---
|
|
54
|
-
title: Get a user
|
|
55
|
-
layout: api
|
|
56
|
-
---
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
<Callout type="tip">
|
|
60
|
-
|
|
61
|
-
Set `defaultOpen: true` in a folder's `meta.json` to keep that sidebar group
|
|
62
|
-
expanded by default, handy for an API section.
|
|
63
|
-
|
|
64
|
-
</Callout>
|
|
65
|
-
|
|
66
|
-
## The three columns
|
|
67
|
-
|
|
68
|
-
The shell is sidebar / content / table-of-contents. The TOC auto-hides below the
|
|
69
|
-
`xl` breakpoint and in API mode; the sidebar collapses into a drawer below `lg`.
|
|
70
|
-
The structure lives in `src/lib/components/docs/DocsLayout.svelte` if you need to
|
|
71
|
-
restructure it.
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Themes
|
|
3
|
-
description: Eight built-in presets inspired by well-known docs.
|
|
4
|
-
icon: palette
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Themes
|
|
8
|
-
|
|
9
|
-
A theme is a complete palette: backgrounds, text, borders, and an accent, with a
|
|
10
|
-
matching dark mode. Pick one in `axerity.json`:
|
|
11
|
-
|
|
12
|
-
```json
|
|
13
|
-
{
|
|
14
|
-
"theme": "stripe"
|
|
15
|
-
}
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Leave it out (or use `"neutral"`) for the default grayscale look. The theme is
|
|
19
|
-
applied on the server, so there is no flash on load, and dark mode works with
|
|
20
|
-
every preset.
|
|
21
|
-
|
|
22
|
-
## Your own brand
|
|
23
|
-
|
|
24
|
-
Not tied to the presets. Set `brand` to drop in your own accent and corners on
|
|
25
|
-
top of any `theme` (the accent drives links, active items, buttons, and the
|
|
26
|
-
sidebar tint):
|
|
27
|
-
|
|
28
|
-
```json
|
|
29
|
-
{
|
|
30
|
-
"theme": "neutral",
|
|
31
|
-
"brand": {
|
|
32
|
-
"accent": "#ff5722",
|
|
33
|
-
"radius": "0.75rem"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
| Field | Description |
|
|
39
|
-
| ---------------- | ------------------------------------------ |
|
|
40
|
-
| `accent` | Accent color, any CSS color |
|
|
41
|
-
| `accentDark` | Accent in dark mode (defaults to `accent`) |
|
|
42
|
-
| `accentContrast` | Text color on the accent (default white) |
|
|
43
|
-
| `radius` | Base corner radius, e.g. `0.5rem` |
|
|
44
|
-
|
|
45
|
-
Brand values win over the preset, so `neutral` plus your accent gives a clean,
|
|
46
|
-
on-brand site. Pick a colored preset for a fuller reskin.
|
|
47
|
-
|
|
48
|
-
## Presets
|
|
49
|
-
|
|
50
|
-
Each preset is tuned after a product's documentation. Set the `theme` value to
|
|
51
|
-
the name on the left.
|
|
52
|
-
|
|
53
|
-
| Theme | Accent | Feel |
|
|
54
|
-
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
|
|
55
|
-
| `neutral` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.4 0 0);vertical-align:middle"></span> Grayscale | Quiet monochrome, the default |
|
|
56
|
-
| `stripe` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.55 0.23 274);vertical-align:middle"></span> Indigo | Airy and light with soft corners |
|
|
57
|
-
| `vercel` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.18 0 0);vertical-align:middle"></span> Black/white | Maximum contrast, sharp corners |
|
|
58
|
-
| `linear` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.55 0.16 277);vertical-align:middle"></span> Violet | Cool grays, dense, great in dark |
|
|
59
|
-
| `supabase` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.76 0.16 162);vertical-align:middle"></span> Green | Dark-first with a bright green accent |
|
|
60
|
-
| `github` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.52 0.18 256);vertical-align:middle"></span> Blue | Primer blue and the system font |
|
|
61
|
-
| `tailwind` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.68 0.15 233);vertical-align:middle"></span> Sky | Slate grays and rounded corners |
|
|
62
|
-
| `mintlify` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.62 0.16 150);vertical-align:middle"></span> Emerald | Friendly, light, and rounded |
|
|
63
|
-
| `anthropic` | <span style="display:inline-block;width:14px;height:14px;border-radius:9999px;background:oklch(0.62 0.13 42);vertical-align:middle"></span> Clay | Warm accent on an ivory page |
|
|
64
|
-
|
|
65
|
-
## Layout
|
|
66
|
-
|
|
67
|
-
The `theme` controls color, type, and corners. The `layout` controls the shape
|
|
68
|
-
of the page and is set separately:
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
{
|
|
72
|
-
"theme": "stripe",
|
|
73
|
-
"layout": "boxed"
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
- `flat` puts the sidebar flush against the left edge and fills the screen.
|
|
78
|
-
- `boxed` centers the whole site in a max-width container on wide screens.
|
|
79
|
-
|
|
80
|
-
Mix and match. Stripe and Tailwind feel at home boxed; Vercel and Linear suit
|
|
81
|
-
the flat, full-width look.
|
|
82
|
-
|
|
83
|
-
## Sidebar
|
|
84
|
-
|
|
85
|
-
Choose how the sidebar is presented with `sidebar.variant`:
|
|
86
|
-
|
|
87
|
-
```json
|
|
88
|
-
{
|
|
89
|
-
"sidebar": { "variant": "floating" }
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
- `flush` is the default: a tinted panel against the edge with a divider.
|
|
94
|
-
- `card` insets the sidebar as a bordered, rounded panel.
|
|
95
|
-
- `floating` detaches it into a rounded, shadowed card that floats in the
|
|
96
|
-
margin.
|
|
97
|
-
|
|
98
|
-
All three pick up the theme's accent tint, so a floating Supabase sidebar reads
|
|
99
|
-
green while a floating Stripe one reads indigo.
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Typography
|
|
3
|
-
description: Swap the UI and code fonts.
|
|
4
|
-
icon: type
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import { Steps, Step } from '$lib';
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
# Typography
|
|
12
|
-
|
|
13
|
-
Fonts are self-hosted with [Fontsource](https://fontsource.org) and wired through
|
|
14
|
-
two tokens: `--font-sans` (UI and content) and `--font-mono` (code). Axerity ships
|
|
15
|
-
with **Geist** and **Geist Mono**.
|
|
16
|
-
|
|
17
|
-
## Where fonts live
|
|
18
|
-
|
|
19
|
-
The font files are imported in `src/routes/+layout.svelte`:
|
|
20
|
-
|
|
21
|
-
```svelte title="src/routes/+layout.svelte"
|
|
22
|
-
<script lang="ts">
|
|
23
|
-
import '@fontsource-variable/geist/index.css';
|
|
24
|
-
import '@fontsource-variable/geist-mono/index.css';
|
|
25
|
-
import './layout.css';
|
|
26
|
-
</script>
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
The tokens that point at them live in `src/routes/layout.css`:
|
|
30
|
-
|
|
31
|
-
```css title="src/routes/layout.css"
|
|
32
|
-
@theme inline {
|
|
33
|
-
--font-sans: 'Geist Variable', ui-sans-serif, system-ui, sans-serif;
|
|
34
|
-
--font-mono: 'Geist Mono Variable', ui-monospace, monospace;
|
|
35
|
-
}
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Swap a font
|
|
39
|
-
|
|
40
|
-
<Steps>
|
|
41
|
-
<Step title="Install it">
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
pnpm add @fontsource-variable/geist
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
</Step>
|
|
48
|
-
<Step title="Import the CSS">
|
|
49
|
-
|
|
50
|
-
In `src/routes/+layout.svelte`, add the import (and drop the old one):
|
|
51
|
-
|
|
52
|
-
```svelte
|
|
53
|
-
<script lang="ts">
|
|
54
|
-
import '@fontsource-variable/geist/index.css';
|
|
55
|
-
</script>
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
</Step>
|
|
59
|
-
<Step title="Point the token at it">
|
|
60
|
-
|
|
61
|
-
In `src/routes/layout.css`, update the family name (find the exact name in the
|
|
62
|
-
package's `index.css`):
|
|
63
|
-
|
|
64
|
-
```css
|
|
65
|
-
@theme inline {
|
|
66
|
-
--font-sans: 'Geist Variable', ui-sans-serif, system-ui, sans-serif;
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
</Step>
|
|
71
|
-
|
|
72
|
-
</Steps>
|
|
73
|
-
|
|
74
|
-
## Type declarations
|
|
75
|
-
|
|
76
|
-
Fontsource CSS imports have no types, so they're declared in `src/app.d.ts`:
|
|
77
|
-
|
|
78
|
-
```ts title="src/app.d.ts"
|
|
79
|
-
declare module '@fontsource-variable/geist/*';
|
|
80
|
-
declare module '@fontsource-variable/geist-mono/*';
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Add a matching line for any new font package.
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Code Blocks
|
|
3
|
-
description: Fenced code with syntax highlighting, titles, and line highlighting.
|
|
4
|
-
icon: code
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Code Blocks
|
|
8
|
-
|
|
9
|
-
Fenced code blocks are written with triple backticks and a language hint, then
|
|
10
|
-
highlighted with [Shiki](https://shiki.style), light and dark themes follow
|
|
11
|
-
your color scheme automatically.
|
|
12
|
-
|
|
13
|
-
## Basic
|
|
14
|
-
|
|
15
|
-
````md
|
|
16
|
-
```ts
|
|
17
|
-
const greeting: string = 'Hello, Axerity';
|
|
18
|
-
console.log(greeting);
|
|
19
|
-
```
|
|
20
|
-
````
|
|
21
|
-
|
|
22
|
-
Renders as:
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
const greeting: string = 'Hello, Axerity';
|
|
26
|
-
console.log(greeting);
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Hover any block to reveal the **copy** button in the corner.
|
|
30
|
-
|
|
31
|
-
## Titles
|
|
32
|
-
|
|
33
|
-
Add `title="…"` after the language to render a filename header bar:
|
|
34
|
-
|
|
35
|
-
````md
|
|
36
|
-
```ts title="hello.ts"
|
|
37
|
-
export function hello(name: string) {
|
|
38
|
-
return `Hello, ${name}`;
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
````
|
|
42
|
-
|
|
43
|
-
```ts title="hello.ts"
|
|
44
|
-
export function hello(name: string) {
|
|
45
|
-
return `Hello, ${name}`;
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Line highlighting
|
|
50
|
-
|
|
51
|
-
Add a `{…}` range to emphasize specific lines, single lines, comma lists, and
|
|
52
|
-
ranges all work:
|
|
53
|
-
|
|
54
|
-
````md
|
|
55
|
-
```ts title="server.ts" {2,4-6}
|
|
56
|
-
import { createServer } from 'node:http';
|
|
57
|
-
|
|
58
|
-
const server = createServer((req, res) => {
|
|
59
|
-
res.writeHead(200);
|
|
60
|
-
res.end('Hello from Axerity');
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
server.listen(3000);
|
|
64
|
-
```
|
|
65
|
-
````
|
|
66
|
-
|
|
67
|
-
```ts title="server.ts" {2,4-6}
|
|
68
|
-
import { createServer } from 'node:http';
|
|
69
|
-
|
|
70
|
-
const server = createServer((req, res) => {
|
|
71
|
-
res.writeHead(200);
|
|
72
|
-
res.end('Hello from Axerity');
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
server.listen(3000);
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Line numbers
|
|
79
|
-
|
|
80
|
-
Add `showLineNumbers` to number every line, it combines with titles and
|
|
81
|
-
highlighting:
|
|
82
|
-
|
|
83
|
-
````md
|
|
84
|
-
```ts showLineNumbers {3}
|
|
85
|
-
function fib(n) {
|
|
86
|
-
if (n < 2) return n;
|
|
87
|
-
return fib(n - 1) + fib(n - 2);
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
````
|
|
91
|
-
|
|
92
|
-
```ts showLineNumbers {3}
|
|
93
|
-
function fib(n) {
|
|
94
|
-
if (n < 2) return n;
|
|
95
|
-
return fib(n - 1) + fib(n - 2);
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Type hovers with Twoslash
|
|
100
|
-
|
|
101
|
-
Add `twoslash` to a TypeScript block to run it through the compiler at build
|
|
102
|
-
time. Tokens gain real type information you can hover, and a `^?` comment pops
|
|
103
|
-
the type of whatever sits above the caret:
|
|
104
|
-
|
|
105
|
-
````md
|
|
106
|
-
```ts twoslash
|
|
107
|
-
const user = {
|
|
108
|
-
name: 'Ada',
|
|
109
|
-
id: 1
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
user.name;
|
|
113
|
-
// ^?
|
|
114
|
-
```
|
|
115
|
-
````
|
|
116
|
-
|
|
117
|
-
```ts twoslash
|
|
118
|
-
const user = {
|
|
119
|
-
name: 'Ada',
|
|
120
|
-
id: 1
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
user.name;
|
|
124
|
-
// ^?
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
The code has to type check, so a Twoslash block doubles as a test that your
|
|
128
|
-
examples still compile.
|
|
129
|
-
|
|
130
|
-
## Svelte
|
|
131
|
-
|
|
132
|
-
Svelte is highlighted too, including the `<script>` block, markup, and bindings:
|
|
133
|
-
|
|
134
|
-
````md
|
|
135
|
-
```svelte
|
|
136
|
-
<script lang="ts">
|
|
137
|
-
let count = $state(0);
|
|
138
|
-
</script>
|
|
139
|
-
|
|
140
|
-
<button onclick={() => count++}>
|
|
141
|
-
clicked {count} times
|
|
142
|
-
</button>
|
|
143
|
-
```
|
|
144
|
-
````
|
|
145
|
-
|
|
146
|
-
```svelte
|
|
147
|
-
<script lang="ts">
|
|
148
|
-
let count = $state(0);
|
|
149
|
-
</script>
|
|
150
|
-
|
|
151
|
-
<button onclick={() => count++}>
|
|
152
|
-
clicked {count} times
|
|
153
|
-
</button>
|
|
154
|
-
```
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Diagrams
|
|
3
|
-
description: Draw flowcharts and diagrams with Mermaid.
|
|
4
|
-
icon: workflow
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Diagrams
|
|
8
|
-
|
|
9
|
-
Write a fenced code block with the `mermaid` language and it renders as a
|
|
10
|
-
diagram. Diagrams are drawn in the browser and follow your light or dark theme.
|
|
11
|
-
|
|
12
|
-
## Flowchart
|
|
13
|
-
|
|
14
|
-
````md
|
|
15
|
-
```mermaid
|
|
16
|
-
flowchart LR
|
|
17
|
-
A[Write Markdown] --> B{Has a fence?}
|
|
18
|
-
B -- mermaid --> C[Render a diagram]
|
|
19
|
-
B -- code --> D[Highlight with Shiki]
|
|
20
|
-
```
|
|
21
|
-
````
|
|
22
|
-
|
|
23
|
-
Renders as:
|
|
24
|
-
|
|
25
|
-
```mermaid
|
|
26
|
-
flowchart LR
|
|
27
|
-
A[Write Markdown] --> B{Has a fence?}
|
|
28
|
-
B -- mermaid --> C[Render a diagram]
|
|
29
|
-
B -- code --> D[Highlight with Shiki]
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Sequence
|
|
33
|
-
|
|
34
|
-
```mermaid
|
|
35
|
-
sequenceDiagram
|
|
36
|
-
participant R as Reader
|
|
37
|
-
participant S as Server
|
|
38
|
-
R->>S: Request a page
|
|
39
|
-
S-->>R: Pre-rendered HTML
|
|
40
|
-
R->>R: Hydrate and draw diagrams
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Anything Mermaid supports works, including class diagrams, state diagrams, and
|
|
44
|
-
Gantt charts. See the [Mermaid docs](https://mermaid.js.org) for the full syntax.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Frontmatter
|
|
3
|
-
description: Metadata that drives titles, icons, and ordering.
|
|
4
|
-
icon: tag
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Frontmatter
|
|
8
|
-
|
|
9
|
-
Every page starts with a YAML frontmatter block. It supplies the page's
|
|
10
|
-
metadata to the engine.
|
|
11
|
-
|
|
12
|
-
## Fields
|
|
13
|
-
|
|
14
|
-
```yaml
|
|
15
|
-
---
|
|
16
|
-
title: Frontmatter
|
|
17
|
-
description: Metadata that drives titles, icons, and ordering.
|
|
18
|
-
icon: tag
|
|
19
|
-
badge: New
|
|
20
|
-
---
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
| Field | Purpose |
|
|
24
|
-
| ------------- | ----------------------------------------- |
|
|
25
|
-
| `title` | Sidebar label and page `<title>` |
|
|
26
|
-
| `description` | Meta description, used for SEO |
|
|
27
|
-
| `icon` | Lucide icon shown beside the sidebar link |
|
|
28
|
-
| `badge` | Small pill next to the title (e.g. `New`) |
|
|
29
|
-
|
|
30
|
-
## How it's used
|
|
31
|
-
|
|
32
|
-
The content-tree generator reads each page's frontmatter to build the sidebar,
|
|
33
|
-
so changing a `title` here updates the navigation automatically.
|