ceph/admin/rtd-checkout-main
David Galloway 055fe1f825 .readthedocs.yml: Always build latest doc/releases pages
We don't backport PRs merged into doc/releases.  Therefore, when one browses to an older Ceph release version on docs.ceph.com (e.g., https://docs.ceph.com/en/pacific/), the information is out of date at best.

The doc/releases page is only accurate if browsing https://docs.ceph.com/en/latest/, for example.

So this post_checkout command will make sure we've checked out doc/releases from main before building and publishing.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2022-07-20 12:14:32 -04:00

7 lines
119 B
Plaintext
Executable File

# See .readthedocs.yml
set -ex
if git symbolic-ref HEAD; then
git checkout origin/main -- doc/releases
fi
git status