docs: Mock modules unavailable in the CI

This commit is contained in:
Alessandro Candido
2024-03-01 22:21:46 +01:00
parent 238fff8fe6
commit cbaafb69fc

View File

@@ -95,6 +95,8 @@ html_theme_options = {
# https://github.com/readthedocs/recommonmark/blob/ddd56e7717e9745f11300059e4268e204138a6b1/docs/conf.py
# app setup hook
autodoc_mock_imports = ["cupy", "cuquantum"]
def run_apidoc(_):
"""Extract autodoc directives from package structure."""