From 364dc126632748c9da33f5f4bc711b5dfd8b3f48 Mon Sep 17 00:00:00 2001 From: Justin Turner Arthur Date: Sun, 13 Feb 2022 22:59:31 -0600 Subject: [PATCH] Docs fixes for 3rd-party building. --- .readthedocs.yaml | 12 +++++------- docs/conf.py | 1 + requirements.docs.txt | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 3378211..1309cab 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -5,16 +5,14 @@ # Required version: 2 -# Build documentation in the docs/ directory with Sphinx +build: + os: ubuntu-20.04 + tools: + python: '3.10' + sphinx: configuration: docs/conf.py -# Optionally set the version of Python and requirements required to build your docs python: - version: '3.8' install: - requirements: requirements.docs.txt - -build: - apt_packages: - - vapoursynth diff --git a/docs/conf.py b/docs/conf.py index 486c142..05652e7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -27,6 +27,7 @@ 'python': ('https://docs.python.org/3', None), 'vapoursynth': ('http://www.vapoursynth.com/doc', None) } +autodoc_mock_imports = ['vapoursynth'] # -- Options for HTML output ------------------------------------------------- diff --git a/requirements.docs.txt b/requirements.docs.txt index cb302fe..0630dc8 100644 --- a/requirements.docs.txt +++ b/requirements.docs.txt @@ -1,2 +1 @@ Sphinx==4.4.0 -VapourSynth==57