Gyorgy Szing | 05ece0e | 2019-10-08 12:56:59 +0200 | [diff] [blame] | 1 | # -*- coding: utf-8 -*-
|
Imre Kis | 1d2fbdd | 2019-12-13 11:42:08 +0100 | [diff] [blame^] | 2 | #
|
| 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 Szing | 05ece0e | 2019-10-08 12:56:59 +0200 | [diff] [blame] | 11 |
|
| 12 | # -- Metadata about this file ------------------------------------------------
|
| 13 | __date__ = "08 October 2019"
|
Imre Kis | 1d2fbdd | 2019-12-13 11:42:08 +0100 | [diff] [blame^] | 14 | __copyright__ = "Copyright (c) 2019-2020 Arm Limited; SPDX-License-Identifier: BSD-3-Clause"
|
Gyorgy Szing | 05ece0e | 2019-10-08 12:56:59 +0200 | [diff] [blame] | 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 -----------------------------------------------------
|
| 29 | project = 'TF-A Unit Tests'
|
Imre Kis | 1d2fbdd | 2019-12-13 11:42:08 +0100 | [diff] [blame^] | 30 | copyright = 'Copyright (c) 2019-2020 Arm Limited'
|
| 31 | author = 'Arm Limited'
|
Gyorgy Szing | 05ece0e | 2019-10-08 12:56:59 +0200 | [diff] [blame] | 32 |
|
| 33 | # The full version, including alpha/beta/rc tags
|
| 34 | release = '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 Kis | 1d2fbdd | 2019-12-13 11:42:08 +0100 | [diff] [blame^] | 42 | extensions = ['sphinx.ext.autosectionlabel', 'sphinxcontrib.plantuml', 'sphinxcontrib.moderncmakedomain']
|
Gyorgy Szing | 05ece0e | 2019-10-08 12:56:59 +0200 | [diff] [blame] | 43 |
|
| 44 | # Add any paths that contain templates here, relative to this directory.
|
| 45 | templates_path = ['_templates']
|
| 46 |
|
| 47 | # The suffix(es) of source filenames.
|
| 48 | source_suffix = '.rst'
|
| 49 |
|
| 50 | # The master toctree document.
|
| 51 | master_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.
|
| 58 | language = 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.
|
| 64 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
| 65 |
|
| 66 | # The name of the Pygments (syntax highlighting) style to use.
|
| 67 | pygments_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.
|
| 71 | with open('global_substitutions.txt', 'r') as subs:
|
| 72 | rst_prolog = subs.read()
|
| 73 | # Minimum version of sphinx required
|
| 74 | needs_sphinx = '2.0'
|
| 75 |
|
| 76 | # -- Options for HTML output -------------------------------------------------
|
| 77 |
|
| 78 | # Don't show the "Built with Sphinx" footer
|
| 79 | html_show_sphinx = False
|
| 80 |
|
| 81 | # Don't show copyright info in the footer (we have this content in the page)
|
| 82 | html_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.
|
| 86 | html_theme = "sphinx_rtd_theme"
|
| 87 |
|
| 88 | # The logo to display in the sidebar
|
| 89 | html_logo = 'resources/TrustedFirmware-Logo_standard-white.png'
|
| 90 |
|
| 91 | # Options for the "sphinx-rtd-theme" theme
|
| 92 | html_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
|
| 101 | autosectionlabel_maxdepth = 1
|
| 102 |
|
| 103 | # -- Options for plantuml ----------------------------------------------------
|
| 104 |
|
| 105 | plantuml_output_format = 'svg_img'
|