Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 3 | # Copyright (c) 2019-2023, Arm Limited. All rights reserved. |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 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 | |
Paul Beesley | 606d807 | 2019-03-13 13:58:02 +0000 | [diff] [blame] | 12 | |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 13 | # -- Project information ----------------------------------------------------- |
| 14 | |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 15 | project = "Trusted Firmware-A" |
Harrison Mutai | fa9b14d | 2023-05-31 10:18:49 +0100 | [diff] [blame] | 16 | author = "Trusted Firmware-A contributors" |
Juan Pablo Conde | 93a6b50 | 2023-11-10 01:57:46 -0600 | [diff] [blame] | 17 | version = "2.10.0" |
| 18 | release = "2.10.0" |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 19 | |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 20 | # -- General configuration --------------------------------------------------- |
| 21 | |
| 22 | # Add any Sphinx extension module names here, as strings. They can be |
| 23 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 24 | # ones. |
Harrison Mutai | fa9b14d | 2023-05-31 10:18:49 +0100 | [diff] [blame] | 25 | extensions = [ |
| 26 | "myst_parser", |
| 27 | "sphinx.ext.autosectionlabel", |
| 28 | "sphinxcontrib.plantuml", |
Harrison Mutai | 3ece148 | 2023-07-28 12:29:39 +0100 | [diff] [blame] | 29 | "sphinxcontrib.rsvgconverter", |
Harrison Mutai | fa9b14d | 2023-05-31 10:18:49 +0100 | [diff] [blame] | 30 | ] |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 31 | |
| 32 | # Add any paths that contain templates here, relative to this directory. |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 33 | templates_path = ["_templates"] |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 34 | |
| 35 | # The suffix(es) of source filenames. |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 36 | source_suffix = [".md", ".rst"] |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 37 | |
| 38 | # The master toctree document. |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 39 | master_doc = "index" |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 40 | |
| 41 | # The language for content autogenerated by Sphinx. Refer to documentation |
| 42 | # for a list of supported languages. |
| 43 | # |
| 44 | # This is also used if you do content translation via gettext catalogs. |
| 45 | # Usually you set "language" from the command line for these cases. |
Boyan Karatotev | 39dea25 | 2022-10-27 11:56:40 +0100 | [diff] [blame] | 46 | language = "en" |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 47 | |
| 48 | # List of patterns, relative to source directory, that match files and |
| 49 | # directories to ignore when looking for source files. |
| 50 | # This pattern also affects html_static_path and html_extra_path . |
Boyan Karatotev | 4273e6b | 2022-10-27 11:28:23 +0100 | [diff] [blame] | 51 | # Don't try to build the venv in case it's placed with the sources |
| 52 | exclude_patterns = [".env", "env", ".venv", "venv"] |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 53 | |
| 54 | # The name of the Pygments (syntax highlighting) style to use. |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 55 | pygments_style = "sphinx" |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 56 | |
Paul Beesley | 606d807 | 2019-03-13 13:58:02 +0000 | [diff] [blame] | 57 | # Load the contents of the global substitutions file into the 'rst_prolog' |
Harrison Mutai | fa9b14d | 2023-05-31 10:18:49 +0100 | [diff] [blame] | 58 | # variable. This ensures that the substitutions are all inserted into each |
| 59 | # page. |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 60 | with open("global_substitutions.txt", "r") as subs: |
| 61 | rst_prolog = subs.read() |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 62 | |
Paul Beesley | 73e4bd7 | 2019-05-17 11:45:36 +0100 | [diff] [blame] | 63 | # Minimum version of sphinx required |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 64 | needs_sphinx = "2.0" |
Paul Beesley | 73e4bd7 | 2019-05-17 11:45:36 +0100 | [diff] [blame] | 65 | |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 66 | # -- Options for HTML output ------------------------------------------------- |
| 67 | |
| 68 | # Don't show the "Built with Sphinx" footer |
| 69 | html_show_sphinx = False |
| 70 | |
| 71 | # Don't show copyright info in the footer (we have this content in the page) |
| 72 | html_show_copyright = False |
| 73 | |
| 74 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 75 | # a list of builtin themes. |
| 76 | html_theme = "sphinx_rtd_theme" |
| 77 | |
| 78 | # The logo to display in the sidebar |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 79 | html_logo = "resources/TrustedFirmware-Logo_standard-white.png" |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 80 | |
| 81 | # Options for the "sphinx-rtd-theme" theme |
| 82 | html_theme_options = { |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 83 | "collapse_navigation": False, # Can expand and collapse sidebar entries |
| 84 | "prev_next_buttons_location": "both", # Top and bottom of the page |
| 85 | "style_external_links": True, # Display an icon next to external links |
Paul Beesley | 22994f7 | 2019-01-23 15:39:39 +0000 | [diff] [blame] | 86 | } |
Paul Beesley | 73e4bd7 | 2019-05-17 11:45:36 +0100 | [diff] [blame] | 87 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 88 | # Path to _static directory |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 89 | html_static_path = ["_static"] |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 90 | |
| 91 | # Path to css file relative to html_static_path |
| 92 | html_css_files = [ |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 93 | "css/custom.css", |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 94 | ] |
| 95 | |
Paul Beesley | 73e4bd7 | 2019-05-17 11:45:36 +0100 | [diff] [blame] | 96 | # -- Options for autosectionlabel -------------------------------------------- |
| 97 | |
| 98 | # Only generate automatic section labels for document titles |
Paul Beesley | 8c178b5 | 2019-07-12 11:56:58 +0100 | [diff] [blame] | 99 | autosectionlabel_maxdepth = 1 |
| 100 | |
| 101 | # -- Options for plantuml ---------------------------------------------------- |
| 102 | |
Harrison Mutai | 32df52d | 2023-06-05 12:26:28 +0100 | [diff] [blame] | 103 | plantuml_output_format = "svg_img" |
Harrison Mutai | fa9b14d | 2023-05-31 10:18:49 +0100 | [diff] [blame] | 104 | |
| 105 | # -- Options for latexmk ---------------------------------------------------- |
| 106 | |
| 107 | latex_engine = "xelatex" |
| 108 | latex_elements = { |
| 109 | "maxlistdepth": "10", |
| 110 | "pointsize": "11pt", |
Elizabeth Ho | 3681ad3 | 2023-07-13 10:38:10 +0100 | [diff] [blame] | 111 | "extraclassoptions": "openany" |
Harrison Mutai | fa9b14d | 2023-05-31 10:18:49 +0100 | [diff] [blame] | 112 | } |