This is partial revert of
055fe1f825b0629b7685d6d3d4d629ffc37a2d7c.
We don't need to checkout main anymore. A followup commit will make HTTP
redirects possible via ReadTheDocs.
This commit does not exist in main. It will be forward ported once the
release branches appropriately redirect /en/$release/releases to
/en/latest/releases.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
---
# 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: []
apt_packages:
- ditaa
- graphviz
- jobs:
- pre_build:
- - bash admin/rtd-checkout-main
python:
install:
- requirements: admin/doc-requirements.txt
+++ /dev/null
-# 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