I'm the maintainer of a popular tool that helps many projects to create documentation websites. We support versioning, which means that the documentation will be "fixed" to a specific released version of our project.
This page exists in many versions:
https://example.com/docs/next/getting-started(unreleased version, for early adopters)
https://example.com/docs/getting-started(upstream version, for up-to-date users)
As all these pages almost have the exact same content across versions (most of the time, not always). How does Google interpret that?
Ideally, I want the upstream documentation to be the doc that users find when searching on Google. What are the SEO best practices for this use case? Should I use one canonical URL per version per doc? Or just consider that the canonical URL should be the URL of the upstream version?
Are there other meta tags to be aware of for versioned content?