conf.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Copyright (c) 2019-2023, Arm Limited. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-3-Clause
  6. #
  7. #
  8. # Configuration file for the Sphinx documentation builder.
  9. #
  10. # See the options documentation at http://www.sphinx-doc.org/en/master/config
  11. # -- Project information -----------------------------------------------------
  12. project = "Trusted Firmware-A"
  13. author = "Trusted Firmware-A contributors"
  14. version = "2.8.16"
  15. release = "2.8.16"
  16. # -- General configuration ---------------------------------------------------
  17. # Add any Sphinx extension module names here, as strings. They can be
  18. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  19. # ones.
  20. extensions = [
  21. "myst_parser",
  22. "sphinx.ext.autosectionlabel",
  23. "sphinxcontrib.plantuml",
  24. "sphinxcontrib.rsvgconverter",
  25. ]
  26. # Add any paths that contain templates here, relative to this directory.
  27. templates_path = ["_templates"]
  28. # The suffix(es) of source filenames.
  29. source_suffix = [".md", ".rst"]
  30. # The master toctree document.
  31. master_doc = "index"
  32. # The language for content autogenerated by Sphinx. Refer to documentation
  33. # for a list of supported languages.
  34. #
  35. # This is also used if you do content translation via gettext catalogs.
  36. # Usually you set "language" from the command line for these cases.
  37. language = "en"
  38. # List of patterns, relative to source directory, that match files and
  39. # directories to ignore when looking for source files.
  40. # This pattern also affects html_static_path and html_extra_path .
  41. # Don't try to build the venv in case it's placed with the sources
  42. exclude_patterns = [".env", "env", ".venv", "venv"]
  43. # The name of the Pygments (syntax highlighting) style to use.
  44. pygments_style = "sphinx"
  45. # Load the contents of the global substitutions file into the 'rst_prolog'
  46. # variable. This ensures that the substitutions are all inserted into each
  47. # page.
  48. with open("global_substitutions.txt", "r") as subs:
  49. rst_prolog = subs.read()
  50. # Minimum version of sphinx required
  51. needs_sphinx = "2.0"
  52. # -- Options for HTML output -------------------------------------------------
  53. # Don't show the "Built with Sphinx" footer
  54. html_show_sphinx = False
  55. # Don't show copyright info in the footer (we have this content in the page)
  56. html_show_copyright = False
  57. # The theme to use for HTML and HTML Help pages. See the documentation for
  58. # a list of builtin themes.
  59. html_theme = "sphinx_rtd_theme"
  60. # The logo to display in the sidebar
  61. html_logo = "resources/TrustedFirmware-Logo_standard-white.png"
  62. # Options for the "sphinx-rtd-theme" theme
  63. html_theme_options = {
  64. "collapse_navigation": False, # Can expand and collapse sidebar entries
  65. "prev_next_buttons_location": "both", # Top and bottom of the page
  66. "style_external_links": True, # Display an icon next to external links
  67. }
  68. # Path to _static directory
  69. html_static_path = ["_static"]
  70. # Path to css file relative to html_static_path
  71. html_css_files = [
  72. "css/custom.css",
  73. ]
  74. # -- Options for autosectionlabel --------------------------------------------
  75. # Only generate automatic section labels for document titles
  76. autosectionlabel_maxdepth = 1
  77. # -- Options for plantuml ----------------------------------------------------
  78. plantuml_output_format = "svg_img"
  79. # -- Options for latexmk ----------------------------------------------------
  80. latex_engine = "xelatex"
  81. latex_elements = {
  82. "maxlistdepth": "10",
  83. "pointsize": "11pt",
  84. }