diff options
| author | Axel Forsman <axel@axelf.se> | 2024-04-27 14:59:49 +0200 |
|---|---|---|
| committer | Axel Forsman <axel@axelf.se> | 2024-04-30 19:31:17 +0200 |
| commit | f564ffa3ca33cbcdc24218906dc95566f679d1b1 (patch) | |
| tree | cd1b2ed48515075cdd2fd42446bd8aff61dc3908 | |
| parent | 55f29f07e31c408931e3569066c2050c48dd882b (diff) | |
Define documentation dependencies
Read the Docs stopped installing spinx-rtd-theme by default, which
broke documentation builds. This commit fixes that by pinning the
required dependencies.
See: https://blog.readthedocs.com/defaulting-latest-build-tools/
| -rw-r--r-- | .readthedocs.yaml | 7 | ||||
| -rw-r--r-- | doc/requirements.txt | 2 | ||||
| -rw-r--r-- | doc/source/_ext/elisp.py | 4 |
3 files changed, 8 insertions, 5 deletions
diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8fb2585..f17f5ab 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,9 +1,14 @@ version: 2 + build: os: ubuntu-22.04 tools: - python: "3.11" + python: "3.12" apt_packages: [emacs-nox] jobs: pre_build: - scripts/evil-extract-docstrings + +python: + install: + - requirements: doc/requirements.txt diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..4e09d9c --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,2 @@ +Sphinx==7.3.7 +sphinx-rtd-theme==2.0.0 diff --git a/doc/source/_ext/elisp.py b/doc/source/_ext/elisp.py index a4da67e..ab82105 100644 --- a/doc/source/_ext/elisp.py +++ b/doc/source/_ext/elisp.py @@ -2,15 +2,11 @@ import re from os import path import json -from docutils import nodes -from docutils.parsers.rst import Directive - from sphinx import addnodes from sphinx.domains import Domain, ObjType, Index from sphinx.domains.std import StandardDomain from sphinx.directives import ObjectDescription from sphinx.roles import XRefRole -from sphinx.util.docfields import Field from sphinx.util.nodes import make_refnode |
