1653279b0SPaul Beesley# -*- coding: utf-8 -*- 2653279b0SPaul Beesley# 397a6de9eSGovindraj Raja# Copyright (c) 2019-2025, Arm Limited. All rights reserved. 4653279b0SPaul Beesley# 5653279b0SPaul Beesley# SPDX-License-Identifier: BSD-3-Clause 6653279b0SPaul Beesley# 7653279b0SPaul Beesley# 8653279b0SPaul Beesley# Configuration file for the Sphinx documentation builder. 9653279b0SPaul Beesley# 10653279b0SPaul Beesley# See the options documentation at http://www.sphinx-doc.org/en/master/config 11653279b0SPaul Beesley 128f62ca7bSPaul Beesley 13653279b0SPaul Beesley# -- Project information ----------------------------------------------------- 14653279b0SPaul Beesley 1529b11bafSHarrison Mutaiproject = "Trusted Firmware-A" 16443d6ea6SHarrison Mutaiauthor = "Trusted Firmware-A contributors" 17*1c26b186SArvind Ram Prakashversion = "2.14.0" 18*1c26b186SArvind Ram Prakashrelease = "2.14.0" 19653279b0SPaul Beesley 20653279b0SPaul Beesley# -- General configuration --------------------------------------------------- 21653279b0SPaul Beesley 22653279b0SPaul Beesley# Add any Sphinx extension module names here, as strings. They can be 23653279b0SPaul Beesley# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 24653279b0SPaul Beesley# ones. 25443d6ea6SHarrison Mutaiextensions = [ 26443d6ea6SHarrison Mutai "myst_parser", 27443d6ea6SHarrison Mutai "sphinx.ext.autosectionlabel", 28443d6ea6SHarrison Mutai "sphinxcontrib.plantuml", 29c3654760SHarrison Mutai "sphinxcontrib.rsvgconverter", 30443d6ea6SHarrison Mutai] 31653279b0SPaul Beesley 32653279b0SPaul Beesley# Add any paths that contain templates here, relative to this directory. 3329b11bafSHarrison Mutaitemplates_path = ["_templates"] 34653279b0SPaul Beesley 35653279b0SPaul Beesley# The suffix(es) of source filenames. 3629b11bafSHarrison Mutaisource_suffix = [".md", ".rst"] 37653279b0SPaul Beesley 38653279b0SPaul Beesley# The master toctree document. 3929b11bafSHarrison Mutaimaster_doc = "index" 40653279b0SPaul Beesley 41653279b0SPaul Beesley# The language for content autogenerated by Sphinx. Refer to documentation 42653279b0SPaul Beesley# for a list of supported languages. 43653279b0SPaul Beesley# 44653279b0SPaul Beesley# This is also used if you do content translation via gettext catalogs. 45653279b0SPaul Beesley# Usually you set "language" from the command line for these cases. 46e48b1f8cSBoyan Karatotevlanguage = "en" 47653279b0SPaul Beesley 48653279b0SPaul Beesley# List of patterns, relative to source directory, that match files and 49653279b0SPaul Beesley# directories to ignore when looking for source files. 50653279b0SPaul Beesley# This pattern also affects html_static_path and html_extra_path . 513fd1fe38SBoyan Karatotev# Don't try to build the venv in case it's placed with the sources 523fd1fe38SBoyan Karatotevexclude_patterns = [".env", "env", ".venv", "venv"] 53653279b0SPaul Beesley 54854d199bSGovindraj Rajalinkcheck_anchors = False 55854d199bSGovindraj Rajalinkcheck_ignore = ["change-log.md"] 56854d199bSGovindraj Raja 57653279b0SPaul Beesley# The name of the Pygments (syntax highlighting) style to use. 5829b11bafSHarrison Mutaipygments_style = "sphinx" 59653279b0SPaul Beesley 608f62ca7bSPaul Beesley# Load the contents of the global substitutions file into the 'rst_prolog' 61443d6ea6SHarrison Mutai# variable. This ensures that the substitutions are all inserted into each 62443d6ea6SHarrison Mutai# page. 6329b11bafSHarrison Mutaiwith open("global_substitutions.txt", "r") as subs: 648f62ca7bSPaul Beesley rst_prolog = subs.read() 65653279b0SPaul Beesley 66c4e4df35SPaul Beesley# Minimum version of sphinx required 6729b11bafSHarrison Mutaineeds_sphinx = "2.0" 68c4e4df35SPaul Beesley 69653279b0SPaul Beesley# -- Options for HTML output ------------------------------------------------- 70653279b0SPaul Beesley 71653279b0SPaul Beesley# Don't show the "Built with Sphinx" footer 72653279b0SPaul Beesleyhtml_show_sphinx = False 73653279b0SPaul Beesley 74653279b0SPaul Beesley# Don't show copyright info in the footer (we have this content in the page) 75653279b0SPaul Beesleyhtml_show_copyright = False 76653279b0SPaul Beesley 77653279b0SPaul Beesley# The theme to use for HTML and HTML Help pages. See the documentation for 78653279b0SPaul Beesley# a list of builtin themes. 79653279b0SPaul Beesleyhtml_theme = "sphinx_rtd_theme" 80653279b0SPaul Beesley 81653279b0SPaul Beesley# The logo to display in the sidebar 8229b11bafSHarrison Mutaihtml_logo = "resources/TrustedFirmware-Logo_standard-white.png" 83653279b0SPaul Beesley 84653279b0SPaul Beesley# Options for the "sphinx-rtd-theme" theme 85653279b0SPaul Beesleyhtml_theme_options = { 8629b11bafSHarrison Mutai "collapse_navigation": False, # Can expand and collapse sidebar entries 8729b11bafSHarrison Mutai "prev_next_buttons_location": "both", # Top and bottom of the page 8829b11bafSHarrison Mutai "style_external_links": True, # Display an icon next to external links 89653279b0SPaul Beesley} 90c4e4df35SPaul Beesley 917006f208SZelalem# Path to _static directory 9229b11bafSHarrison Mutaihtml_static_path = ["_static"] 937006f208SZelalem 947006f208SZelalem# Path to css file relative to html_static_path 957006f208SZelalemhtml_css_files = [ 9629b11bafSHarrison Mutai "css/custom.css", 977006f208SZelalem] 987006f208SZelalem 99c4e4df35SPaul Beesley# -- Options for autosectionlabel -------------------------------------------- 100c4e4df35SPaul Beesley 101c4e4df35SPaul Beesley# Only generate automatic section labels for document titles 102c4e4df35SPaul Beesleyautosectionlabel_maxdepth = 1 1037cb68807SPaul Beesley 1047cb68807SPaul Beesley# -- Options for plantuml ---------------------------------------------------- 1057cb68807SPaul Beesley 10629b11bafSHarrison Mutaiplantuml_output_format = "svg_img" 107443d6ea6SHarrison Mutai 108443d6ea6SHarrison Mutai# -- Options for latexmk ---------------------------------------------------- 109443d6ea6SHarrison Mutai 110443d6ea6SHarrison Mutailatex_engine = "xelatex" 111443d6ea6SHarrison Mutailatex_elements = { 112443d6ea6SHarrison Mutai "maxlistdepth": "10", 113443d6ea6SHarrison Mutai "pointsize": "11pt", 1147bbccd4dSElizabeth Ho "extraclassoptions": "openany" 115443d6ea6SHarrison Mutai} 116