]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: remove rtd main checkout
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 15 Nov 2022 20:03:04 +0000 (15:03 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 19 Nov 2022 13:46:17 +0000 (08:46 -0500)
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>
(cherry picked from commit 1f056ea5d42a1cf21522396ddd12dc95cd7077b5)

.readthedocs.yml
admin/rtd-checkout-main [deleted file]

index 8fcdfee9326671c4f0fff44f500b6d4ab2acc5ed..f51969084f0cf644839abb173012290f38854ec6 100644 (file)
@@ -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 (executable)
index 931816d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# See .readthedocs.yml
-set -ex
-if git symbolic-ref HEAD; then
-  git checkout origin/main -- doc/releases
-fi
-git status