diff --git a/app/(docs)/docs/[...slug]/page.tsx b/app/(docs)/docs/[...slug]/page.tsx index ae883cb..b0fa6a5 100644 --- a/app/(docs)/docs/[...slug]/page.tsx +++ b/app/(docs)/docs/[...slug]/page.tsx @@ -65,12 +65,17 @@ export default async function Page({ params }: { params: Promise<{ slug: string[ if (page && page.raw_url) { const res = await fetch(page.raw_url) const mdx = await res.text() + console.log(`Readme found for ${page.name}`) + console.log(page) return ( ) } else { + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + page && console.log(`No readme for ${page.name}`) + console.log(page) return } } diff --git a/docs.ts b/docs.ts index 83916cf..92b3b66 100644 --- a/docs.ts +++ b/docs.ts @@ -26,7 +26,7 @@ const docsSetup: { subs: Sub[] } = { ] }, { - "name": "Colbalt", + "name": "Cobalt", "yearsActive": "2021", "logo": "wsu-logo.svg", "sections": [] diff --git a/lib/docs.ts b/lib/docs.ts index f97b5ad..5c3f5f8 100644 --- a/lib/docs.ts +++ b/lib/docs.ts @@ -5,7 +5,7 @@ import path from "path"; import {notFound} from "next/dist/client/components/not-found"; export const indexDocs = async () => { - const octokit = new Octokit({ auth: process.env.GITHUB_PAT }) + const octokit = new Octokit({ auth: process.env.DOCS_PAT }) const docsIndex = docsSetup