stan-dev / docs

Documentation for the Stan language and CmdStan
https://mc-stan.org/docs/
Other
38 stars 108 forks source link

Add a `<link rel="canonical"` entry to old docs pages #710

Closed WardBrian closed 7 months ago

WardBrian commented 7 months ago

Submission Checklist

Summary

This is one of the recommended methods by Google to improve search indexing when you have a lot of similar pages, like what our versioned docs result in.

I think I meant to do this as part of https://github.com/stan-dev/docs/issues/532 but forgot.

The actual changes in this PR:

  1. Updated link_to_latest.py to add this when it adds the re-directs
  2. Go back through our previous versions and add this based on the link it is currently using as a redirect (after fixing them, #709). This was done in an automated way, so I don't think every single change needs to be verified, because this also:
  3. Updated old_link_check.py to ensure these also stay up to date.

Copyright and Licensing

Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):

By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: