Docs deploy fails: generated module pages lose their frontmatter

Đang mở
#741 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@emmanuel-musau đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #742 của @emmanuel-musau — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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).

Ngôn ngữ chính
TypeScript
Star
22
Fork
34
Merge trung bình
16 giờ 53 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của IntersectMBO/evolution-sdk

Tất cả issue của IntersectMBO/evolution-sdk

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.