From 44a891807cfb1d3c302c6eabc58da87dd1bf2f0b Mon Sep 17 00:00:00 2001
From: David Bauer <mail@david-bauer.net>
Date: Tue, 9 May 2023 23:27:30 +0200
Subject: [PATCH] readthedocs: specify build-container

Docs builds currently fail with

Could not import extension sphinx.builders.linkcheck
(exception: urllib3 v2.0 only supports OpenSSL 1.1.1+,
currently the 'ssl' module is compiled with OpenSSL
1.0.2n  7 Dec 2017.
See: https://github.com/urllib3/urllib3/issues/2168)

The Gluon issuetracker suggests specifying the build-container.

Link: https://github.com/readthedocs/readthedocs.org/issues/10290#issuecomment-1535120995

Signed-off-by: David Bauer <mail@david-bauer.net>
---
 .readthedocs.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.readthedocs.yml b/.readthedocs.yml
index 81f82c55..aaa9c86a 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -11,6 +11,10 @@ sphinx:
 
 # Optionally set the version of Python and requirements required to build your docs
 python:
-   version: 3.8
    install:
    - requirements: docs/requirements.txt
+
+build:
+    os: ubuntu-22.04
+    tools:
+        python: "3.8"
-- 
GitLab