+
Overview
)}
@@ -344,7 +224,6 @@ function SidebarSection({
item={item}
active={active}
pathname={pathname}
- branchQuery={branchQuery}
hasSubpages={hasSubpages}
/>
);
@@ -359,13 +238,11 @@ function SidebarItemWithSubpages({
item,
active,
pathname,
- branchQuery,
hasSubpages,
}: {
item: ListItem;
active: boolean;
pathname: string;
- branchQuery: string;
hasSubpages: boolean | undefined;
}) {
const showSubpages = hasSubpages && active;
@@ -373,7 +250,7 @@ function SidebarItemWithSubpages({
return (
@@ -412,7 +289,7 @@ function SidebarItemWithSubpages({
return (
{/* Inline logo when left pane is hidden */}
{!isKnownPage && (
diff --git a/landing/lib/ai-chat/route.ts b/landing/lib/ai-chat/route.ts
index 9bb3fc514c..5799b69986 100644
--- a/landing/lib/ai-chat/route.ts
+++ b/landing/lib/ai-chat/route.ts
@@ -195,7 +195,7 @@ async function githubSearchCode(query: string, path?: string) {
};
}
-async function githubGetFileContent(path: string, ref = "canary") {
+async function githubGetFileContent(path: string, ref = "main") {
const url = `${GITHUB_API}/repos/${GITHUB_REPO}/contents/${encodeURIComponent(path)}?ref=${ref}`;
const res = await fetch(url, {
diff --git a/landing/lib/source.ts b/landing/lib/source.ts
index ec1ba13396..fdc03e7140 100644
--- a/landing/lib/source.ts
+++ b/landing/lib/source.ts
@@ -1,21 +1,12 @@
import { loader } from "fumadocs-core/source";
import { toFumadocsSource } from "fumadocs-mdx/runtime/server";
-import { blogCollection, canaryDocs, docs } from "@/.source/server";
+import { blogCollection, docs } from "@/.source/server";
export const source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
});
-export const canarySource = loader({
- baseUrl: "/docs",
- source: canaryDocs.toFumadocsSource(),
-});
-
-export function getSource(branch?: string) {
- return branch === "canary" ? canarySource : source;
-}
-
export const blogs = loader({
baseUrl: "/blog",
source: toFumadocsSource(blogCollection, []),
diff --git a/landing/source.config.ts b/landing/source.config.ts
index 1e89268402..a61c01203b 100644
--- a/landing/source.config.ts
+++ b/landing/source.config.ts
@@ -21,16 +21,6 @@ export const docs = defineDocs({
},
});
-export const canaryDocs = defineDocs({
- dir: "../docs/content/docs",
- docs: {
- postprocess: {
- includeProcessedMarkdown: true,
- },
- async: true,
- },
-});
-
export const blogCollection = defineCollections({
type: "doc",
dir: "../docs/content/blogs",