ocaml.org
ocaml.org copied to clipboard
Cache the documentation status for all versions of a package
I think we need to cache the documentation status (exists / does not exist) for every version of a package.
Why?
- As Sonja mentions in https://github.com/ocaml/ocaml.org/issues/1343, we sometimes see 404 errors on the documentation under the latest URL. This is when a package has been added to opam-repository and ocaml.org has picked up the new package info - but the documentation has not been built yet. It would be great to be able to add a redirect to the newest package version that has docs on ocaml.org
- In an eventual overhaul of the package version switcher we want to show the documentation status of any version of the package
- in the package search results, it will be nice to show whether there's docs
@sabine this is the same thing I'm working on, right?