Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/(docs)/docs/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ScrollArea className="prose prose-neutral h-full max-w-none overflow-y-auto p-8">
<MDXRemote source={mdx} options={options} />
</ScrollArea>
)
} else {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
page && console.log(`No readme for ${page.name}`)
console.log(page)
return <NoReadme name={slug.pop()||"ERROR"} />
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const docsSetup: { subs: Sub[] } = {
]
},
{
"name": "Colbalt",
"name": "Cobalt",
"yearsActive": "2021",
"logo": "wsu-logo.svg",
"sections": []
Expand Down
2 changes: 1 addition & 1 deletion lib/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down