Skip to content

Commit fb19407

Browse files
committed
Update docs
1 parent 0222c62 commit fb19407

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

apps/test/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import "tw-animate-css";
33

44
@custom-variant dark (&:is(.dark *));
5-
@source "../node_modules/streamdown/dist/index.js";
5+
@source "../node_modules/streamdown/dist/*.js";
66

77
@theme inline {
88
--color-background: var(--background);

apps/website/app/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@import "fumadocs-ui/css/preset.css";
44
@import "tw-animate-css";
55
@import "./styles/geistdocs.css";
6-
@source "../node_modules/streamdown/dist/index.js";
6+
@source "../node_modules/streamdown/dist/*.js";
77

88
@custom-variant dark (&:is(.dark *));
99

apps/website/content/docs/faq.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This prevents Vite from treating Streamdown as an external module during SSR, en
5656
Add a `@source` directive to your `globals.css` file with the path to Streamdown's distribution files:
5757

5858
```css title="globals.css"
59-
@source "../node_modules/streamdown/dist/index.js";
59+
@source "../node_modules/streamdown/dist/*.js";
6060
```
6161

6262
### Tailwind v3
@@ -66,7 +66,7 @@ Add Streamdown to your `content` array in `tailwind.config.js`:
6666
```js title="tailwind.config.js"
6767
content: [
6868
// ... your other content paths
69-
"./node_modules/streamdown/dist/**/*.js",
69+
"./node_modules/streamdown/dist/*.js",
7070
]
7171
```
7272

apps/website/content/docs/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Streamdown uses Tailwind CSS for styling. To ensure the styles are properly appl
4040
Add the following CSS source directive to your `globals.css` or main CSS file:
4141

4242
```css title="globals.css"
43-
@source "../node_modules/streamdown/dist/index.js";
43+
@source "../node_modules/streamdown/dist/*.js";
4444
```
4545

4646
Make sure the path matches the location of your `node_modules` folder relative to your CSS file.

packages/streamdown/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ npm i streamdown
3131
Then, update your Tailwind `globals.css` to include the following.
3232

3333
```css
34-
@source "../node_modules/streamdown/dist/index.js";
34+
@source "../node_modules/streamdown/dist/*.js";
3535
```
3636

3737
Make sure the path matches the location of the `node_modules` folder in your project. This will ensure that the Streamdown styles are applied to your project.

0 commit comments

Comments
 (0)