0

I have a large project that I want to document before building, so the imports of custom libraries do not work at the documentation stage. The answer to this question shows that we can use the autodoc_mock_imports option in conf.py to mock modules which resolves import errors. However, I have many libraries and it is quite tedious to put every module in that list. Is it possible to mock all imported modules?

mzjn
  • 45,711
  • 11
  • 120
  • 232
Thomas Wagenaar
  • 5,696
  • 4
  • 25
  • 60

0 Answers0