Logo AND Algorithmique Numérique Distribuée

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