1653279b0SPaul Beesley# -*- coding: utf-8 -*- 2653279b0SPaul Beesley# 3653279b0SPaul Beesley# Copyright (c) 2019, 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 Beesleyimport os 138f62ca7bSPaul Beesley 14653279b0SPaul Beesley# -- Project information ----------------------------------------------------- 15653279b0SPaul Beesley 16653279b0SPaul Beesleyproject = 'Trusted Firmware-A' 17653279b0SPaul Beesley 18653279b0SPaul Beesleyversion = '2.1' 19653279b0SPaul Beesleyrelease = version # We don't need these to be distinct 20653279b0SPaul Beesley 21653279b0SPaul Beesley# -- General configuration --------------------------------------------------- 22653279b0SPaul Beesley 23653279b0SPaul Beesley# Add any Sphinx extension module names here, as strings. They can be 24653279b0SPaul Beesley# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom 25653279b0SPaul Beesley# ones. 26*7cb68807SPaul Beesleyextensions = ['sphinx.ext.autosectionlabel', 'sphinxcontrib.plantuml'] 27653279b0SPaul Beesley 28653279b0SPaul Beesley# Add any paths that contain templates here, relative to this directory. 29653279b0SPaul Beesleytemplates_path = ['_templates'] 30653279b0SPaul Beesley 31653279b0SPaul Beesley# The suffix(es) of source filenames. 32653279b0SPaul Beesleysource_suffix = '.rst' 33653279b0SPaul Beesley 34653279b0SPaul Beesley# The master toctree document. 35653279b0SPaul Beesleymaster_doc = 'index' 36653279b0SPaul Beesley 37653279b0SPaul Beesley# The language for content autogenerated by Sphinx. Refer to documentation 38653279b0SPaul Beesley# for a list of supported languages. 39653279b0SPaul Beesley# 40653279b0SPaul Beesley# This is also used if you do content translation via gettext catalogs. 41653279b0SPaul Beesley# Usually you set "language" from the command line for these cases. 42653279b0SPaul Beesleylanguage = None 43653279b0SPaul Beesley 44653279b0SPaul Beesley# List of patterns, relative to source directory, that match files and 45653279b0SPaul Beesley# directories to ignore when looking for source files. 46653279b0SPaul Beesley# This pattern also affects html_static_path and html_extra_path . 47653279b0SPaul Beesleyexclude_patterns = [] 48653279b0SPaul Beesley 49653279b0SPaul Beesley# The name of the Pygments (syntax highlighting) style to use. 50653279b0SPaul Beesleypygments_style = 'sphinx' 51653279b0SPaul Beesley 528f62ca7bSPaul Beesley# Load the contents of the global substitutions file into the 'rst_prolog' 538f62ca7bSPaul Beesley# variable. This ensures that the substitutions are all inserted into each page. 548f62ca7bSPaul Beesleywith open('global_substitutions.txt', 'r') as subs: 558f62ca7bSPaul Beesley rst_prolog = subs.read() 56653279b0SPaul Beesley 57c4e4df35SPaul Beesley# Minimum version of sphinx required 58c4e4df35SPaul Beesleyneeds_sphinx = '2.0' 59c4e4df35SPaul Beesley 60653279b0SPaul Beesley# -- Options for HTML output ------------------------------------------------- 61653279b0SPaul Beesley 62653279b0SPaul Beesley# Don't show the "Built with Sphinx" footer 63653279b0SPaul Beesleyhtml_show_sphinx = False 64653279b0SPaul Beesley 65653279b0SPaul Beesley# Don't show copyright info in the footer (we have this content in the page) 66653279b0SPaul Beesleyhtml_show_copyright = False 67653279b0SPaul Beesley 68653279b0SPaul Beesley# The theme to use for HTML and HTML Help pages. See the documentation for 69653279b0SPaul Beesley# a list of builtin themes. 70653279b0SPaul Beesleyhtml_theme = "sphinx_rtd_theme" 71653279b0SPaul Beesley 72653279b0SPaul Beesley# The logo to display in the sidebar 73653279b0SPaul Beesleyhtml_logo = 'resources/TrustedFirmware-Logo_standard-white.png' 74653279b0SPaul Beesley 75653279b0SPaul Beesley# Options for the "sphinx-rtd-theme" theme 76653279b0SPaul Beesleyhtml_theme_options = { 77653279b0SPaul Beesley 'collapse_navigation': False, # Can expand and collapse sidebar entries 78653279b0SPaul Beesley 'prev_next_buttons_location': 'both', # Top and bottom of the page 79653279b0SPaul Beesley 'style_external_links': True # Display an icon next to external links 80653279b0SPaul Beesley} 81c4e4df35SPaul Beesley 82c4e4df35SPaul Beesley# -- Options for autosectionlabel -------------------------------------------- 83c4e4df35SPaul Beesley 84c4e4df35SPaul Beesley# Only generate automatic section labels for document titles 85c4e4df35SPaul Beesleyautosectionlabel_maxdepth = 1 86*7cb68807SPaul Beesley 87*7cb68807SPaul Beesley# -- Options for plantuml ---------------------------------------------------- 88*7cb68807SPaul Beesley 89*7cb68807SPaul Beesleyplantuml_output_format = 'svg_img' 90