From f313a091a17d83700f3d3567cc48a38ceeddd8c7 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 24 Nov 2023 07:34:44 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Fix=20RTD=20build=20(#832)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .readthedocs.yml | 6 +++++- docs/syntax/optional.md | 2 +- pyproject.toml | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 611695db..57297d4b 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,7 +1,11 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: "3.8" + python: - version: "3.8" install: - method: pip path: . diff --git a/docs/syntax/optional.md b/docs/syntax/optional.md index 416e144a..fb21e992 100644 --- a/docs/syntax/optional.md +++ b/docs/syntax/optional.md @@ -622,7 +622,7 @@ based on the [reStructureText syntax](https://docutils.sourceforge.io/docs/ref/r ``` ::: -A prominent use case of field lists is for use in API docstrings, as used in [Sphinx's docstring renderers](inv:sphinx#python-domain): +A prominent use case of field lists is for use in API docstrings, as used in [Sphinx's docstring renderers](inv:sphinx#usage/domains/python): :::{myst-example} ```{py:function} send_message(sender, priority) diff --git a/pyproject.toml b/pyproject.toml index a9b63172..8f8bf9e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,7 @@ rtd = [ "sphinx-pyscript", "sphinx-tippy>=0.3.1", "sphinx-autodoc2~=0.4.2", + "astroid<3", # see https://github.com/sphinx-extensions2/sphinx-autodoc2/issues/31 "sphinx-togglebutton", ] testing = [