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