[Doc] Add missing mock import to docs conf.py (#6834)

This commit is contained in:
Harry Mellor
2024-07-27 05:47:33 +01:00
committed by GitHub
parent 52f07e3dec
commit c53041ae3b
2 changed files with 3 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ build:
sphinx:
configuration: docs/source/conf.py
fail_on_warning: true
# If using Sphinx, optionally build your docs in additional formats such as PDF
formats:

View File

@@ -94,6 +94,7 @@ def setup(app):
# Mock out external dependencies here, otherwise the autodoc pages may be blank.
autodoc_mock_imports = [
"aiohttp",
"cpuinfo",
"torch",
"transformers",
@@ -141,5 +142,6 @@ intersphinx_mapping = {
}
autodoc_preserve_defaults = True
autodoc_warningiserror = True
navigation_with_keys = False