Skip to content

Commit ae19d9a

Browse files
committed
feat: improve ui and docs
1 parent 6f83a3f commit ae19d9a

File tree

8 files changed

+684
-102
lines changed

8 files changed

+684
-102
lines changed

.storybook/main.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,22 @@ const config: StorybookConfig = {
2727
docs: {
2828
autodocs: "tag",
2929
},
30+
previewHead: (head) => `
31+
${head}
32+
${
33+
process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID &&
34+
process.env.NEXT_PUBLIC_UMAMI_URL
35+
? `
36+
<script
37+
defer
38+
src="${process.env.NEXT_PUBLIC_UMAMI_URL}/script.js"
39+
data-website-id="${process.env.NEXT_PUBLIC_UMAMI_WEBSITE_ID}"
40+
></script>
41+
`
42+
: ""
43+
}
44+
<meta name="title" content="react-install-command" />
45+
<meta name="description" content="A React component for rendering a 'npm install <package name>' command block. Supports multiple package managers and themes. Drop it into your MDX code, a ShadCN UI component, a Tailwind codebase, use our built in styles or go unstyled. You choose." />
46+
`,
3047
};
3148
export default config;

0 commit comments

Comments
 (0)