blob: f73320915bbcab3da5d57576298cc060b153093e [file] [log] [blame]
Galanakis, Minos80efacd2019-07-03 15:20:20 +01001# -*- coding: utf-8 -*-
2#-------------------------------------------------------------------------------
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7#-------------------------------------------------------------------------------#
8
9# Configuration file for the Sphinx documentation builder.
10#
11# This file does only contain a selection of the most common options. For a
12# full list see the documentation:
13# http://www.sphinx-doc.org/en/master/config
14
15# -- Path setup --------------------------------------------------------------
16
17# If extensions (or modules to document with autodoc) are in another directory,
18# add these directories to sys.path here. If the directory is relative to the
19# documentation root, use os.path.abspath to make it absolute, like shown here.
20#
21import os
22import sys
23sys.path.insert(0, os.path.abspath('./'))
24import tfm_copy_files
25
26
27# -- Project information -----------------------------------------------------
28
29project = 'TF-M'
30copyright = '2017-2019, ARM CE-OSS'
31author = 'ARM CE-OSS'
32title = 'TF-M user Guide'
33
34# The short X.Y version
35version = '1.0.0-Beta'
36# The full version, including alpha/beta/rc tags
37release = 'Version 1.0.0-Beta'
38
39
40# -- General configuration ---------------------------------------------------
41
42# If your documentation needs a minimal Sphinx version, state it here.
43#
44# needs_sphinx = '1.4'
45
46# Add any Sphinx extension module names here, as strings. They can be
47# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
48# ones.
49extensions = [
50 'sphinx.ext.imgmath',
51 'm2r', #Support markdown files. Needed for external code.
52 'sphinx.ext.autosectionlabel', #Make sphinx generate a label for each section
53 'sphinxcontrib.plantuml' #Add support for PlantUML drawings
54]
55
56#Location of PlantUML
57plantuml = '/usr/bin/java -jar /usr/share/plantuml/plantuml.jar'
58
59#Make auso section labals generated be prefixed with file name.
60autosectionlabel_prefix_document=True
61#Add auso section label for level 1 headers only.
62autosectionlabel_maxdepth=1
63
64# Add any paths that contain templates here, relative to this directory.
65templates_path = ['_templates']
66
67# The suffix(es) of source filenames.
68# You can specify multiple suffix as a list of string:
69#
70source_suffix = ['.rst', '.md']
71
72# The master toctree document.
73master_doc = 'index'
74
75# The language for content autogenerated by Sphinx. Refer to documentation
76# for a list of supported languages.
77#
78# This is also used if you do content translation via gettext catalogs.
79# Usually you set "language" from the command line for these cases.
80language = None
81
82# List of patterns, relative to source directory, that match files and
83# directories to ignore when looking for source files.
84# This pattern also affects html_static_path and html_extra_path .
85exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
86
87# The name of the Pygments (syntax highlighting) style to use.
88pygments_style = 'sphinx'
89
90
91# -- Options for HTML output -------------------------------------------------
92
93# The theme to use for HTML and HTML Help pages. See the documentation for
94# a list of builtin themes.
95#
96html_theme = 'sphinx_rtd_theme'
97
98# Theme options are theme-specific and customize the look and feel of a theme
99# further. For a list of options available for each theme, see the
100# documentation.
101#
102# html_theme_options = {}
103#
104# Add any paths that contain custom static files (such as style sheets) here,
105# relative to this directory. They are copied after the builtin static files,
106# so a file named "default.css" will overwrite the builtin "default.css".
107html_static_path = ['../docs/_static']
108
109# Custom sidebar templates, must be a dictionary that maps document names
110# to template names.
111#
112# The default sidebars (for documents that don't match any pattern) are
113# defined by theme itself. Builtin themes are using these templates by
114# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
115# 'searchbox.html']``.
116#
117# html_sidebars = {}
118
119#Disable adding conf.py copyright notice to HTML output
120html_show_copyright = False
121
122#Add custom css for HTML. Used to allow full page width rendering
123def setup(app):
124 app.add_stylesheet('css/custom.css')
125
126# -- Options for HTMLHelp output ---------------------------------------------
127
128# Output file base name for HTML help builder.
129htmlhelp_basename = 'TF-M doc'
130
131
132# -- Options for LaTeX output ------------------------------------------------
133
134latex_elements = {
135 # The paper size ('letterpaper' or 'a4paper').
136 #
137 # 'papersize': 'letterpaper',
138
139 # The font size ('10pt', '11pt' or '12pt').
140 #
141 # 'pointsize': '10pt',
142
143 # Additional stuff for the LaTeX preamble.
144 #
145 # 'preamble': '',
146
147 # Latex figure (float) alignment
148 #
149 # 'figure_align': 'htbp',
150}
151
152# Grouping the document tree into LaTeX files. List of tuples
153# (source start file, target name, title,
154# author, documentclass [howto, manual, or own class]).
155latex_documents = [
156 (master_doc, 'TF-M.tex', title,
157 author, 'manual'),
158]
159
160
161# -- Options for manual page output ------------------------------------------
162
163# One entry per manual page. List of tuples
164# (source start file, name, description, authors, manual section).
165#man_pages = [
166# (master_doc, 'tf-m', title,
167# [author], 7)
168#]
169
170
171# -- Options for Texinfo output ----------------------------------------------
172
173# Grouping the document tree into Texinfo files. List of tuples
174# (source start file, target name, title, author,
175# dir menu entry, description, category)
176#texinfo_documents = [
177# (master_doc, 'TF-M', title,
178# author, 'TF-M', 'Trusted Firmware for Cortex-M',
179# 'Miscellaneous'),
180#]
181
182
183# -- Extension configuration -------------------------------------------------