fix(registry): point nx 22.7+ at astro-docs and index .mdoc files#87
Merged
Conversation
Nx 22.7.0 dropped the top-level `docs/` directory and migrated documentation to `astro-docs/src/content/docs/` in Markdoc (`.mdoc`) format, breaking publish-all for `npm/nx@22.7.2`. Add a versioned range for 22.7.0+ pointing at the new path, keep the old range for 17.0.0–22.6.x, and teach the doc scanner to recognise `.mdoc`. https://claude.ai/code/session_012qtew8ebkKeL7T6gaGGcTv
🦋 Changeset detectedLatest commit: c32f996 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Summary
publish-all --since 2failed onnpm/nx@22.7.2withDirectory not found: /tmp/context-git-…/docs. Nx 22.7.0 deleted the top-leveldocs/directory and migrated all documentation intoastro-docs/src/content/docs/as Markdoc (.mdoc) files (Astro Starlight site).registry/npm/nx.yaml— split into two version ranges:22.7.0+→astro-docs/src/content/docs,17.0.0–<22.7.0→docs(preserves the path already-published older versions used).packages/context/src/git.ts— add.mdoctoDOCUMENTATION_EXTENSIONS; previously.mdocfiles were silently skipped, so even the rightdocs_pathwould have produced zero files.packages/context/src/build.ts— extendparseMarkdown's title-stripping regex to handle.mdocfilenames..changeset/mdoc-extension-support.md— patch bump for@neuledge/context.Test plan
node packages/registry/dist/cli.js build nx 22.7.2→Built (1901 sections, 575936 tokens)17.0.0/21.0.0/22.6.5→docs;22.7.0/22.7.2/23.0.0→astro-docs/src/content/docspnpm lintpassespnpm testpasses (157 context + 37 registry tests)https://claude.ai/code/session_012qtew8ebkKeL7T6gaGGcTv
Generated by Claude Code