You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(docs): replace outdated Contentlayer with modern alternative #8
Currently, the Contentlayer library is outdated and no longer actively maintained.
One major issue: the remarkGfm plugin cannot be enabled, causing Markdown tables not to render.
Activity
Merge pull request #9 from Crokily/feat/refactor-docs
Crokily commentedon Sep 13, 2025
Finished
longsizhuo commentedon Apr 20, 2026
补充说明 — 三个 task 实际都已在迁移中完成,只是原 issue body 的 checkbox 没勾上。
验证(当前 main 仓库状态):
frontend/source.config.ts用fumadocs-mdx/config;frontend/lib/source.ts用fumadocs-core/source;无任何contentlayer*依赖app/docs/[...slug]/page.tsx已接 Fumadocs 数据源;lib/source.ts里的 transformer 在 leetcode 目录做拼音 slug 转换,多级 slug 通过getSlugs(path)递归处理package.json有fumadocs-ui@15.7.13;文档页用 Fumadocs 提供的渲染组件;mdx-components.tsx注册了 Fumadocs MDX shortcoderemarkGfm / 表格渲染也一并修复(Fumadocs 默认启用)。