conf.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #
  2. # Copyright 2018-2022 Elyra Authors
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. # Configuration file for the Sphinx documentation builder.
  17. #
  18. # This file only contains a selection of the most common options. For a full
  19. # list see the documentation:
  20. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  21. # -- Path setup --------------------------------------------------------------
  22. # If extensions (or modules to document with autodoc) are in another directory,
  23. # add these directories to sys.path here. If the directory is relative to the
  24. # documentation root, use os.path.abspath to make it absolute, like shown here.
  25. #
  26. import os
  27. master_doc = "index"
  28. # -- Project information -----------------------------------------------------
  29. project = "Elyra"
  30. copyright = "2022, Elyra Team"
  31. author = "Elyra Team"
  32. _version_py = os.path.join("..", "..", "elyra", "_version.py")
  33. version_ns = {}
  34. with open(_version_py, mode="r") as version_file:
  35. exec(version_file.read(), version_ns)
  36. # The short X.Y version.
  37. version = version_ns["__version__"][:6]
  38. # The full version, including alpha/beta/rc tags.
  39. release = version_ns["__version__"]
  40. # -- General configuration ---------------------------------------------------
  41. # Add any Sphinx extension module names here, as strings. They can be
  42. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  43. # ones.
  44. extensions = [
  45. "sphinx_rtd_theme",
  46. "recommonmark",
  47. "sphinx_markdown_tables",
  48. "versionwarning.extension",
  49. ]
  50. source_suffix = {".md": "markdown", ".rst": "restructuredtext"}
  51. # Add any paths that contain templates here, relative to this directory.
  52. templates_path = ["_templates"]
  53. # List of patterns, relative to source directory, that match files and
  54. # directories to ignore when looking for source files.
  55. # This pattern also affects html_static_path and html_extra_path.
  56. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
  57. # -- Options for HTML output -------------------------------------------------
  58. # The theme to use for HTML and HTML Help pages. See the documentation for
  59. # a list of builtin themes.
  60. #
  61. html_theme = "sphinx_rtd_theme"
  62. # Theme options are theme-specific and customize the look and feel of a theme
  63. # further. For a list of options available for each theme, see the
  64. # documentation.
  65. html_theme_options = {
  66. "analytics_id": "UA-169426804-1",
  67. }
  68. # Add any paths that contain custom static files (such as style sheets) here,
  69. # relative to this directory. They are copied after the builtin static files,
  70. # so a file named "default.css" will overwrite the builtin "default.css".
  71. html_static_path = ["_static"]
  72. html_css_files = ["custom.css"]
  73. # -- Options for version warning
  74. # sphinx-version-warning config
  75. versionwarning_messages = {
  76. "latest": (
  77. "This document is for the development version. "
  78. 'For the stable version documentation, see <a href="/en/stable/">here</a>.'
  79. )
  80. }
  81. # Show warning at top of page
  82. versionwarning_body_selector = "div.document"
  83. versionwarning_banner_title = ""