diff --git a/src/sp_repo_review/checks/readthedocs.py b/src/sp_repo_review/checks/readthedocs.py index a883fee9..be26eefe 100644 --- a/src/sp_repo_review/checks/readthedocs.py +++ b/src/sp_repo_review/checks/readthedocs.py @@ -54,9 +54,17 @@ class RTD102(ReadTheDocs): @staticmethod def check(readthedocs: dict[str, Any]) -> bool: """ - You must set `build: image: ubuntu-22.04` or similar in the + You must set `build: os: ubuntu-22.04` or similar in the `.readthedocs.yaml` file. Otherwise, you will get old, unsupported versions of software for backward compatibility. + [Suggestion](https://docs.readthedocs.io/en/stable/config-file/v2.html): + + ```yaml + build: + os: ubuntu-22.04 + tools: + python: "3.11" + ``` """ match readthedocs: