Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { generateNav } from "./config/nav.js";
import { generateAllSidebars } from "./config/sidebar.js";
import { configureMarkdown } from "./config/markdown.js";
import { generateSitemap } from "./config/sitemap.js";
import { createMrpPlugin } from "@izumisy/vitepress-plugin-react-preview";

const mrp = createMrpPlugin({
css: "@tailor-platform/app-shell/styles",
});

const docsDir = path.join(process.cwd(), "docs");

Expand Down Expand Up @@ -37,6 +42,7 @@ export default withMermaid(
optimizeDeps: {
include: ["mermaid"],
},
plugins: [...mrp.vite()],
},

themeConfig: {
Expand Down Expand Up @@ -92,7 +98,10 @@ export default withMermaid(
},

markdown: {
config: configureMarkdown,
config(md) {
md.use(mrp.markdownIt);
configureMarkdown(md);
},
},
}),
);
2 changes: 2 additions & 0 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import GitHubIcon from "./components/icons/GitHubIcon.vue";
import Tag from "./components/Tag.vue";
import DeprecatedTag from "./components/DeprecatedTag.vue";
import PreviewTag from "./components/PreviewTag.vue";
import PreviewBlock from "@izumisy/vitepress-plugin-react-preview/PreviewBlock.vue";

// Tailor brand theme styles (order matters!)
import "./styles/vars.css"; // Brand colors & CSS variables (must be first)
Expand All @@ -30,6 +31,7 @@ const theme: Theme = {
app.component("Tag", Tag);
app.component("DeprecatedTag", DeprecatedTag);
app.component("PreviewTag", PreviewTag);
app.component("PreviewBlock", PreviewBlock);
},
setup() {
onMounted(() => {
Expand Down
18 changes: 9 additions & 9 deletions docs/app-shell/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ description: Styled button with multiple variants and sizes

The `Button` component is a styled button with multiple visual variants and sizes. It supports rendering as a custom element via the `render` prop (Base UI render pattern).

## Import
## Basic Usage

```tsx
```tsx preview wrap="row"
import { Button } from "@tailor-platform/app-shell";
```

## Basic Usage

```tsx
<Button>Click me</Button>
<Button variant="outline">Outline</Button>
<Button variant="destructive">Delete</Button>
export default (
<>
<Button>Click me</Button>
<Button variant="outline">Outline</Button>
<Button variant="destructive">Delete</Button>
</>
)
```

## Props
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"sync:app-shell": "npm --prefix scripts/docs-sync start -- app-shell"
},
"devDependencies": {
"@izumisy/vitepress-plugin-react-preview": "^0.3.0",
"@tailor-platform/app-shell": "^1.1.1",
"@types/markdown-it": "^14.1.2",
"@types/markdown-it-container": "^4.0.0",
"@types/node": "^25.3.3",
Expand All @@ -22,6 +24,8 @@
"mermaid": "11.15.0",
"oxfmt": "0.44.0",
"oxlint": "1.64.0",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"remark-frontmatter": "^5.0.0",
"remark-mdx": "^3.1.1",
"remark-parse": "^11.0.0",
Expand Down
Loading
Loading