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