blob: efe0d1036f88ec7b657b82a46dc4c3350d20082c [file] [log] [blame]
Gyorgy Szing05ece0e2019-10-08 12:56:59 +02001# -*- coding: utf-8 -*-
Imre Kis1d2fbdd2019-12-13 11:42:08 +01002#
3# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
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
Gyorgy Szing05ece0e2019-10-08 12:56:59 +020011
12# -- Metadata about this file ------------------------------------------------
13__date__ = "08 October 2019"
Imre Kis1d2fbdd2019-12-13 11:42:08 +010014__copyright__ = "Copyright (c) 2019-2020 Arm Limited; SPDX-License-Identifier: BSD-3-Clause"
Gyorgy Szing05ece0e2019-10-08 12:56:59 +020015
16# Configuration file for the Sphinx documentation builder.
17
18# -- Path setup --------------------------------------------------------------
19
20# If extensions (or modules to document with autodoc) are in another directory,
21# add these directories to sys.path here. If the directory is relative to the
22# documentation root, use os.path.abspath to make it absolute, like shown here.
23#
24# import os
25# import sys
26# sys.path.insert(0, os.path.abspath('.'))
27
28# -- Project information -----------------------------------------------------
29project = 'TF-A Unit Tests'
Imre Kis1d2fbdd2019-12-13 11:42:08 +010030copyright = 'Copyright (c) 2019-2020 Arm Limited'
31author = 'Arm Limited'
Gyorgy Szing05ece0e2019-10-08 12:56:59 +020032
33# The full version, including alpha/beta/rc tags
34release = '0.0.1'
35
36
37# -- General configuration ---------------------------------------------------
38
39# Add any Sphinx extension module names here, as strings. They can be
40# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
41# ones.
Imre Kis1d2fbdd2019-12-13 11:42:08 +010042extensions = ['sphinx.ext.autosectionlabel', 'sphinxcontrib.plantuml', 'sphinxcontrib.moderncmakedomain']
Gyorgy Szing05ece0e2019-10-08 12:56:59 +020043
44# Add any paths that contain templates here, relative to this directory.
45templates_path = ['_templates']
46
47# The suffix(es) of source filenames.
48source_suffix = '.rst'
49
50# The master toctree document.
51master_doc = 'index'
52
53# The language for content autogenerated by Sphinx. Refer to documentation
54# for a list of supported languages.
55#
56# This is also used if you do content translation via gettext catalogs.
57# Usually you set "language" from the command line for these cases.
58language = None
59
60
61# List of patterns, relative to source directory, that match files and
62# directories to ignore when looking for source files.
63# This pattern also affects html_static_path and html_extra_path.
64exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
65
66# The name of the Pygments (syntax highlighting) style to use.
67pygments_style = 'sphinx'
68
69# Load the contents of the global substitutions file into the 'rst_prolog'
70# variable. This ensures that the substitutions are all inserted into each page.
71with open('global_substitutions.txt', 'r') as subs:
72 rst_prolog = subs.read()
73# Minimum version of sphinx required
74needs_sphinx = '2.0'
75
76# -- Options for HTML output -------------------------------------------------
77
78# Don't show the "Built with Sphinx" footer
79html_show_sphinx = False
80
81# Don't show copyright info in the footer (we have this content in the page)
82html_show_copyright = False
83
84# The theme to use for HTML and HTML Help pages. See the documentation for
85# a list of builtin themes.
86html_theme = "sphinx_rtd_theme"
87
88# The logo to display in the sidebar
89html_logo = 'resources/TrustedFirmware-Logo_standard-white.png'
90
91# Options for the "sphinx-rtd-theme" theme
92html_theme_options = {
93 'collapse_navigation': False, # Can expand and collapse sidebar entries
94 'prev_next_buttons_location': 'both', # Top and bottom of the page
95 'style_external_links': True # Display an icon next to external links
96}
97
98# -- Options for autosectionlabel --------------------------------------------
99
100# Only generate automatic section labels for document titles
101autosectionlabel_maxdepth = 1
102
103# -- Options for plantuml ----------------------------------------------------
104
105plantuml_output_format = 'svg_img'