2
0

conf.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # Copyright The OpenTelemetry Authors
  2. # SPDX-License-Identifier: Apache-2.0
  3. # Configuration file for the Sphinx documentation builder.
  4. #
  5. # This file only contains a selection of the most common options. For a full
  6. # list see the documentation:
  7. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  8. # -- Path setup --------------------------------------------------------------
  9. # If extensions (or modules to document with autodoc) are in another directory,
  10. # add these directories to sys.path here. If the directory is relative to the
  11. # documentation root, use os.path.abspath to make it absolute, like shown here.
  12. #
  13. # import os
  14. # import sys
  15. # sys.path.insert(0, os.path.abspath('.'))
  16. # -- Project information -----------------------------------------------------
  17. project = 'OpenTelemetry C++'
  18. copyright = '2021, OpenTelemetry authors'
  19. author = 'OpenTelemetry authors'
  20. # The full version, including alpha/beta/rc tags
  21. release = "1.21.0"
  22. # Run sphinx on subprojects and copy output
  23. # -----------------------------------------
  24. # This is necessary so the readthedocs build works. It doesn't invoke the
  25. # Makefile, but just runs sphinx on this conf.py.
  26. import os
  27. import shutil
  28. import subprocess
  29. if not os.path.exists('doxyoutput'):
  30. os.makedirs('doxyoutput')
  31. # -- General configuration ---------------------------------------------------
  32. # Add any Sphinx extension module names here, as strings. They can be
  33. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  34. # ones.
  35. extensions = [
  36. "breathe",
  37. "exhale"
  38. ]
  39. exhale_args = {
  40. "containmentFolder": "otel_docs",
  41. "rootFileName": "otel_docs.rst",
  42. "rootFileTitle": "Reference documentation",
  43. "doxygenStripFromPath": "..",
  44. "exhaleExecutesDoxygen": True,
  45. "exhaleUseDoxyfile": True,
  46. "createTreeView": True
  47. }
  48. breathe_projects = {
  49. "OpenTelemetry C++": "doxyoutput/xml",
  50. }
  51. breathe_default_project = "OpenTelemetry C++"
  52. primary_domain = "cpp"
  53. higlight_language = "cpp"
  54. # Add any paths that contain templates here, relative to this directory.
  55. templates_path = ['_templates']
  56. # List of patterns, relative to source directory, that match files and
  57. # directories to ignore when looking for source files.
  58. # This pattern also affects html_static_path and html_extra_path.
  59. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  60. # -- Options for HTML output -------------------------------------------------
  61. # The theme to use for HTML and HTML Help pages. See the documentation for
  62. # a list of builtin themes.
  63. #
  64. #html_theme = "furo"
  65. html_theme = "sphinx_rtd_theme"
  66. # Add any paths that contain custom static files (such as style sheets) here,
  67. # relative to this directory. They are copied after the builtin static files,
  68. # so a file named "default.css" will overwrite the builtin "default.css".
  69. html_static_path = ['_static']