diff --git a/.readthedocs.yml b/.readthedocs.yml index 8fcdfee93266..f51969084f0c 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,10 +1,6 @@ --- # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details -# -# The pre_build command checks if we're building a named branch (i.e., not a PR). -# If so, check out doc/releases from the main branch before building so -# it's always up to date on docs.ceph.com/en/*. version: 2 formats: [] @@ -15,9 +11,6 @@ build: apt_packages: - ditaa - graphviz - jobs: - pre_build: - - bash admin/rtd-checkout-main python: install: - requirements: admin/doc-requirements.txt diff --git a/admin/rtd-checkout-main b/admin/rtd-checkout-main deleted file mode 100755 index 829d7c384699..000000000000 --- a/admin/rtd-checkout-main +++ /dev/null @@ -1,10 +0,0 @@ -# See .readthedocs.yml -set -ex -re='^[0-9]+$' -if [[ $READTHEDOCS_VERSION =~ $re ]]; then - echo "Building docs for PR $READTHEDOCS_VERSION. Will not check out doc/releases from main branch." -else - echo "Building docs for $READTHEDOCS_VERSION branch. Will check out doc/releases from main branch." - git checkout origin/main -- doc/releases -fi -git status