Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Adds blog functionality using fumadocs-mdx collections alongside existing documentation.

Changes

Configuration

  • Defined blog collection in source.config.ts with defineCollections({ dir: 'content/blog', type: 'doc' })
  • Exported blogSource loader in lib/source.ts for blog content

Routes

  • Implemented unified blog page at app/blog/[[...slug]]/page.tsx:
    • No slug → renders listing page
    • With slug → renders individual post
  • Avoids Next.js route conflict between /blog and /blog/[...slug] by handling both in optional catch-all

Content

  • Added sample posts in content/blog/ with frontmatter: title, description, date, authors, tags
  • Posts render with MDX components and code highlighting

Navigation

  • Added "Blog" link to layout.config.tsx nav items
// Unified component handles both cases
export default async function BlogPage({ params }: { params: { slug?: string[] } }) {
  if (!params.slug || params.slug.length === 0) {
    return <BlogListing />; // Show all posts
  }
  const page = blogSource.getPage(params.slug);
  return <BlogPost page={page} />; // Individual post
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fumadocs.vercel.app
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

增加fumadocs blog功能


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Jan 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectql-site Ready Ready Preview, Comment Jan 20, 2026 3:08pm

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
…t annotations

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Add fumadocs blog feature Add fumadocs blog collection and routes Jan 20, 2026
Copilot AI requested a review from hotlong January 20, 2026 15:08
@huangyiirene huangyiirene marked this pull request as ready for review January 20, 2026 17:07
@github-actions
Copy link
Contributor

⚠️ No Changeset Found

This PR does not include a changeset file.
If this PR includes user-facing changes, please add a changeset by running:

pnpm changeset

@huangyiirene huangyiirene merged commit 3f7517e into main Jan 20, 2026
15 checks passed
@huangyiirene huangyiirene deleted the copilot/add-fumadocs-blog-feature branch January 20, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants