Skip to content

Commit

Permalink
Docs: add redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Dec 18, 2024
1 parent 177ba67 commit 0f54234
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/docs/content/docs/ui/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"theme",
"components",
"mdx",
"blocks"
"layouts"
]
}
14 changes: 14 additions & 0 deletions apps/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ const config = {
},
],
},
async redirects() {
return [
{
source: '/docs/ui/blocks/layout',
destination: '/docs/ui/layouts/docs',
permanent: true,
},
{
source: '/docs/ui/blocks/:path*',
destination: '/docs/ui/layouts/:path*',
permanent: true,
},
];
},
};

const withMDX = createMDX();
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const neutral: Preset = {
'popover-foreground': '0 0% 88%',
card: '0 0% 9.8%',
'card-foreground': '0 0% 98%',
border: '0 0% 18%',
border: '0 0% 14%',
primary: '0 0% 98%',
'primary-foreground': '0 0% 9%',
secondary: '0 0% 12.9%',
Expand Down

0 comments on commit 0f54234

Please sign in to comment.