stan-dev / docs

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

Fix broken redirects, add script to check #709

Closed WardBrian closed 7 months ago

WardBrian commented 7 months ago

Submission Checklist

Summary

This fixes all remaining broken 'click here for the new version' links. I wrote a small Python script which checks these, which I also added here.

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): Simons Foundation

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

mitzimorris commented 7 months ago

link-checking script is great.

how did figure out and apply the mapping from old to new filenames?

WardBrian commented 7 months ago

how did figure out and apply the mapping from old to new filenames?

A mix - some I recognized immediately (like the binomial_log deprecation page), some I did a string search of a snippet on the old page until I found where that content lived now.

A few pages had been actually fully removed or moved from one manual to another, so I had to make a judgement call about the most relevant link, but those were rare.