Docs
UI Modules
UI Modules
Visual components available for writing documentation in .mdx
Available components
| Component | When to use |
|---|---|
DocHeader | Open the page with standardized title and description |
CodeBlock | Display a single command/snippet with copy button |
CodeTabs + CodeTabItem | Show code variations (OS, language, environment) |
Steps + Step | Describe sequential flows with timeline visuals |
DocHeader
<DocHeader title="Configuration" description="How to prepare the environment for MDX rendering" />
CodeBlock
<CodeBlock> artisaan docs build </CodeBlock>
Use for short, objective snippets.
CodeTabs
Rendered example:
artisaan docs syncUsage example:
<CodeTabs>
<CodeTabItem label="MacOS/Linux">
artisaan docs sync
</CodeTabItem>
<CodeTabItem label="Windows">
artisaan.exe docs sync
</CodeTabItem>
</CodeTabs>Steps
<Steps>
<Step title="Create file" variant="active" code="docs/ui/modules.mdx">
Create the file for the desired route.
</Step>
<Step title="Add content" code="DocHeader + sections + examples">
Structure content in clear blocks.
</Step>
</Steps>Recommended editorial pattern
- Always start with
DocHeader. - Use
h2for sections andh3for details. - Keep one idea per section to improve sidebar navigation.
- Prefer short examples that users can copy directly.
Coming Soon
Deploy your docs
Host your Artisaan documentation on our edge network. Fast, secure, and always in sync with git.
Deploy NowPowered by Artisaan CLIv0.1.4