blob: 31885ebdefca81b22f58a9e7df3210e2e3ee9f24 [file] [log] [blame]
Gyorgy Szing5e429cb2019-12-03 20:39:55 +01001# -*- coding: utf-8 -*-
2
3# -- Metadata about this file ------------------------------------------------
4__copyright__ = "Copyright (c) 2019-2020 Arm Limited"
5__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#
15# import os
16# import sys
17# sys.path.insert(0, os.path.abspath('.'))
18
19# -- Project information -----------------------------------------------------
20project = 'CMake Framework'
21
22# The full version, including alpha/beta/rc tags
23with open('../version.txt', 'r') as f:
24 release = f.read()
25 f.close()
26
27# -- General configuration ---------------------------------------------------
28
29# Add any Sphinx extension module names here, as strings. They can be
30# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31# ones.
32extensions = ['sphinx.ext.autosectionlabel', 'sphinxcontrib.plantuml',
33 'sphinxcontrib.moderncmakedomain', 'sphinx.ext.todo']
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# List of patterns, relative to source directory, that match files and
52# directories to ignore when looking for source files.
53# This pattern also affects html_static_path and html_extra_path.
54exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
55
56# The name of the Pygments (syntax highlighting) style to use.
57pygments_style = 'sphinx'
58
59# Load the contents of the global substitutions file into the 'rst_prolog'
60# variable. This ensures that the substitutions are all inserted into each page.
61with open('global_substitutions.txt', 'r') as subs:
62 rst_prolog = subs.read()
63# Minimum version of sphinx required
64needs_sphinx = '2.0'
65
66# -- Options for HTML output -------------------------------------------------
67
68# Don't show the "Built with Sphinx" footer
69html_show_sphinx = False
70
71# Don't show copyright info in the footer (we have this content in the page)
72html_show_copyright = False
73
74# The theme to use for HTML and HTML Help pages. See the documentation for
75# a list of builtin themes.
76html_theme = "sphinx_rtd_theme"
77
78# The logo to display in the sidebar
79# html_logo = ''
80
81# Options for the "sphinx-rtd-theme" theme
82html_theme_options = {
83 'collapse_navigation': False, # Can expand and collapse sidebar entries
84 'prev_next_buttons_location': 'both', # Top and bottom of the page
85 'style_external_links': True # Display an icon next to external links
86}
87
88# -- Options for autosectionlabel --------------------------------------------
89
90# Only generate automatic section labels for document titles
91autosectionlabel_maxdepth = 1
92
93# -- Options for plantuml ----------------------------------------------------
94
95plantuml_output_format = 'svg_img'
96
97# -- Options for todo extension ----------------------------------------------
98
99# Display todos
100todo_include_todos = True