Skip to content

Commit b9675cc

Browse files
committed
fix(website): update source paths for Tailwind scanning
1 parent 51c08b2 commit b9675cc

File tree

2 files changed

+2
-28
lines changed

2 files changed

+2
-28
lines changed

apps/website/app/base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
@import "fumadocs-twoslash/twoslash.css";
55
@import "tailwindcss-animated";
66

7-
@source "../deps/fumadocs-ui/**/*.js";
7+
@source "../node_modules/fumadocs-ui/dist";
88

99
@source ".";
1010
@source "../components";
1111
@source "../content";
12+
@source './components/**/*.{js,ts,jsx,tsx,mdx}';

scripts/update-website.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,3 @@ const changelogWithFrontmatter = [
7070

7171
// Write the processed changelog to the website content directory
7272
await fs.writeFile(path.join("apps", "website", "content", "docs", "changelog.md"), changelogWithFrontmatter);
73-
74-
// Workaround for @tailwindcss/postcss plugin not working with symlinked node_modules:
75-
// 1. Find the actual (real) path of the symlinked fumadocs-ui
76-
// 2. Copy the entire directory to a non-symlinked location in the website deps
77-
// 3. This ensures Tailwind can properly process the CSS in these files
78-
const linkPath = path.join("apps", "website", "node_modules", "fumadocs-ui", "dist");
79-
const realPath = await fs.realpath(linkPath);
80-
const distPath = path.join("apps", "website", "deps", "fumadocs-ui");
81-
await fs.mkdir(distPath, { recursive: true });
82-
await fs.rm(distPath, { force: true, recursive: true });
83-
await fs.cp(
84-
realPath,
85-
distPath,
86-
{ dereference: true, recursive: true }, // dereference ensures we copy actual files, not symlinks
87-
);
88-
89-
// Commented out: Generate tailwindcss source mapping configuration
90-
// This would tell Tailwind which directories to scan for CSS classes
91-
// const sourcePath = path.join("apps", "website", "app", "sources.css");
92-
// const sourceCode = [
93-
// `@source "../deps/fumadocs-ui/**/*.js";`,
94-
// '@source ".";',
95-
// '@source "../components";',
96-
// '@source "../content";',
97-
// ].join("\n");
98-
99-
// await fs.writeFile(sourcePath, sourceCode);

0 commit comments

Comments
 (0)