conf.py 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # This file only contains a selection of the most common options. For a full
  4. # list see the documentation:
  5. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  6. # -- Path setup --------------------------------------------------------------
  7. # If extensions (or modules to document with autodoc) are in another directory,
  8. # add these directories to sys.path here. If the directory is relative to the
  9. # documentation root, use os.path.abspath to make it absolute, like shown here.
  10. #
  11. import sphinx_rtd_theme
  12. import os
  13. import sys
  14. sys.path.insert(0, os.path.abspath('..'))
  15. print(f"Root dir: {sys.path[0]}")
  16. # -- Project information -----------------------------------------------------
  17. project = 'redmail'
  18. copyright = '2022, Mikael Koli'
  19. author = 'Mikael Koli'
  20. # -- General configuration ---------------------------------------------------
  21. # Add any Sphinx extension module names here, as strings. They can be
  22. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  23. # ones.
  24. extensions = [
  25. 'sphinx.ext.doctest',
  26. 'sphinx.ext.autodoc',
  27. 'sphinx.ext.coverage',
  28. 'sphinx.ext.napoleon',
  29. 'sphinx_rtd_theme'
  30. ]
  31. rst_prolog = """
  32. .. include:: <s5defs.txt>
  33. """
  34. # Extension settings
  35. napoleon_google_docstring = True
  36. napoleon_numpy_docstring = True
  37. autodoc_typehints = 'none'
  38. autodoc_member_order = 'bysource'
  39. # Add any paths that contain templates here, relative to this directory.
  40. templates_path = ['_templates']
  41. # List of patterns, relative to source directory, that match files and
  42. # directories to ignore when looking for source files.
  43. # This pattern also affects html_static_path and html_extra_path.
  44. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  45. html_logo = "logo.png"
  46. html_theme_options = {
  47. 'logo_only': True,
  48. 'display_version': False,
  49. }
  50. # -- Options for HTML output -------------------------------------------------
  51. # The theme to use for HTML and HTML Help pages. See the documentation for
  52. # a list of builtin themes.
  53. #
  54. html_title = "Advanced Scheduler for Python"
  55. html_theme = 'sphinx_rtd_theme'
  56. # Add any paths that contain custom static files (such as style sheets) here,
  57. # relative to this directory. They are copied after the builtin static files,
  58. # so a file named "default.css" will overwrite the builtin "default.css".
  59. html_static_path = ['_static']
  60. html_css_files = [
  61. 'css/types.css',
  62. 'css/colors.css',
  63. ]