mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
Merge pull request #46917 from ceph/releases-always-main
.readthedocs.yml: Always build latest doc/releases pages
This commit is contained in:
commit
103fe44f3c
@ -1,15 +1,23 @@
|
||||
---
|
||||
# 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: []
|
||||
build:
|
||||
image: latest
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.8"
|
||||
apt_packages:
|
||||
- ditaa
|
||||
jobs:
|
||||
pre_build:
|
||||
- bash admin/rtd-checkout-main
|
||||
python:
|
||||
version: 3.8
|
||||
install:
|
||||
- requirements: admin/doc-requirements.txt
|
||||
- requirements: admin/doc-read-the-docs.txt
|
||||
|
6
admin/rtd-checkout-main
Executable file
6
admin/rtd-checkout-main
Executable file
@ -0,0 +1,6 @@
|
||||
# See .readthedocs.yml
|
||||
set -ex
|
||||
if git symbolic-ref HEAD; then
|
||||
git checkout origin/main -- doc/releases
|
||||
fi
|
||||
git status
|
Loading…
Reference in New Issue
Block a user