[Doc] Add missing mock import to docs conf.py (#6834)
This commit is contained in:
parent
52f07e3dec
commit
c53041ae3b
@ -10,6 +10,7 @@ build:
|
|||||||
|
|
||||||
sphinx:
|
sphinx:
|
||||||
configuration: docs/source/conf.py
|
configuration: docs/source/conf.py
|
||||||
|
fail_on_warning: true
|
||||||
|
|
||||||
# If using Sphinx, optionally build your docs in additional formats such as PDF
|
# If using Sphinx, optionally build your docs in additional formats such as PDF
|
||||||
formats:
|
formats:
|
||||||
|
|||||||
@ -94,6 +94,7 @@ def setup(app):
|
|||||||
|
|
||||||
# Mock out external dependencies here, otherwise the autodoc pages may be blank.
|
# Mock out external dependencies here, otherwise the autodoc pages may be blank.
|
||||||
autodoc_mock_imports = [
|
autodoc_mock_imports = [
|
||||||
|
"aiohttp",
|
||||||
"cpuinfo",
|
"cpuinfo",
|
||||||
"torch",
|
"torch",
|
||||||
"transformers",
|
"transformers",
|
||||||
@ -141,5 +142,6 @@ intersphinx_mapping = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
autodoc_preserve_defaults = True
|
autodoc_preserve_defaults = True
|
||||||
|
autodoc_warningiserror = True
|
||||||
|
|
||||||
navigation_with_keys = False
|
navigation_with_keys = False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user