Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
missing file
[simgrid.git] / docs / source / conf.py
1 # -*- coding: utf-8 -*-
2 #
3 # Configuration file for the Sphinx documentation builder.
4 #
5 # This file does only contain a selection of the most common options. For a
6 # full list see the documentation:
7 # http://www.sphinx-doc.org/en/master/config
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, subprocess
16
17 # Search for our extensions too
18 import sys
19 sys.path.append(os.path.abspath('_ext'))
20
21 # -- Project information -----------------------------------------------------
22
23 project = u'SimGrid'
24 copyright = u'2018, The SimGrid Team'
25 author = u'The SimGrid Team'
26
27 # The short X.Y version
28 version = u'3.21'
29 # The full version, including alpha/beta/rc tags
30 release = u'3.21'
31
32
33 # -- General configuration ---------------------------------------------------
34
35 # If your documentation needs a minimal Sphinx version, state it here.
36 #
37 # needs_sphinx = '1.0'
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.
42 extensions = [
43     'sphinx.ext.todo',
44 #    'sphinx.ext.coverage',
45 #    'sphinx.ext.mathjax',
46 #    'sphinx.ext.ifconfig',
47     'breathe',
48     'exhale',
49     'hidden_code_block',
50 ]
51
52 todo_include_todos = True
53
54 breathe_projects = { 'simgrid': '../build/xml' }
55 breathe_default_project = "simgrid"
56
57 # Setup the exhale extension
58
59 exhale_args = {
60     # These arguments are required
61     "containmentFolder":     "./api",
62     "rootFileName":          "library_root.rst",
63     "rootFileTitle":         "SimGrid Full API",
64     "doxygenStripFromPath":  "..",
65     # Suggested optional arguments
66     "createTreeView":        True,
67     "exhaleExecutesDoxygen": False,
68     # "exhaleUseDoxyfile":     True,
69 }
70
71
72 # For cross-ref generation
73 primary_domain = 'cpp'
74
75
76 # Add any paths that contain templates here, relative to this directory.
77 # templates_path = ['_templates']
78
79 # The suffix(es) of source filenames.
80 # You can specify multiple suffix as a list of string: ['.rst', '.md']
81 source_suffix = '.rst'
82
83 # The master toctree document.
84 master_doc = 'index'
85
86 # The language for content autogenerated by Sphinx. Refer to documentation
87 # for a list of supported languages.
88 #
89 # This is also used if you do content translation via gettext catalogs.
90 # Usually you set "language" from the command line for these cases.
91 language = None
92
93 # List of patterns, relative to source directory, that match files and
94 # directories to ignore when looking for source files.
95 # This pattern also affects html_static_path and html_extra_path .
96 exclude_patterns = []
97
98 # The name of the Pygments (syntax highlighting) style to use.
99 pygments_style = 'sphinx'
100
101 # -- Options for HTML output -------------------------------------------------
102
103 # The theme to use for HTML and HTML Help pages.  See the documentation for
104 # a list of builtin themes.
105 #
106 html_theme = 'sphinx_rtd_theme'
107
108 # Theme options are theme-specific and customize the look and feel of a theme
109 # further.  For a list of options available for each theme, see the
110 # documentation.
111 #
112 # html_theme_options = {}
113
114 # Add any paths that contain custom static files (such as style sheets) here,
115 # relative to this directory. They are copied after the builtin static files,
116 # so a file named "default.css" will overwrite the builtin "default.css".
117 # html_static_path = ['_static']
118
119 # Custom sidebar templates, must be a dictionary that maps document names
120 # to template names.
121 #
122 # The default sidebars (for documents that don't match any pattern) are
123 # defined by theme itself.  Builtin themes are using these templates by
124 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
125 # 'searchbox.html']``.
126 #
127 # html_sidebars = {'**': ['localtoc.html', 'relations.html', 'searchbox.html']}
128
129 # -- Options for HTMLHelp output ---------------------------------------------
130
131 # Output file base name for HTML help builder.
132 htmlhelp_basename = 'SimGrid-doc'
133
134 # -- Options for GitLab integration ------------------------------------------
135
136 html_context = {
137     "display_gitlab": True, # Integrate Gitlab
138     "gitlab_host": "framagit.org",
139     "gitlab_user": "simgrid",
140     "gitlab_repo": "simgrid",
141     "gitlab_version": "master", # Version
142     "conf_py_path": "/docs/source/", # Path in the checkout to the docs root
143 }
144