conf.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. """Configuration file for the Sphinx documentation builder."""
  2. # Configuration file for the Sphinx documentation builder.
  3. #
  4. # For the full list of built-in configuration values, see the documentation:
  5. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  6. # -- Project information -----------------------------------------------------
  7. # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
  8. # TODO: Remove the unneeded.
  9. project = "dt-evolv"
  10. release = "0.0.1"
  11. author = "Daniele Arosio"
  12. copyright = f"2024, {author}" # noqa: A001
  13. # -- General configuration ---------------------------------------------------
  14. # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
  15. extensions = []
  16. extensions = [
  17. "sphinx.ext.autodoc",
  18. "autodocsumm",
  19. "sphinx.ext.napoleon",
  20. "sphinx_autodoc_typehints",
  21. "sphinxcontrib.plantuml",
  22. "nbsphinx",
  23. "sphinx_click",
  24. ]
  25. # Napoleon settings to Default
  26. napoleon_use_ivar = False
  27. # Use __init__ docstring
  28. napoleon_include_init_with_doc = False
  29. # Use _private docstring
  30. napoleon_include_private_with_doc = True
  31. # Use __special__ docstring
  32. napoleon_include_special_with_doc = True
  33. autodoc_default_options = {
  34. "members": True,
  35. "member-order": "bysource",
  36. "undoc-members": False,
  37. "autosummary": True,
  38. }
  39. autodoc_typehints = "description"
  40. nbsphinx_allow_errors = True
  41. templates_path = ["_templates"]
  42. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  43. # To prevent latex hanging on symbols supported by xelatex, but RtD uses latex.
  44. latex_elements = {
  45. "papersize": "a4paper",
  46. "pointsize": "10pt",
  47. # Additional preamble content
  48. "preamble": r"""
  49. \usepackage[utf8]{inputenc}
  50. \usepackage{newunicodechar}
  51. \newunicodechar{█}{\rule{1ex}{1ex}}
  52. """,
  53. }
  54. # -- Options for HTML output -------------------------------------------------
  55. # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
  56. html_theme = "pydata_sphinx_theme"
  57. html_static_path = ["_static"]