I am new to Sphinx and can't figure out how to solve this formatting issue. Currently, the Sphinx generated HTML output looks like this:
The long module and function names lead to the blue text boxes ending up outside the white space. Similarly, in the left sidebar, the long function names are not fully visible. Is there a way to to automatically wrap/line-break the function names?
The .rst files are created with sphinx-apidoc, which produces relevant code blocks like this one:
.. automodule:: monai_inference_from_nnunet_folder.custom_transforms.custom_transforms_array
:members:
:undoc-members:
:show-inheritance:
The image above shows the read-the-docs theme "sphinx-rtd-theme". I tried different themes, the default "alabaster" theme works better in the sidebar, where it breaks the long function names into multiple lines:
But on the main page, the same problem occurs: