jimporter / mike

Manage multiple versions of your MkDocs-powered documentation via Git
BSD 3-Clause "New" or "Revised" License
547 stars 47 forks source link

Use `canonical_version` to defer Google etc. indexing old docs, but how? #177

Closed jnummelin closed 1 year ago

jnummelin commented 1 year ago

In https://github.com/jimporter/mike/issues/159#issuecomment-1597517697 canonical_version was mentioned to tell Google to prefer the latest version.

Unfortunately I see no documentation on it, would anyone be able to provide some examples how that is supposed to be used?

In our case we produce docs for each version we release. We've ended up in situation where Google sometimes takes the user to VERY old version of the docs. Essentially we'd like to Google always prefer only the latest stable release. Can we do that with canonical_version?