Skip to content

Commit 52ccac9

Browse files
committed
chore: update fumadocs-ui path and add tailwindcss-animated
1 parent c5fb8ef commit 52ccac9

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

apps/website/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ yarn-error.log*
2727
.vercel
2828
next-env.d.ts
2929

30-
components/fumadocs-ui
30+
deps/fumadocs-ui

apps/website/app/base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
@import "./theme.css";
33
@import "fumadocs-ui/css/preset.css";
44
@import "fumadocs-twoslash/twoslash.css";
5+
@import "tailwindcss-animated";
56

6-
@source "../components/fumadocs-ui/**/*.js";
7+
@source "../deps/fumadocs-ui/**/*.js";
78

89
@source ".";
910
@source "../components";

apps/website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"eslint-plugin-unicorn": "^57.0.0",
5959
"postcss": "^8.5.3",
6060
"tailwindcss": "^4.0.12",
61+
"tailwindcss-animated": "^2.0.0",
6162
"typescript": "^5.8.2",
6263
"typescript-eslint": "^8.26.0"
6364
}

pnpm-lock.yaml

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/update-website.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ await fs.writeFile(path.join("apps", "website", "content", "docs", "changelog.md
4444
// workaround for @tailwindcss/postcss plugin not working with symlinked node_modules
4545
const linkPath = path.join("apps", "website", "node_modules", "fumadocs-ui", "dist");
4646
const realPath = await fs.realpath(linkPath);
47-
const distPath = path.join("apps", "website", "components", "fumadocs-ui");
47+
const distPath = path.join("apps", "website", "deps", "fumadocs-ui");
48+
await fs.mkdir(distPath, { recursive: true });
4849
await fs.rm(distPath, { force: true, recursive: true });
4950
await fs.cp(
5051
realPath,
@@ -55,10 +56,10 @@ await fs.cp(
5556
// generate tailwindcss sources
5657
// const sourcePath = path.join("apps", "website", "app", "sources.css");
5758
// const sourceCode = [
59+
// `@source "../deps/fumadocs-ui/**/*.js";`,
5860
// '@source ".";',
5961
// '@source "../components";',
6062
// '@source "../content";',
61-
// `@source "../components/fumadocs-ui/**/*.js";`,
6263
// ].join("\n");
6364

6465
// await fs.writeFile(sourcePath, sourceCode);

0 commit comments

Comments
 (0)