blob: 0d1528c22436f1755fd11f1259455dbb8aa0489a [file] [log] [blame]
Imre Kis124f0e32021-02-12 18:03:24 +01001# -*- coding: utf-8 -*-
2#
3# Copyright (c) 2019-2021, 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
11
12# -- Metadata about this file ------------------------------------------------
13__copyright__ = "Copyright (c) 2019-2021 Arm Limited"
14__license__ = "SPDX-License-Identifier: BSD-3-Clause"
15
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 = 'c-picker'
30copyright = __copyright__
31author = 'Arm Limited'
32
33# The full version, including alpha/beta/rc tags
34from c_picker import __version__ as release
35version = release
36
37
38# -- General configuration ---------------------------------------------------
39
40# Add any Sphinx extension module names here, as strings. They can be
41# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
42# ones.
43extensions = ['sphinx.ext.autosectionlabel']
44
45# Add any paths that contain templates here, relative to this directory.
46templates_path = ['_templates']
47
48# The suffix(es) of source filenames.
49source_suffix = '.rst'
50
51# The master toctree document.
52master_doc = 'index'
53
54# The language for content autogenerated by Sphinx. Refer to documentation
55# for a list of supported languages.
56#
57# This is also used if you do content translation via gettext catalogs.
58# Usually you set "language" from the command line for these cases.
59language = None
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()
73rst_prolog += "\n .. |RELEASE_NUMBER| replace:: %s" % (version)
74# Minimum version of sphinx required
75needs_sphinx = '2.0'
76
77# -- Options for HTML output -------------------------------------------------
78
79# Don't show the "Built with Sphinx" footer
80html_show_sphinx = False
81
82# Don't show copyright info in the footer (we have this content in the page)
83html_show_copyright = False
84
85# The theme to use for HTML and HTML Help pages. See the documentation for
86# a list of builtin themes.
87html_theme = "sphinx_rtd_theme"
88
89# The logo to display in the sidebar
90html_logo = 'resources/TrustedFirmware-Logo_standard-white.png'
91
92# Options for the "sphinx-rtd-theme" theme
93html_theme_options = {
94 'collapse_navigation': False, # Can expand and collapse sidebar entries
95 'prev_next_buttons_location': 'both', # Top and bottom of the page
96 'style_external_links': True # Display an icon next to external links
97}
98
99# -- Options for autosectionlabel --------------------------------------------
100
101# Only generate automatic section labels for document titles
102autosectionlabel_maxdepth = 1
103
104# -- Options for plantuml ----------------------------------------------------
105
106plantuml_output_format = 'svg_img'