Skip to content

Commit

Permalink
feat(web): update menu links
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandotdev committed May 13, 2024
1 parent a7b1c3a commit 4d96c7a
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 16 deletions.
1 change: 0 additions & 1 deletion apps/web/app/docs/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function DocsLayout({ children }: DocsLayoutProps) {
return (
<div className="flex min-h-screen flex-col">
<div className="container flex-1 mx-auto">

<div className="flex-1 md:grid md:grid-cols-[240px_1fr] md:gap-6 lg:grid-cols-[260px_1fr] lg:gap-10">
<aside className="fixed top-14 h-[calc(100vh-3.5rem)] hidden w-full shrink-0 pt-8 pr-2 md:sticky md:block">
<ScrollArea className="h-full">
Expand Down
3 changes: 1 addition & 2 deletions apps/web/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Link from 'next/link'

const links = [
{ name: 'Docs', path: '/' },
{ name: 'Components', path: '/' },
{ name: 'Docs', path: '/docs/getting-started/introduction' },
{ name: 'FAQ', path: '/' },
]

Expand Down
8 changes: 1 addition & 7 deletions apps/web/components/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { DocsSearch } from './docs-search'
import { Icons } from './icons'

const links = [
{ name: 'Documentation', path: '/docs' },
{ name: 'Components', path: '/docs/components/accordion' },
{ name: 'Documentation', path: '/docs/getting-started/introduction' },
{ name: 'FAQ', path: '/faq' },
]

Expand Down Expand Up @@ -37,11 +36,6 @@ export default function Menu() {

<DocsSearch />
<div className="flex items-center gap-x-1">
<Button asChild variant="ghost" size="icon">
<Link href="https://github.com/Open-Lab-dev/openui">
<Icons.Twitter className="size-6" />
</Link>
</Button>
<Button asChild variant="ghost" size="icon">
<Link href="https://github.com/Open-Lab-dev/openui">
<Icons.GitHub className="size-6" />
Expand Down
1 change: 0 additions & 1 deletion apps/web/components/sidebar-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export function DocsSidebarNavItems({ items }: DocsSidebarNavItemsProps) {
href={item.href!}
className="!font-light"
target={item.external ? '_blank' : ''}
rel={item.external ? 'noreferrer' : ''}
>
{item.title}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion apps/web/constants/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const docsConfig = {
items: [
{
title: 'Introduction',
href: '/docs/getting-started',
href: '/docs/getting-started/introduction',
},
{
title: 'Installation',
Expand Down
4 changes: 1 addition & 3 deletions apps/web/lib/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ function getToc() {

export type TableOfContents = Items

export async function getTableOfContents(
content: string,
): Promise<TableOfContents> {
export async function getTableOfContents(content: string): Promise<TableOfContents> {
const result = await remark().use(getToc).process(content)

return result.data
Expand Down
2 changes: 1 addition & 1 deletion apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const nextConfig = {
return [
{
source: '/docs',
destination: '/docs/getting-started',
destination: '/docs/getting-started/introduction',
permanent: true,
},
{
Expand Down

0 comments on commit 4d96c7a

Please sign in to comment.