]> git.proxmox.com Git - ceph.git/blob - ceph/admin/rtd-checkout-main
829d7c384699137ec64e9da45f0f3732e7a4de69
[ceph.git] / ceph / admin / rtd-checkout-main
1 # See .readthedocs.yml
2 set -ex
3 re='^[0-9]+$'
4 if [[ $READTHEDOCS_VERSION =~ $re ]]; then
5 echo "Building docs for PR $READTHEDOCS_VERSION. Will not check out doc/releases from main branch."
6 else
7 echo "Building docs for $READTHEDOCS_VERSION branch. Will check out doc/releases from main branch."
8 git checkout origin/main -- doc/releases
9 fi
10 git status