Skip to content

Commit

Permalink
Use mock imports instead of suppressing warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Aug 22, 2024
1 parent 428a0c6 commit 000bf2b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
"**/*.dqm.bokeh_app**",
]

autodoc_mock_imports = [
"nectarchain.makers.extractor.charge_extractor",
"nectarchain.makers.calibration.core",
"nectarchain.dqm.bokeh_app",
]

# intersphinx allows referencing other packages sphinx docs
intersphinx_mapping = {
"python": ("https://docs.python.org/3.9", None),
Expand All @@ -95,10 +101,10 @@
"ctapipe": ("https://ctapipe.readthedocs.io/en/v0.19.3/", None),
}

suppress_warnings = [
"autosummary",
"autosummary.import_cycle",
]
# suppress_warnings = [
# "autosummary",
# "autosummary.import_cycle",
# ]

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
Expand Down

0 comments on commit 000bf2b

Please sign in to comment.