blob: f4c1c5af2c901aaa2721c0b071a25d32464644ef [file] [log] [blame]
Gyorgy Szing4021c292020-11-24 00:33:00 +01001# -*- coding: utf-8 -*-
2
3# -- Metadata about this file ------------------------------------------------
Gabor Toth11192a22023-04-04 12:40:16 +02004__copyright__ = "Copyright (c) 2020-2023 Arm Limited and Contributors."
Gyorgy Szing4021c292020-11-24 00:33:00 +01005__license__ = "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#
15import os
16# import sys
17# sys.path.insert(0, os.path.abspath('.'))
18
19# -- Project information -----------------------------------------------------
20project = 'Trusted Services'
21
22# The full version, including alpha/beta/rc tags
23with open('../version.txt', 'r') as f:
24 release = f.read()
25 f.close()
26version=release
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',
Gyorgy Szing27095c02022-11-25 11:37:50 +010034 'sphinxcontrib.moderncmakedomain' ]
Gyorgy Szing4021c292020-11-24 00:33:00 +010035
36# Add any paths that contain templates here, relative to this directory.
37templates_path = ['_templates']
38
39# The suffix(es) of source filenames.
40source_suffix = '.rst'
41
42# The master toctree document.
43master_doc = 'index'
44
45# The language for content autogenerated by Sphinx. Refer to documentation
46# for a list of supported languages.
47#
48# This is also used if you do content translation via gettext catalogs.
49# Usually you set "language" from the command line for these cases.
Gabor Toth42429722024-07-01 12:45:16 +020050language = 'en'
Gyorgy Szing4021c292020-11-24 00:33:00 +010051
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 = '_static/images/tf_logo_white.png'
81
82
83# Options for the "sphinx-rtd-theme" theme
84html_theme_options = {
85 'collapse_navigation': False, # Can expand and collapse sidebar entries
86 'prev_next_buttons_location': 'both', # Top and bottom of the page
87 'style_external_links': True # Display an icon next to external links
88}
89
90html_static_path = ['_static']
91
92#Add custom css for HTML. Used to allow full page width rendering
93def setup(app):
Gabor Toth11192a22023-04-04 12:40:16 +020094 app.add_css_file('css/custom.css')
Gyorgy Szing4021c292020-11-24 00:33:00 +010095
96
97# -- Options for autosectionlabel --------------------------------------------
98
99# Only generate automatic section labels for document titles
100autosectionlabel_maxdepth = 1
101
102# -- Options for plantuml ----------------------------------------------------
103
104plantuml_output_format = 'svg_img'