blob: ebc04761331a33f1660bcdf31437c95760cf26f7 [file] [log] [blame]
Paul Beesley653279b2019-01-23 15:39:39 +00001# -*- coding: utf-8 -*-
2#
Zelalem7006f202021-02-24 19:20:09 -06003# Copyright (c) 2019-2021, Arm Limited. All rights reserved.
Paul Beesley653279b2019-01-23 15:39:39 +00004#
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 Beesley8f62ca72019-03-13 13:58:02 +000012import os
13
Paul Beesley653279b2019-01-23 15:39:39 +000014# -- Project information -----------------------------------------------------
15
16project = 'Trusted Firmware-A'
17
Paul Beesley653279b2019-01-23 15:39:39 +000018# -- General configuration ---------------------------------------------------
19
20# Add any Sphinx extension module names here, as strings. They can be
21# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
22# ones.
Chris Kay74665262021-03-09 18:57:01 +000023extensions = ['sphinx.ext.autosectionlabel', 'sphinx.ext.intersphinx',
24 'sphinxcontrib.moderncmakedomain', 'sphinxcontrib.plantuml' ]
25
26# Configure intersphinx so that we can refer to external documentation.
27intersphinx_mapping = {
28 'cmake.org': ('https://cmake.org/cmake/help/latest', None)
29}
Paul Beesley653279b2019-01-23 15:39:39 +000030
31# Add any paths that contain templates here, relative to this directory.
32templates_path = ['_templates']
33
34# The suffix(es) of source filenames.
35source_suffix = '.rst'
36
37# The master toctree document.
38master_doc = 'index'
39
40# The language for content autogenerated by Sphinx. Refer to documentation
41# for a list of supported languages.
42#
43# This is also used if you do content translation via gettext catalogs.
44# Usually you set "language" from the command line for these cases.
45language = None
46
47# List of patterns, relative to source directory, that match files and
48# directories to ignore when looking for source files.
49# This pattern also affects html_static_path and html_extra_path .
50exclude_patterns = []
51
52# The name of the Pygments (syntax highlighting) style to use.
53pygments_style = 'sphinx'
54
Paul Beesley8f62ca72019-03-13 13:58:02 +000055# Load the contents of the global substitutions file into the 'rst_prolog'
56# variable. This ensures that the substitutions are all inserted into each page.
57with open('global_substitutions.txt', 'r') as subs:
58 rst_prolog = subs.read()
Paul Beesley653279b2019-01-23 15:39:39 +000059
Paul Beesleyc4e4df32019-05-17 11:45:36 +010060# Minimum version of sphinx required
61needs_sphinx = '2.0'
62
Paul Beesley653279b2019-01-23 15:39:39 +000063# -- Options for HTML output -------------------------------------------------
64
65# Don't show the "Built with Sphinx" footer
66html_show_sphinx = False
67
68# Don't show copyright info in the footer (we have this content in the page)
69html_show_copyright = False
70
71# The theme to use for HTML and HTML Help pages. See the documentation for
72# a list of builtin themes.
73html_theme = "sphinx_rtd_theme"
74
75# The logo to display in the sidebar
76html_logo = 'resources/TrustedFirmware-Logo_standard-white.png'
77
78# Options for the "sphinx-rtd-theme" theme
79html_theme_options = {
80 'collapse_navigation': False, # Can expand and collapse sidebar entries
81 'prev_next_buttons_location': 'both', # Top and bottom of the page
82 'style_external_links': True # Display an icon next to external links
83}
Paul Beesleyc4e4df32019-05-17 11:45:36 +010084
Zelalem7006f202021-02-24 19:20:09 -060085# Path to _static directory
86html_static_path = ['_static']
87
88# Path to css file relative to html_static_path
89html_css_files = [
90 'css/custom.css',
91]
92
Paul Beesleyc4e4df32019-05-17 11:45:36 +010093# -- Options for autosectionlabel --------------------------------------------
94
95# Only generate automatic section labels for document titles
Paul Beesley7cb68802019-07-12 11:56:58 +010096autosectionlabel_maxdepth = 1
97
98# -- Options for plantuml ----------------------------------------------------
99
100plantuml_output_format = 'svg_img'