Repository navigation
docs: Mark old-version markdown pages and remove pre-4.0 setup steps - #973
Open
developerjamiu wants to merge 4 commits into
Open
developerjamiu wants to merge 4 commits into
developerjamiu wants to merge 4 commits 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.
AI answers still cite old docs versions for setup steps that no longer apply. The HTML pages of old versions already have
noindexand an "old version" banner, but their.mdcopies, 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..mdcopies. 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.txtandllms-full.txtare unchanged.verify_markdown_export.jsnow fails when a versioned page lacks the notice or a current page has it.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.dart installand adds it to the runner'sPATH, the same way the 4.1 project templates do./get-started-with-mininow goes to the real-time tutorial, and/get-started/creating-projectgoes 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
npm run build, thennode util/verify_markdown_export.js. Both should pass.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 asbuild/3.2.0/overview.md, should link to the latest intro page.build/next/index.md. The notice should say "unreleased".build/quickstart.md,build/llms.txtand anybuild/cloud/page. None should have the notice./get-started-with-miniand/get-started/creating-projecton the preview. Each should redirect.