Docs deploy fails: generated module pages lose their frontmatter

未关闭
#741 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@emmanuel-musau 已经在做这个了。

开始于 2026年11月24日。

  • #742 来自 @emmanuel-musau —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

bug documentation

The Deploy Documentation workflow fails on main since ab8cfd60, so https://intersectmbo.github.io/evolution-sdk/ has been stuck on the 13 Nov build (010e5fa8).

The build stops with 197 errors like:

[MDX] invalid frontmatter in docs/content/docs/modules/Address.mdx:
- title: Invalid input: expected string, received undefined

Cause

@effect/docgen 0.5.2 starts every generated page with a newline before the --- frontmatter, so Prettier never sees it as frontmatter and formats the opening --- as a thematic break. Prettier 3.9.10 printed that break as ---, which fumadocs still read as frontmatter. #734 moved the lockfile to Prettier 3.10.1, which prints it as ***, so every module page loses its title.

Reproduced on main by running the deploy steps locally (build, docgen, copy-evolution-docs): every generated page starts with ***.

Fix

Move to @effect/docgen 4.x, which writes the frontmatter at the top of the file. It is now published from the Effect monorepo (packages/tools/docgen), not Effect-TS/docgen.

The dependabot bump in #724 does not work as is: docgen 4 depends on effect 4, and without a root effect entry pnpm resolves @effect/vitest against effect 4.1.5, so every devnet test file fails to load (Cannot find module …/effect/dist/FastCheck.js).

主要语言
TypeScript
星标
22
派生
34
平均合并
16 小时 53 分钟
30 天内合并 PR
10

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

IntersectMBO/evolution-sdk 的其他 Issue

查看 IntersectMBO/evolution-sdk 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。