From 2d3260a6b76198c119006b600cc93ab4e471b47e Mon Sep 17 00:00:00 2001 From: Alex Hughes Date: Thu, 11 Mar 2021 00:23:46 -0800 Subject: [PATCH] Attempt to mock Qt for docs building --- .readthedocs.yml | 2 +- docs/conf.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 8045f8f..c091f17 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -14,7 +14,7 @@ formats: all # Optionally set the version of Python and requirements required to build your docs python: - version: 2.7 + version: 3.7 install: - requirements: docs/requirements.txt - method: setuptools diff --git a/docs/conf.py b/docs/conf.py index 34343ad..87134fd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,6 +21,8 @@ "nbsphinx", ] + +autodoc_mock_imports = ["PySide2.QtGui", "PySide2.QtWidgets", "PySide2.QtCore"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -41,7 +43,7 @@ # nbsphinx stuff -nbsphinx_kernel_name = "python2" +nbsphinx_kernel_name = "python3" nbsphinx_allow_errors = True # The version info for the project you're documenting, acts as replacement for