Skip to content

docs: Mark old-version markdown pages and remove pre-4.0 setup steps - #973

Open
developerjamiu wants to merge 4 commits into
mainfrom
docs/old-version-markdown-notice
Open

developerjamiu wants to merge 4 commits into
mainfrom
docs/old-version-markdown-notice

Conversation

@developerjamiu

Copy link
Copy Markdown
Contributor

AI answers still cite old docs versions for setup steps that no longer apply. The HTML pages of old versions already have noindex and an "old version" banner, but their .md copies, which AI tools read, had neither. This PR adds the banner to those copies and removes the pre-4.0 setup steps left in the current docs. Part of GRO-12.

  • Version notice in .md copies. Pages in older and unreleased framework versions get a notice under the title and canonical URL. It has the same wording as the HTML banner and links to the same page in the latest version, or to the latest intro page when the page no longer exists. Current pages, Cloud pages, llms.txt and llms-full.txt are unchanged.
  • Verifier. verify_markdown_export.js now fails when a versioned page lacks the notice or a current page has it.
  • Index page. Removes Terraform from the Deployment line.
  • MCP server page. No longer tells readers to run serverpod create . in an existing project, because that overwrites the server and config files. It links to the manual setup in the upgrade guide instead.
  • Cloud CI guide. Installs the CLI with dart install and adds it to the runner's PATH, the same way the 4.1 project templates do.
  • Redirects. /get-started-with-mini now goes to the real-time tutorial, and /get-started/creating-project goes to the Quickstart. Both are old URLs that AI answers still link to.

The first commit has the plugin, the verifier, the redirects, the Cloud guide and the current docs. The second applies the same page fixes to 4.0.0 and 4.1.0.

How to test

  1. Run npm run build, then node util/verify_markdown_export.js. Both should pass.
  2. Open build/4.0.0/quickstart.md. The notice should be on line 5 and link to /quickstart.md. A 3.2.0 page with no match in the latest version, such as build/3.2.0/overview.md, should link to the latest intro page.
  3. Open build/next/index.md. The notice should say "unreleased".
  4. Open build/quickstart.md, build/llms.txt and any build/cloud/ page. None should have the notice.
  5. Open /get-started-with-mini and /get-started/creating-project on the preview. Each should redirect.

@developerjamiu developerjamiu self-assigned this Dec 2, 2026
@developerjamiu developerjamiu added the enhancement New feature or request label Dec 2, 2026

This branch has not been deployed

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant