I am using Sphinx to generate the documentation in python. While make html
is working just fine, I have problems with make latexpdf
. The .tex
file is generated incompletely. It is missing some descriptions, which are included in html. I don't see where could be the problem? For instance, Calendar class is not showed in latex:
Latex [1]: https://i.stack.imgur.com/XVJYg.png HTML [2]: https://i.stack.imgur.com/4daHV.png
The conf.py
I am using:
import os
import sys
sys.path.insert(0, os.path.abspath('../../src'))
sys.setrecursionlimit(1500)
project = '..'
copyright = '..'
author = '..'
release = '2.0'
extensions = ['rinoh.frontend.sphinx', 'sphinx.ext.autodoc']
exclude_patterns = []
html_theme = 'alabaster'
html_static_path = ['_static']
dialogs.rst
:
GUI Dialogs
===========
Login
------
.. automodule:: dialogs.login
:members:
:undoc-members:
:show-inheritance:
Calendar
--------
.. automodule:: dialogs.calendar
:members:
:undoc-members:
:show-inheritance:
UPDATE There are several warnings which appear when using make latexpdf
. I don't know if they are the cause. For the calendar module and any other module, the warning is like this one:
WARNING: Explicit markup ends without a blank line; unexpected unindent.
WARNING: autodoc: failed to import module 'calendar' from module 'dialogs'; the following exception was raised:
File "c:\users\user\pycharmprojects\gui\venv\lib\site-packages\sphinx\ext\autodoc\importer.py", line 70, in import_module
return importlib.import_module(modname)
...
data_loaded = threading.Event()
NameError: name 'threading' is not defined
It looks like it cannot recognise the threading
library.