@wordup-md/nuxt-layer-shadcn-unocss 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/.cursor/rules/active-context-rule.mdc +8 -0
- package/.cursor/rules/memory-bank-overview.mdc +17 -0
- package/.cursor/rules/product-context-rule.mdc +8 -0
- package/.cursor/rules/progress-rule.mdc +8 -0
- package/.cursor/rules/projectbrief-rule.mdc +8 -0
- package/.cursor/rules/system-patterns-rule.mdc +8 -0
- package/.cursor/rules/tech-context-rule.mdc +8 -0
- package/.cursorrules +52 -0
- package/.editorconfig +12 -0
- package/.nuxtrc +1 -0
- package/.playground/app.config.ts +189 -0
- package/.playground/assets/style.css +15 -0
- package/.playground/components/content/MdcExample.vue +81 -0
- package/.playground/components/content/MdcReplay.vue +319 -0
- package/.playground/content/1.getting-started/1.introduction.md +8 -0
- package/.playground/content/1.getting-started/2.writing/1.markdown.md +56 -0
- package/.playground/content/1.getting-started/2.writing/2.pages.md +177 -0
- package/.playground/content/1.getting-started/2.writing/3.folders.md +56 -0
- package/.playground/content/1.getting-started/2.writing/_dir.yml +3 -0
- package/.playground/content/1.getting-started/_dir.yml +3 -0
- package/.playground/content/2.content-elements/1.text-formatting.md +60 -0
- package/.playground/content/2.content-elements/10.horizontal-rule.md +25 -0
- package/.playground/content/2.content-elements/11.tables.md +25 -0
- package/.playground/content/2.content-elements/12.overview.md +93 -0
- package/.playground/content/2.content-elements/13.text-components.md +36 -0
- package/.playground/content/2.content-elements/2.headings.md +32 -0
- package/.playground/content/2.content-elements/3.paragraphs.md +39 -0
- package/.playground/content/2.content-elements/4.lists.md +37 -0
- package/.playground/content/2.content-elements/5.links.md +17 -0
- package/.playground/content/2.content-elements/6.images.md +17 -0
- package/.playground/content/2.content-elements/7.blockquotes.md +17 -0
- package/.playground/content/2.content-elements/8.code-blocks.md +141 -0
- package/.playground/content/2.content-elements/9.inline-code.md +21 -0
- package/.playground/content/2.content-elements/_dir.yml +3 -0
- package/.playground/content/2.content-elements/index.md +8 -0
- package/.playground/content/3.components/1.index.md +187 -0
- package/.playground/content/3.components/2.docs/_dir.yml +3 -0
- package/.playground/content/3.components/2.docs/alert.md +152 -0
- package/.playground/content/3.components/2.docs/badge.md +131 -0
- package/.playground/content/3.components/2.docs/button-link.md +53 -0
- package/.playground/content/3.components/2.docs/callout.md +16 -0
- package/.playground/content/3.components/2.docs/code-group.md +77 -0
- package/.playground/content/3.components/2.docs/code-snippet.md +129 -0
- package/.playground/content/3.components/2.docs/field-group.md +62 -0
- package/.playground/content/3.components/2.docs/field.md +39 -0
- package/.playground/content/3.components/2.docs/file-tree.md +144 -0
- package/.playground/content/3.components/2.docs/icon.md +94 -0
- package/.playground/content/3.components/2.docs/pm.md +67 -0
- package/.playground/content/3.components/2.docs/read-more.md +44 -0
- package/.playground/content/3.components/2.docs/shortcut.md +36 -0
- package/.playground/content/3.components/2.docs/stack.md +81 -0
- package/.playground/content/3.components/2.docs/steps.md +148 -0
- package/.playground/content/3.components/2.docs/tabs.md +375 -0
- package/.playground/content/3.components/3.page/_dir.yml +2 -0
- package/.playground/content/3.components/3.page/accordion.md +74 -0
- package/.playground/content/3.components/3.page/card-group.md +115 -0
- package/.playground/content/3.components/3.page/card.md +142 -0
- package/.playground/content/3.components/3.page/collapsible.md +61 -0
- package/.playground/content/3.components/3.page/hero-alt.md +118 -0
- package/.playground/content/3.components/3.page/hero.md +60 -0
- package/.playground/content/3.components/3.page/team-card.md +82 -0
- package/.playground/content/3.components/_dir.yml +2 -0
- package/.playground/content/4.development/1.configuration/1.overview.md +297 -0
- package/.playground/content/4.development/1.configuration/2.nuxt-content.md +105 -0
- package/.playground/content/4.development/1.configuration/3.og-image.md +86 -0
- package/.playground/content/4.development/1.configuration/4.edit-link.md +63 -0
- package/.playground/content/4.development/1.configuration/5.banner.md +52 -0
- package/.playground/content/4.development/1.configuration/6.carbon-ads.md +65 -0
- package/.playground/content/4.development/1.configuration/7.umami.md +41 -0
- package/.playground/content/4.development/1.configuration/_dir.yml +3 -0
- package/.playground/content/4.development/2.advanced/1.override.md +49 -0
- package/.playground/content/4.development/2.advanced/2.math.md +89 -0
- package/.playground/content/4.development/2.advanced/_dir.yml +3 -0
- package/.playground/content/4.development/3.themes.md +9 -0
- package/.playground/content/4.development/4.composables.md +38 -0
- package/.playground/content/4.development/5.installation.md +36 -0
- package/.playground/content/4.development/_dir.yml +3 -0
- package/.playground/content/_menu-footer.md +5 -0
- package/.playground/content/index.md +67 -0
- package/.playground/content/test-card.md +187 -0
- package/.playground/content/test.md +88 -0
- package/.playground/content/test2.md +12 -0
- package/.playground/content/test3.md +187 -0
- package/.playground/nuxt.config.ts +52 -0
- package/.playground/public/banner-preview.png +0 -0
- package/.playground/public/favicon.ico +0 -0
- package/.playground/public/front-matter-showcase/authors.png +0 -0
- package/.playground/public/front-matter-showcase/badges.png +0 -0
- package/.playground/public/front-matter-showcase/nav-badges.png +0 -0
- package/.playground/public/hero.png +0 -0
- package/.playground/public/logo-dark.svg +12 -0
- package/.playground/public/logo.svg +12 -0
- package/.playground/public/og-nuxt-seo.png +0 -0
- package/.playground/public/og-nuxt.png +0 -0
- package/.playground/public/og-shadcn-docs-dark.png +0 -0
- package/.playground/public/og-shadcn-docs.png +0 -0
- package/.playground/public/sidebar-default.png +0 -0
- package/.playground/public/sidebar-group.png +0 -0
- package/.playground/public/sidebar-tree.png +0 -0
- package/.playground/uno.config.ts +16 -0
- package/README.md +93 -0
- package/app.vue +59 -0
- package/assets/css/a11y.css +48 -0
- package/assets/css/mdc-editor.css +91 -0
- package/components/A11yModeToggle.vue +23 -0
- package/components/DarkModeToggle.vue +26 -0
- package/components/LinkIcon.vue +32 -0
- package/components/OgImage/ShadcnDocs.vue +55 -0
- package/components/ThemeCustomizer.vue +156 -0
- package/components/ThemePopover.vue +27 -0
- package/components/content/Accordion.vue +18 -0
- package/components/content/AccordionItem.vue +32 -0
- package/components/content/Alert.vue +100 -0
- package/components/content/Badge.vue +52 -0
- package/components/content/ButtonLink.vue +38 -0
- package/components/content/Callout.vue +17 -0
- package/components/content/Card.vue +173 -0
- package/components/content/CardGroup.vue +38 -0
- package/components/content/CodeCopy.vue +52 -0
- package/components/content/CodeGroup._vue +27 -0
- package/components/content/CodeSnippet._vue +78 -0
- package/components/content/Collapsible.vue +80 -0
- package/components/content/Field.vue +53 -0
- package/components/content/FieldGroup.vue +5 -0
- package/components/content/FileTree.vue +110 -0
- package/components/content/FileTreeItem.vue +64 -0
- package/components/content/FileTreeRoot.vue +27 -0
- package/components/content/Hero.vue +154 -0
- package/components/content/HeroAlt.vue +116 -0
- package/components/content/Icon.vue +69 -0
- package/components/content/Kbd.vue +20 -0
- package/components/content/PmInstall.vue +35 -0
- package/components/content/PmRun.vue +31 -0
- package/components/content/PmX.vue +31 -0
- package/components/content/ProseA.vue +21 -0
- package/components/content/ProseBlockquote.vue +5 -0
- package/components/content/ProseCode.vue +121 -0
- package/components/content/ProseCodeInline.vue +24 -0
- package/components/content/ProseEm.vue +5 -0
- package/components/content/ProseH1.vue +27 -0
- package/components/content/ProseH2.vue +22 -0
- package/components/content/ProseH3.vue +21 -0
- package/components/content/ProseH4.vue +21 -0
- package/components/content/ProseH5.vue +21 -0
- package/components/content/ProseH6.vue +21 -0
- package/components/content/ProseHr.vue +3 -0
- package/components/content/ProseImg.vue +42 -0
- package/components/content/ProseLi.vue +5 -0
- package/components/content/ProseOl.vue +5 -0
- package/components/content/ProseP.vue +5 -0
- package/components/content/ProsePre.vue +56 -0
- package/components/content/ProseSection.vue +27 -0
- package/components/content/ProseStrong.vue +5 -0
- package/components/content/ProseTable.vue +7 -0
- package/components/content/ProseTbody.vue +5 -0
- package/components/content/ProseTd.vue +5 -0
- package/components/content/ProseTh.vue +5 -0
- package/components/content/ProseThead.vue +5 -0
- package/components/content/ProseTr.vue +5 -0
- package/components/content/ProseUl.vue +5 -0
- package/components/content/ReadMore.vue +41 -0
- package/components/content/Shortcut.vue +20 -0
- package/components/content/Stack.vue +17 -0
- package/components/content/Steps.vue +23 -0
- package/components/content/Tabs.vue +52 -0
- package/components/content/TabsInner.vue +263 -0
- package/components/content/TeamCard.vue +52 -0
- package/components/content/TeamCardGroup.vue +5 -0
- package/components/content/global/AlertEditor.vue +58 -0
- package/components/content/global/BadgeEditor.vue +56 -0
- package/components/content/global/BrEditor.vue +3 -0
- package/components/content/global/CardEditor.vue +142 -0
- package/components/content/global/CardGroupEditor.vue +50 -0
- package/components/content/global/CodeGroup.vue +13 -0
- package/components/content/global/CodeGroupEditor.vue +50 -0
- package/components/content/global/DivEditor.vue +22 -0
- package/components/content/global/FieldEditor.vue +38 -0
- package/components/content/global/FieldGroupEditor.vue +24 -0
- package/components/content/global/HeroEditor.vue +67 -0
- package/components/content/global/ProseSectionEditor.vue +180 -0
- package/components/content/global/ReadMoreEditor.vue +70 -0
- package/components/content/global/SectionEditor.vue +22 -0
- package/components/content/global/StackEditor.vue +35 -0
- package/components/content/global/StepsEditor.vue +55 -0
- package/components/content/global/Tabs._vue +97 -0
- package/components/content/global/TabsEditor.vue +38 -0
- package/components/layout/Aside.vue +83 -0
- package/components/layout/AsideTree.vue +25 -0
- package/components/layout/AsideTreeItem.vue +86 -0
- package/components/layout/AsideTreeItemButton.vue +32 -0
- package/components/layout/Banner.vue +77 -0
- package/components/layout/Breadcrumb.vue +34 -0
- package/components/layout/DocsFooter.vue +6 -0
- package/components/layout/EditLink.vue +23 -0
- package/components/layout/Footer.vue +80 -0
- package/components/layout/FooterItem.vue +50 -0
- package/components/layout/FooterSubmenuItem.vue +39 -0
- package/components/layout/Header/Logo.vue +30 -0
- package/components/layout/Header/MenuItem.vue +83 -0
- package/components/layout/Header/Nav.vue +112 -0
- package/components/layout/Header/NavMobile.vue +14 -0
- package/components/layout/Header/NavMobileItem.vue +79 -0
- package/components/layout/Header/SubmenuItem.vue +39 -0
- package/components/layout/Header.vue +160 -0
- package/components/layout/LangSwitcher.vue +90 -0
- package/components/layout/MobileNav.vue +44 -0
- package/components/layout/PrevNext.vue +24 -0
- package/components/layout/PrevNextButton.vue +50 -0
- package/components/layout/SearchButton.vue +46 -0
- package/components/layout/SearchDialog.vue +217 -0
- package/components/layout/Title.vue +98 -0
- package/components/layout/Toc.vue +99 -0
- package/components/layout/TocTree.vue +42 -0
- package/components/ui/accordion/Accordion.vue +19 -0
- package/components/ui/accordion/AccordionContent.vue +24 -0
- package/components/ui/accordion/AccordionItem.vue +24 -0
- package/components/ui/accordion/AccordionTrigger.vue +39 -0
- package/components/ui/accordion/index.ts +4 -0
- package/components/ui/alert/Alert.vue +19 -0
- package/components/ui/alert/AlertDescription.vue +14 -0
- package/components/ui/alert/AlertTitle.vue +14 -0
- package/components/ui/alert/index.ts +23 -0
- package/components/ui/avatar/Avatar.vue +25 -0
- package/components/ui/avatar/AvatarFallback.vue +11 -0
- package/components/ui/avatar/AvatarImage.vue +12 -0
- package/components/ui/avatar/index.ts +24 -0
- package/components/ui/badge/Badge.vue +17 -0
- package/components/ui/badge/index.ts +71 -0
- package/components/ui/breadcrumb/Breadcrumb.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbItem.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbLink.vue +23 -0
- package/components/ui/breadcrumb/BreadcrumbList.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
- package/components/ui/breadcrumb/BreadcrumbSeparator.vue +23 -0
- package/components/ui/breadcrumb/index.ts +6 -0
- package/components/ui/button/Button.vue +29 -0
- package/components/ui/button/index.ts +35 -0
- package/components/ui/card/Card.vue +21 -0
- package/components/ui/card/CardContent.vue +14 -0
- package/components/ui/card/CardDescription.vue +14 -0
- package/components/ui/card/CardFooter.vue +14 -0
- package/components/ui/card/CardHeader.vue +14 -0
- package/components/ui/card/CardTitle.vue +18 -0
- package/components/ui/card/index.ts +6 -0
- package/components/ui/collapsible/Collapsible.vue +18 -0
- package/components/ui/collapsible/CollapsibleContent.vue +14 -0
- package/components/ui/collapsible/CollapsibleTrigger.vue +11 -0
- package/components/ui/collapsible/index.ts +3 -0
- package/components/ui/command/Command.vue +89 -0
- package/components/ui/command/CommandEmpty.vue +30 -0
- package/components/ui/command/CommandGroup.vue +50 -0
- package/components/ui/command/CommandInput.vue +44 -0
- package/components/ui/command/CommandInputOnly.vue +50 -0
- package/components/ui/command/CommandItem.vue +79 -0
- package/components/ui/command/CommandList.vue +28 -0
- package/components/ui/command/CommandSeparator.vue +24 -0
- package/components/ui/command/index.ts +24 -0
- package/components/ui/dialog/Dialog.vue +14 -0
- package/components/ui/dialog/DialogClose.vue +11 -0
- package/components/ui/dialog/DialogContent.vue +52 -0
- package/components/ui/dialog/DialogDescription.vue +24 -0
- package/components/ui/dialog/DialogFooter.vue +19 -0
- package/components/ui/dialog/DialogHeader.vue +16 -0
- package/components/ui/dialog/DialogScrollContent.vue +61 -0
- package/components/ui/dialog/DialogTitle.vue +29 -0
- package/components/ui/dialog/DialogTrigger.vue +11 -0
- package/components/ui/dialog/index.ts +9 -0
- package/components/ui/input/Input.vue +27 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/label/Label.vue +27 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/navigation-menu/NavigationMenu.vue +33 -0
- package/components/ui/navigation-menu/NavigationMenuContent.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuIndicator.vue +24 -0
- package/components/ui/navigation-menu/NavigationMenuItem.vue +11 -0
- package/components/ui/navigation-menu/NavigationMenuLink.vue +19 -0
- package/components/ui/navigation-menu/NavigationMenuList.vue +33 -0
- package/components/ui/navigation-menu/NavigationMenuTrigger.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuViewport.vue +33 -0
- package/components/ui/navigation-menu/index.ts +14 -0
- package/components/ui/popover/Popover.vue +15 -0
- package/components/ui/popover/PopoverContent.vue +49 -0
- package/components/ui/popover/PopoverTrigger.vue +11 -0
- package/components/ui/popover/index.ts +4 -0
- package/components/ui/scroll-area/ScrollArea.vue +32 -0
- package/components/ui/scroll-area/ScrollBar.vue +41 -0
- package/components/ui/scroll-area/index.ts +2 -0
- package/components/ui/separator/Separator.vue +20 -0
- package/components/ui/separator/index.ts +1 -0
- package/components/ui/sheet/Sheet.vue +14 -0
- package/components/ui/sheet/SheetClose.vue +11 -0
- package/components/ui/sheet/SheetContent.vue +58 -0
- package/components/ui/sheet/SheetDescription.vue +22 -0
- package/components/ui/sheet/SheetFooter.vue +19 -0
- package/components/ui/sheet/SheetHeader.vue +16 -0
- package/components/ui/sheet/SheetTitle.vue +22 -0
- package/components/ui/sheet/SheetTrigger.vue +11 -0
- package/components/ui/sheet/index.ts +31 -0
- package/components/ui/slider/Slider.vue +36 -0
- package/components/ui/slider/index.ts +1 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +22 -0
- package/components/ui/tabs/TabsList.vue +25 -0
- package/components/ui/tabs/TabsTrigger.vue +27 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/textarea/Textarea.vue +27 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components/ui/toast/Toast.vue +28 -0
- package/components/ui/toast/ToastAction.vue +22 -0
- package/components/ui/toast/ToastClose.vue +27 -0
- package/components/ui/toast/ToastDescription.vue +22 -0
- package/components/ui/toast/ToastProvider.vue +11 -0
- package/components/ui/toast/ToastTitle.vue +22 -0
- package/components/ui/toast/ToastViewport.vue +20 -0
- package/components/ui/toast/Toaster.vue +34 -0
- package/components/ui/toast/index.ts +38 -0
- package/components/ui/toast/use-toast.ts +165 -0
- package/components.json +18 -0
- package/composables/useBreadcrumb.ts +47 -0
- package/composables/useCollapsedMap.ts +3 -0
- package/composables/useConfig.ts +227 -0
- package/composables/useEditLink.ts +27 -0
- package/composables/useI18nDocs.ts +114 -0
- package/composables/useMdcMenu.ts +204 -0
- package/composables/usePm.ts +58 -0
- package/composables/useScrollspy.ts +51 -0
- package/composables/useThemes.ts +46 -0
- package/composables/useToast.ts +1 -0
- package/content/index.md +45 -0
- package/eslint.config.js +3 -0
- package/i18n/i18n.config.ts +414 -0
- package/index.d.ts +610 -0
- package/layouts/blank.vue +5 -0
- package/layouts/default.vue +9 -0
- package/layouts/editorial.vue +83 -0
- package/lib/registry/themes.ts +636 -0
- package/lib/uno-preset.ts +143 -0
- package/memory-bank/activeContext.md +17 -0
- package/memory-bank/productContext.md +21 -0
- package/memory-bank/progress.md +16 -0
- package/memory-bank/projectbrief.md +20 -0
- package/memory-bank/systemPatterns.md +25 -0
- package/memory-bank/techContext.md +29 -0
- package/modules/inject-css.ts +40 -0
- package/nuxt.config.ts +124 -0
- package/package.json +71 -0
- package/pages/[...slug].vue +109 -0
- package/pages/admin/[...slug].vue +145 -0
- package/pages/index.vue +24 -0
- package/plugins/injectCssHmr.ts +26 -0
- package/plugins/wordup.ts +130 -0
- package/public/content-doc.json +792 -0
- package/public/iconesjs.svg +4 -0
- package/scripts/buildContentDoc-cli.ts +8 -0
- package/scripts/buildContentDoc.ts +165 -0
- package/tailwind.config.js +1 -0
- package/tsconfig.json +3 -0
- package/uno.config.mjs +58 -0
- package/utils/index.ts +12 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Horizontal Rule
|
|
3
|
+
description: Horizontal line separator element.
|
|
4
|
+
icon: lucide:minus
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
Before
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
After
|
|
16
|
+
:::
|
|
17
|
+
|
|
18
|
+
```md
|
|
19
|
+
Before
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
After
|
|
24
|
+
```
|
|
25
|
+
::
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Tables
|
|
3
|
+
description: HTML table elements with headers and data cells.
|
|
4
|
+
icon: lucide:table
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
| Key | Type | Description |
|
|
12
|
+
| --- | --------- | ------------------------------------------- |
|
|
13
|
+
| 1 | Wonderful | Table with `some long code snippet example` |
|
|
14
|
+
| 2 | Wonderful | Data |
|
|
15
|
+
| 3 | Wonderful | Website |
|
|
16
|
+
:::
|
|
17
|
+
|
|
18
|
+
```md
|
|
19
|
+
| Key | Type | Description |
|
|
20
|
+
| --- | --------- | ------------------------------------------- |
|
|
21
|
+
| 1 | Wonderful | Table with `some long code snippet example` |
|
|
22
|
+
| 2 | Wonderful | Data |
|
|
23
|
+
| 3 | Wonderful | Website |
|
|
24
|
+
```
|
|
25
|
+
::
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Overview
|
|
3
|
+
description: A comprehensive example showing multiple prose elements together.
|
|
4
|
+
icon: lucide:layout
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Example
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-8}
|
|
11
|
+
# The Joke Tax Chronicles
|
|
12
|
+
|
|
13
|
+
Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.
|
|
14
|
+
|
|
15
|
+
## The King's Plan
|
|
16
|
+
|
|
17
|
+
The king thought long and hard, and finally came up with [a brilliant plan](#): he would tax the jokes in the kingdom.
|
|
18
|
+
|
|
19
|
+
> "After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
|
|
20
|
+
|
|
21
|
+
### The Joke Tax
|
|
22
|
+
|
|
23
|
+
The king's subjects were not amused. They grumbled and complained, but the king was firm:
|
|
24
|
+
|
|
25
|
+
- 1st level of puns: 5 gold coins
|
|
26
|
+
- 2nd level of jokes: 10 gold coins
|
|
27
|
+
- 3rd level of one-liners : 20 gold coins
|
|
28
|
+
|
|
29
|
+
As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.
|
|
30
|
+
|
|
31
|
+
### Jokester's Revolt
|
|
32
|
+
|
|
33
|
+
Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.
|
|
34
|
+
|
|
35
|
+
And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.
|
|
36
|
+
|
|
37
|
+
### The People's Rebellion
|
|
38
|
+
|
|
39
|
+
The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.
|
|
40
|
+
|
|
41
|
+
| King's Treasury | People's happiness |
|
|
42
|
+
| :-------------- | :----------------- |
|
|
43
|
+
| Empty | Overflowing |
|
|
44
|
+
| Modest | Satisfied |
|
|
45
|
+
| Full | Ecstatic |
|
|
46
|
+
|
|
47
|
+
The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.
|
|
48
|
+
|
|
49
|
+
The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.
|
|
50
|
+
:::
|
|
51
|
+
|
|
52
|
+
```md height=400
|
|
53
|
+
# The Joke Tax Chronicles
|
|
54
|
+
|
|
55
|
+
Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money.
|
|
56
|
+
|
|
57
|
+
## The King's Plan
|
|
58
|
+
|
|
59
|
+
The king thought long and hard, and finally came up with [a brilliant plan](#): he would tax the jokes in the kingdom.
|
|
60
|
+
|
|
61
|
+
> "After all," he said, "everyone enjoys a good joke, so it's only fair that they should pay for the privilege."
|
|
62
|
+
|
|
63
|
+
### The Joke Tax
|
|
64
|
+
|
|
65
|
+
The king's subjects were not amused. They grumbled and complained, but the king was firm:
|
|
66
|
+
|
|
67
|
+
- 1st level of puns: 5 gold coins
|
|
68
|
+
- 2nd level of jokes: 10 gold coins
|
|
69
|
+
- 3rd level of one-liners : 20 gold coins
|
|
70
|
+
|
|
71
|
+
As a result, people stopped telling jokes, and the kingdom fell into a gloom. But there was one person who refused to let the king's foolishness get him down: a court jester named Jokester.
|
|
72
|
+
|
|
73
|
+
### Jokester's Revolt
|
|
74
|
+
|
|
75
|
+
Jokester began sneaking into the castle in the middle of the night and leaving jokes all over the place: under the king's pillow, in his soup, even in the royal toilet. The king was furious, but he couldn't seem to stop Jokester.
|
|
76
|
+
|
|
77
|
+
And then, one day, the people of the kingdom discovered that the jokes left by Jokester were so funny that they couldn't help but laugh. And once they started laughing, they couldn't stop.
|
|
78
|
+
|
|
79
|
+
### The People's Rebellion
|
|
80
|
+
|
|
81
|
+
The people of the kingdom, feeling uplifted by the laughter, started to tell jokes and puns again, and soon the entire kingdom was in on the joke.
|
|
82
|
+
|
|
83
|
+
| King's Treasury | People's happiness |
|
|
84
|
+
| :-------------- | :----------------- |
|
|
85
|
+
| Empty | Overflowing |
|
|
86
|
+
| Modest | Satisfied |
|
|
87
|
+
| Full | Ecstatic |
|
|
88
|
+
|
|
89
|
+
The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. Jokester was declared a hero, and the kingdom lived happily ever after.
|
|
90
|
+
|
|
91
|
+
The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas.
|
|
92
|
+
```
|
|
93
|
+
::
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Text Components
|
|
3
|
+
description: Text components are used to display text in a variety of ways.
|
|
4
|
+
icon: i-lucide:brackets
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
All this content components can be written in text component format.\
|
|
8
|
+
It's provide possibility to pass custom properties or customize the content with Tailwind CSS classes.
|
|
9
|
+
|
|
10
|
+
::alert{type="warning" icon="i-lucide:triangle-alert" title="Don't overuse it"}
|
|
11
|
+
Use it when necessary, it's not ideal to add style markup in markdown. Adding a lot of styles in your markdown will be hard to maintain the content.\
|
|
12
|
+
**Repeating the same style or adding a lot of styles is a sign that you should use a markdown component instead.**
|
|
13
|
+
::
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
::stack
|
|
19
|
+
:::div{.p-4}
|
|
20
|
+
:h3[Heading 3]
|
|
21
|
+
:p[Paragraph]{.text-center.text-primary}
|
|
22
|
+
:br
|
|
23
|
+
A colored :a[Link]{.bg-yellow-200.text-primary}
|
|
24
|
+
:hr
|
|
25
|
+
{width=100}
|
|
26
|
+
:::
|
|
27
|
+
|
|
28
|
+
```md
|
|
29
|
+
:h3[Heading 3]
|
|
30
|
+
:p[Paragraph]{.text-center.text-primary}
|
|
31
|
+
:br
|
|
32
|
+
A colored :a[Link]{.bg-yellow-200.text-primary}
|
|
33
|
+
:hr
|
|
34
|
+
{width=100}
|
|
35
|
+
```
|
|
36
|
+
::
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Headings
|
|
3
|
+
description: HTML heading elements from h1 to h6.
|
|
4
|
+
icon: lucide:heading
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4.md:p-8}
|
|
11
|
+
# Heading 1
|
|
12
|
+
|
|
13
|
+
## Heading 2
|
|
14
|
+
|
|
15
|
+
### Heading 3
|
|
16
|
+
|
|
17
|
+
#### Heading 4
|
|
18
|
+
|
|
19
|
+
##### Heading 5
|
|
20
|
+
|
|
21
|
+
###### Heading 6
|
|
22
|
+
:::
|
|
23
|
+
|
|
24
|
+
```md
|
|
25
|
+
# Heading 1
|
|
26
|
+
## Heading 2
|
|
27
|
+
### Heading 3
|
|
28
|
+
#### Heading 4
|
|
29
|
+
##### Heading 5
|
|
30
|
+
###### Heading 6
|
|
31
|
+
```
|
|
32
|
+
::
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Paragraphs
|
|
3
|
+
description: Basic text content blocks.
|
|
4
|
+
icon: lucide:text
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
16
|
+
```
|
|
17
|
+
::
|
|
18
|
+
|
|
19
|
+
## Line breaks
|
|
20
|
+
|
|
21
|
+
In Markdown, line breaks aren't automatically handled. To insert a line break within a paragraph, add a backslash :shortcut{value="\"} at the end of the line. This inserts a `<br />` tag.
|
|
22
|
+
|
|
23
|
+
::stack
|
|
24
|
+
:::div{.p-4}
|
|
25
|
+
A first line with a line break.\
|
|
26
|
+
A second line in the same paragraph.
|
|
27
|
+
|
|
28
|
+
Another paragraph.
|
|
29
|
+
:::
|
|
30
|
+
|
|
31
|
+
```md
|
|
32
|
+
A first line with a line break.\
|
|
33
|
+
A second line in the same paragraph.
|
|
34
|
+
|
|
35
|
+
Another paragraph.
|
|
36
|
+
```
|
|
37
|
+
::
|
|
38
|
+
|
|
39
|
+
You can use :shortcut{value="Shift + Enter"} to achieve the same result more conveniently.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Lists
|
|
3
|
+
description: Ordered and unordered list elements.
|
|
4
|
+
icon: lucide:list
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Unordered List
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
- Foo
|
|
12
|
+
- Bar
|
|
13
|
+
- Baz
|
|
14
|
+
:::
|
|
15
|
+
|
|
16
|
+
```md
|
|
17
|
+
- Foo
|
|
18
|
+
- Bar
|
|
19
|
+
- Baz
|
|
20
|
+
```
|
|
21
|
+
::
|
|
22
|
+
|
|
23
|
+
## Ordered List
|
|
24
|
+
|
|
25
|
+
::stack
|
|
26
|
+
:::div{.p-4}
|
|
27
|
+
1. Foo
|
|
28
|
+
2. Bar
|
|
29
|
+
3. Baz
|
|
30
|
+
:::
|
|
31
|
+
|
|
32
|
+
```md
|
|
33
|
+
1. Foo
|
|
34
|
+
2. Bar
|
|
35
|
+
3. Baz
|
|
36
|
+
```
|
|
37
|
+
::
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Links
|
|
3
|
+
description: HTML anchor elements for navigation.
|
|
4
|
+
icon: lucide:link
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
[Link](/getting-started/introduction)
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
[Link](/getting-started/introduction)
|
|
16
|
+
```
|
|
17
|
+
::
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Images
|
|
3
|
+
description: HTML image elements with alt text and source URL.
|
|
4
|
+
icon: lucide:image
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+

