From ed51267fd5e290bd7b542591178fdb647b11509e Mon Sep 17 00:00:00 2001 From: Marco Rougeth Date: Tue, 15 Nov 2022 01:23:02 +0000 Subject: [PATCH 1/4] Setup readthedocs --- .readthedocs.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000..d025ef229 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,9 @@ +version: 2 +build: + os: ubuntu-20.04 + tools: + python: "3.9" + commands: + - git checkout 3.11 + - make build + - rsync -r cpython/Doc/build/html/ _readthedocs/html From 2f47e030cfbe2f588ca5c8e0ecbc8506182ff3ff Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 4 May 2023 21:16:13 -0300 Subject: [PATCH 2/4] Update .readthedocs.yaml --- .readthedocs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d025ef229..6606830c7 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,9 +1,9 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: python: "3.9" commands: - git checkout 3.11 - - make build - - rsync -r cpython/Doc/build/html/ _readthedocs/html + - make build SPHINXERRORHANDLING="" + - cp -r cpython/Doc/build/html/ _readthedocs/html From 2c59ce8396488de547a60b49228aa2026bf6806b Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 4 May 2023 21:24:42 -0300 Subject: [PATCH 3/4] Create rtd directory in .readthedocs.yaml --- .readthedocs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6606830c7..1d000fa2a 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,4 +6,5 @@ build: commands: - git checkout 3.11 - make build SPHINXERRORHANDLING="" + - install -dm755 _readthedocs/html - cp -r cpython/Doc/build/html/ _readthedocs/html From f29d50586de8221e914d3a3bf22282593cdb5207 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 4 May 2023 21:26:09 -0300 Subject: [PATCH 4/4] Copy built docs, not the whole html dir in .readthedocs.yaml --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1d000fa2a..250c50e9e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,4 +7,4 @@ build: - git checkout 3.11 - make build SPHINXERRORHANDLING="" - install -dm755 _readthedocs/html - - cp -r cpython/Doc/build/html/ _readthedocs/html + - cp -r cpython/Doc/build/html/* _readthedocs/html