Skip to content

Commit 817a3a8

Browse files
feat: add astrobook
1 parent 97a0192 commit 817a3a8

File tree

4 files changed

+143
-0
lines changed

4 files changed

+143
-0
lines changed

astro.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import robotsTxt from "astro-robots-txt";
77

88
import vercel from "@astrojs/vercel";
99
import { getSiteUrl } from "./src/lib/getSiteURL";
10+
import astrobook from "astrobook";
1011

1112
// https://astro.build/config
1213
export default defineConfig({
@@ -44,6 +45,11 @@ export default defineConfig({
4445
!page.endsWith("/attendee") && !page.endsWith("/events/locations"),
4546
}),
4647
robotsTxt(),
48+
astrobook({
49+
subpath: "/branding/components",
50+
css: ["./src/styles/globals.css"],
51+
title: "Components | Fork it! Community",
52+
}),
4753
],
4854

4955
adapter: vercel({ isr: true }),

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"astro-robots-txt": "1.0.0",
4343
"astro-seo": "0.8.4",
4444
"astro-seo-schema": "5.0.0",
45+
"astrobook": "0.8.6",
4546
"class-variance-authority": "0.7.1",
4647
"clsx": "2.1.1",
4748
"dayjs": "1.11.13",

pnpm-lock.yaml

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { Button, type ButtonProps } from "./button";
2+
3+
export default {
4+
component: Button,
5+
};
6+
7+
export const Default = {
8+
args: {
9+
children: "Default",
10+
} satisfies ButtonProps,
11+
};
12+
13+
export const Secondary = {
14+
args: {
15+
children: "Secondary",
16+
variant: "secondary",
17+
} satisfies ButtonProps,
18+
};
19+
20+
export const Link = {
21+
args: {
22+
children: "Link",
23+
variant: "link",
24+
} satisfies ButtonProps,
25+
};
26+
27+
export const LinkNeutral = {
28+
args: {
29+
children: "Link Neutral",
30+
variant: "link-neutral",
31+
} satisfies ButtonProps,
32+
};

0 commit comments

Comments
 (0)