conf.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. try:
  2. import sphinx_rtd_theme
  3. except ImportError:
  4. sphinx_rtd_theme = None
  5. # Configuration file for the Sphinx documentation builder.
  6. #
  7. # This file only contains a selection of the most common options. For a full
  8. # list see the documentation:
  9. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  10. # -- Path setup --------------------------------------------------------------
  11. # If extensions (or modules to document with autodoc) are in another directory,
  12. # add these directories to sys.path here. If the directory is relative to the
  13. # documentation root, use os.path.abspath to make it absolute, like shown here.
  14. #
  15. # import os
  16. # import sys
  17. # sys.path.insert(0, os.path.abspath('.'))
  18. # -- Project information -----------------------------------------------------
  19. project = 'deSEC DNS API'
  20. copyright = '2023, deSEC e.V., Individual Contributors'
  21. author = 'deSEC e.V., Individual Contributors'
  22. # -- General configuration ---------------------------------------------------
  23. # Add any Sphinx extension module names here, as strings. They can be
  24. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  25. # ones.
  26. extensions = [
  27. ]
  28. # Add any paths that contain templates here, relative to this directory.
  29. templates_path = ['_templates']
  30. # List of patterns, relative to source directory, that match files and
  31. # directories to ignore when looking for source files.
  32. # This pattern also affects html_static_path and html_extra_path.
  33. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  34. # -- Options for HTML output -------------------------------------------------
  35. # The theme to use for HTML and HTML Help pages. See the documentation for
  36. # a list of builtin themes.
  37. #
  38. if sphinx_rtd_theme:
  39. html_theme = "sphinx_rtd_theme"
  40. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  41. else:
  42. html_theme = "default"
  43. # Add any paths that contain custom static files (such as style sheets) here,
  44. # relative to this directory. They are copied after the builtin static files,
  45. # so a file named "default.css" will overwrite the builtin "default.css".
  46. html_static_path = ['_static']
  47. master_doc = 'index'
  48. if sphinx_rtd_theme:
  49. html_theme = "sphinx_rtd_theme"
  50. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  51. else:
  52. html_theme = "default"
  53. html_static_path = ['_static']
  54. # The name of the Pygments (syntax highlighting) style to use.
  55. pygments_style = 'sphinx'
  56. # Grouping the document tree into LaTeX files. List of tuples
  57. # (source start file, target name, title,
  58. # author, documentclass [howto, manual, or own class]).
  59. latex_documents = [
  60. (master_doc, 'deSEC.tex', u'deSEC DNS API Documentation',
  61. u'deSEC e.V., Individual Contributors', 'manual'),
  62. ]