Repository navigation
fix(docs): move to docgen 4 so generated pages keep their frontmatter - #742
Open
emmanuel-musau wants to merge 1 commit into
Open
emmanuel-musau wants to merge 1 commit into
emmanuel-musau wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #741. Supersedes #724.
Moves
@effect/docgenfrom 0.5.2 to 4.1.5, which writes the frontmatter at the top of each generated page, so the docs build no longer depends on how Prettier prints a thematic break. docgen 4 is released from the Effect monorepo (packages/tools/docgen, releases); Effect-TS/docgen stops at 0.5.2.Changes
package.json:@effect/docgen^4.1.5, andeffect^3.21.1at the root so@effect/viteststays on effect 3. Without it, docgen's effect 4 is picked up and the devnet tests fail to load, as on chore(deps-dev): bump @effect/docgen from 0.5.2 to 4.1.2 #724.packages/evolution/docgen.json: drops the 8 keys docgen 4's schema rejects and setssrcLink, so the new Source links point atpackages/evolution/src/…. The file validates against the installedschema.json.@exampleblocks in 9 files: fence changed from```typescriptto```ts. docgen 4 only takes an example as is when it starts with```ts; otherwise it wraps it in a second fence and the raw```typescriptline shows in the rendered block.Checks
pnpm install --frozen-lockfile,turbo run build(6/6),check:dts(7/7), lint (4/4),tsc -b.mdxstart with---sdk/client/Client.tsbecomesClient.ts) and the order of CBOR's type aliasesanyacross changed signatures drops from 439 to 1, and class methods show their full declaration instead oftoJSON()One known difference: docgen 4 drops the first inline comment of the
DataandDataEncodedtype aliases (// Constr (...)); the other comments stay.docgen 4 requires TypeScript below 7, which matters for #468.