Skip to content

docs: remove stale modern new/upgrade sections from commands reference#8773

Open
keepview wants to merge 1 commit into
mainfrom
docs/remove-v3-removed-commands
Open

docs: remove stale modern new/upgrade sections from commands reference#8773
keepview wants to merge 1 commit into
mainfrom
docs/remove-v3-removed-commands

Conversation

@keepview

Copy link
Copy Markdown
Contributor

Summary

modern new and modern upgrade were removed in Modern.js 3.0 (per the upgrade guide), but apis/app/commands.mdx (zh & en) still documented both commands in full — teaching users/AI agents to run commands that no longer exist, and contradicting the upgrade guide inside the same docs site (this also pollutes llms-full.txt and the upcoming bundled docs with two conflicting conclusions).

This PR removes both stale sections and replaces them with an info callout linking to the upgrade guide, keeping the still-valid <ServeCommand /> section.

Changes

  • docs/en/apis/app/commands.mdx: drop ## modern new / ## modern upgrade, add removal callout
  • docs/zh/apis/app/commands.mdx: same

Related

Part of the AI governance M1 work (agent knowledge supply): cleaning conflicting knowledge before bundling docs into the app-tools tarball.

Both commands were removed in Modern.js 3.0, but the commands reference
still documented them in full, contradicting the upgrade guide and
polluting llms.txt / bundled docs with outdated knowledge. Replace the
sections with an info callout linking to the upgrade guide.
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fb4194d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

Deploy Preview for modernjs-byted ready!

Name Link
🔨 Latest commit fb4194d
🔍 Latest deploy log https://app.netlify.com/projects/modernjs-byted/deploys/6a54f7eb6f7bca0008246ffe
😎 Deploy Preview https://deploy-preview-8773--modernjs-byted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant