From 6833f075455c8d70e81aece8ed6507dba5116bd9 Mon Sep 17 00:00:00 2001
From: dvelo <52332868+DeveloLongScript@users.noreply.github.com>
Date: Sat, 1 Mar 2025 17:47:05 -0600
Subject: [PATCH] fix(www): docs breadcrumb
---
apps/www/src/components/TextFromPathname.tsx | 22 --------------------
1 file changed, 22 deletions(-)
diff --git a/apps/www/src/components/TextFromPathname.tsx b/apps/www/src/components/TextFromPathname.tsx
index 271d54f..7430598 100644
--- a/apps/www/src/components/TextFromPathname.tsx
+++ b/apps/www/src/components/TextFromPathname.tsx
@@ -35,7 +35,6 @@ import {
BreadcrumbPage,
BreadcrumbSeparator,
} from "./ui/breadcrumb";
-import { allDocs } from "contentlayer/generated";
export default function TextFromPathname() {
const pathname = usePathname();
@@ -136,27 +135,6 @@ export default function TextFromPathname() {
>
)}
- {pathname?.startsWith("/docs/") && (
- <>
-
- Docs
-
-
-
- {
- allDocs.find(
- (c) =>
- c._raw.flattenedPath ===
- pathname
- ?.split("/")
- .splice(2, pathname?.split("/").length)
- .join("/")
- )?.title
- }
-
-
- >
- )}
>
);
}