conf.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # For the full list of built-in configuration values, see the documentation:
  4. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  5. # -- Project information -----------------------------------------------------
  6. # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
  7. project = 'DAK - Debian Archive Kit'
  8. copyright = '2000-2022, DAK Contributors'
  9. author = 'DAK Contributors'
  10. import os
  11. import sys
  12. sys.path.insert(0, os.path.abspath('..'))
  13. # -- General configuration ---------------------------------------------------
  14. # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
  15. extensions = [
  16. 'sphinx.ext.autodoc',
  17. 'sphinx.ext.autosummary',
  18. 'sphinx.ext.coverage',
  19. 'sphinx.ext.intersphinx',
  20. 'sphinx.ext.viewcode',
  21. ]
  22. templates_path = ['_templates']
  23. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  24. autodoc_default_options = {
  25. 'members': True,
  26. 'private-members': True,
  27. 'undoc-members': True,
  28. }
  29. autodoc_mock_imports = [
  30. 'bottle',
  31. 'rrdtool',
  32. ]
  33. autosummary_generate = True
  34. intersphinx_mapping = {
  35. 'apt': ('https://apt-team.pages.debian.net/python-apt', None),
  36. 'debian': ('https://python-debian-team.pages.debian.net/python-debian/html', None),
  37. 'python': ('https://docs.python.org/3', None),
  38. 'sqlalchemy': ('https://docs.sqlalchemy.org/en/14', None),
  39. }
  40. # -- Options for HTML output -------------------------------------------------
  41. # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
  42. html_theme = 'classic'
  43. html_static_path = ['_static']