Sphinx Documentation (autodoc) not working after uploading to Github

Viewed 153
1 Answers

In your log file, it states WARNING: autodoc: failed to import class 'QuickSqlite' from module 'quick_sqlite'; the following exception was raised: No module named 'quick_sqlite'

You need to tell RTD to install your module. See: https://docs.readthedocs.io/en/stable/tutorial/index.html#making-warnings-more-visible

The reason sphinx.ext.autosummary and sphinx.ext.autodoc fail to import the code is because it is not installed. Luckily, the .readthedocs.yaml also allows you to specify which requirements to install.

.readthedocs.yaml

python:
  # Install our python package before building the docs
  install:
    - method: pip
      path: .
Related