|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+

|
|
16
|
+
```
|
|
17
|
+
::
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Blockquotes
|
|
3
|
+
description: HTML blockquote elements for quotations.
|
|
4
|
+
icon: lucide:quote
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
12
|
+
:::
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
16
|
+
```
|
|
17
|
+
::
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Code Blocks
|
|
3
|
+
description: Fenced code blocks with syntax highlighting and additional features.
|
|
4
|
+
icon: lucide:code-2
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
```ts
|
|
12
|
+
export default () => {
|
|
13
|
+
console.log('Code block');
|
|
14
|
+
};
|
|
15
|
+
```
|
|
16
|
+
:::
|
|
17
|
+
|
|
18
|
+
````md
|
|
19
|
+
```ts
|
|
20
|
+
export default () => {
|
|
21
|
+
console.log('Code block');
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
````
|
|
25
|
+
::
|
|
26
|
+
|
|
27
|
+
### With Title
|
|
28
|
+
|
|
29
|
+
::stack
|
|
30
|
+
:::div{.p-4}
|
|
31
|
+
```ts [nuxt.config.ts]
|
|
32
|
+
export default defineNuxtConfig({
|
|
33
|
+
// My Nuxt config
|
|
34
|
+
});
|
|
35
|
+
```
|
|
36
|
+
:::
|
|
37
|
+
|
|
38
|
+
````md
|
|
39
|
+
```ts [nuxt.config.ts]
|
|
40
|
+
export default defineNuxtConfig({
|
|
41
|
+
// My Nuxt config
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
````
|
|
45
|
+
::
|
|
46
|
+
|
|
47
|
+
### Highlight Lines
|
|
48
|
+
|
|
49
|
+
::stack
|
|
50
|
+
:::div{.p-4}
|
|
51
|
+
```ts{2}
|
|
52
|
+
export default () => {
|
|
53
|
+
console.log('Code block');
|
|
54
|
+
};
|
|
55
|
+
```
|
|
56
|
+
:::
|
|
57
|
+
|
|
58
|
+
````md
|
|
59
|
+
```ts{2}
|
|
60
|
+
export default () => {
|
|
61
|
+
console.log('Code block');
|
|
62
|
+
};
|
|
63
|
+
```
|
|
64
|
+
````
|
|
65
|
+
::
|
|
66
|
+
|
|
67
|
+
### Line Numbers
|
|
68
|
+
|
|
69
|
+
::stack
|
|
70
|
+
:::div{.p-4}
|
|
71
|
+
```ts{1} line-numbers
|
|
72
|
+
// line-numbers is enabled
|
|
73
|
+
const line2 = 'This is line 2';
|
|
74
|
+
const line3 = 'This is line 3';
|
|
75
|
+
```
|
|
76
|
+
:::
|
|
77
|
+
|
|
78
|
+
````md
|
|
79
|
+
```ts{1} line-numbers
|
|
80
|
+
// line-numbers is enabled
|
|
81
|
+
const line2 = 'This is line 2';
|
|
82
|
+
const line3 = 'This is line 3';
|
|
83
|
+
```
|
|
84
|
+
````
|
|
85
|
+
::
|
|
86
|
+
|
|
87
|
+
### Fixed Height
|
|
88
|
+
|
|
89
|
+
::stack
|
|
90
|
+
:::div{.p-4}
|
|
91
|
+
```ts height=150
|
|
92
|
+
const parsedMeta = computed(() => {
|
|
93
|
+
const split = meta?.split(' ') ?? [];
|
|
94
|
+
const params = new Map<string, string | undefined>();
|
|
95
|
+
|
|
96
|
+
for (const param of split) {
|
|
97
|
+
const [key, val] = param.split('=');
|
|
98
|
+
params.set(key, val);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return params;
|
|
102
|
+
});
|
|
103
|
+
```
|
|
104
|
+
:::
|
|
105
|
+
|
|
106
|
+
````md
|
|
107
|
+
```ts height=150
|
|
108
|
+
const parsedMeta = computed(() => {
|
|
109
|
+
const split = meta?.split(' ') ?? [];
|
|
110
|
+
const params = new Map<string, string | undefined>();
|
|
111
|
+
|
|
112
|
+
for (const param of split) {
|
|
113
|
+
const [key, val] = param.split('=');
|
|
114
|
+
params.set(key, val);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return params;
|
|
118
|
+
});
|
|
119
|
+
```
|
|
120
|
+
````
|
|
121
|
+
::
|
|
122
|
+
|
|
123
|
+
### Custom Icon
|
|
124
|
+
|
|
125
|
+
::stack
|
|
126
|
+
:::div{.p-4}
|
|
127
|
+
```ts [Custom Icon] icon=lucide:code-xml line-numbers
|
|
128
|
+
// line-numbers is enabled
|
|
129
|
+
const line2 = 'This is line 2';
|
|
130
|
+
const line3 = 'This is line 3';
|
|
131
|
+
```
|
|
132
|
+
:::
|
|
133
|
+
|
|
134
|
+
````md
|
|
135
|
+
```ts [Custom Icon] icon=lucide:code-xml line-numbers
|
|
136
|
+
// line-numbers is enabled
|
|
137
|
+
const line2 = 'This is line 2';
|
|
138
|
+
const line3 = 'This is line 3';
|
|
139
|
+
```
|
|
140
|
+
````
|
|
141
|
+
::
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Inline Code
|
|
3
|
+
description: Inline code snippets with optional syntax highlighting.
|
|
4
|
+
icon: lucide:code
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
::stack
|
|
10
|
+
:::div{.p-4}
|
|
11
|
+
`code inline`
|
|
12
|
+
|
|
13
|
+
`const codeInline: string = 'highlighted code inline'`{lang="ts"}
|
|
14
|
+
:::
|
|
15
|
+
|
|
16
|
+
```md
|
|
17
|
+
`code inline`
|
|
18
|
+
|
|
19
|
+
`const codeInline: string = 'highlighted code inline'`{lang="ts"}
|
|
20
|
+
```
|
|
21
|
+
::
|