Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
forgot that in making Activities extendable. Should please Asan
[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
16 import subprocess
17
18 # Search for our extensions too
19 import sys
20 sys.path.append(os.path.abspath('_ext'))
21
22 # -- Run doxygen on readthedocs.org ------------------------------------------
23
24 read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
25
26 if read_the_docs_build:
27     subprocess.call('pwd', shell=True) # should be in docs/source
28     subprocess.call('doxygen', shell=True)
29     subprocess.call('javasphinx-apidoc --force -o java/ ../../src/bindings/java/org/simgrid/msg', shell=True)
30     subprocess.call('rm java/packages.rst', shell=True)
31
32 # -- Project information -----------------------------------------------------
33
34 project = u'SimGrid'
35 copyright = u'2002-2021, The SimGrid Team'
36 author = u'The SimGrid Team'
37
38 # The short X.Y version
39 version = u'3.29.1'
40
41 # -- General configuration ---------------------------------------------------
42
43 # If your documentation needs a minimal Sphinx version, state it here.
44 #
45 # needs_sphinx = '1.0'
46
47 # Add any Sphinx extension module names here, as strings. They can be
48 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
49 # ones.
50 extensions = [
51     'sphinx.ext.todo',
52     'breathe',
53     'sphinx.ext.autodoc',
54     'sphinx.ext.intersphinx',
55     'sphinx.ext.autosummary',
56     'sphinx_tabs.tabs',
57     'javasphinx',
58     'showfile',
59 ]
60
61 todo_include_todos = True
62
63 # Setup the breath extension
64 breathe_projects = {'simgrid': '../build/xml'}
65 breathe_default_project = "simgrid"
66
67 # Generate a warning for all a cross-reference (such as :func:`myfunc`) that cannot be found
68 nitpicky = True
69 nitpick_ignore = [
70   ('cpp:identifier', 'boost'),
71   ('cpp:identifier', 'boost::intrusive_ptr<Activity>'),
72   ('cpp:identifier', 'boost::intrusive_ptr<Actor>'),
73   ('cpp:identifier', 'boost::intrusive_ptr<Barrier>'),
74   ('cpp:identifier', 'boost::intrusive_ptr<Comm>'),
75   ('cpp:identifier', 'boost::intrusive_ptr<ConditionVariable>'),
76   ('cpp:identifier', 'boost::intrusive_ptr<Exec>'),
77   ('cpp:identifier', 'boost::intrusive_ptr<Io>'),
78   ('cpp:identifier', 'boost::intrusive_ptr<Mutex>'),
79   ('cpp:identifier', 'boost::intrusive_ptr<Semaphore>'),
80   ('cpp:identifier', 'kernel'),
81   ('cpp:identifier', 'kernel::activity'),
82   ('cpp:identifier', 'kernel::activity::ActivityImplPtr'),
83   ('cpp:identifier', 'kernel::activity::CommImpl'),
84   ('cpp:identifier', 'kernel::activity::CommImplPtr'),
85   ('cpp:identifier', 'kernel::actor'),
86   ('cpp:identifier', 'kernel::actor::ActorCodeFactory'),
87   ('cpp:identifier', 'kernel::actor::ActorImpl'),
88   ('cpp:identifier', 'kernel::profile'),
89   ('cpp:identifier', 'kernel::profile::Profile'),
90   ('cpp:identifier', 'kernel::resource'),
91   ('cpp:identifier', 'kernel::resource::Action'),
92   ('cpp:identifier', 'kernel::resource::Action::State'),
93   ('cpp:identifier', 'kernel::resource::LinkImpl'),
94   ('cpp:identifier', 'kernel::resource::NetworkAction'),
95   ('cpp:identifier', 'kernel::routing'),
96   ('cpp:identifier', 'kernel::routing::NetPoint'),
97   ('cpp:identifier', 'ns3'),
98   ('cpp:identifier', 'ns3::Ptr<ns3::Node>'),
99   ('cpp:identifier', 'ns3::Node'),
100   ('cpp:identifier', 's4u'),
101   ('cpp:identifier', 's4u_Actor'),
102   ('cpp:identifier', 's4u_Barrier'),
103   ('cpp:identifier', 's4u_Comm'),
104   ('cpp:identifier', 's4u_ConditionVariable'),
105   ('cpp:identifier', 's4u_Exec'),
106   ('cpp:identifier', 's4u_File'),
107   ('cpp:identifier', 's4u_Host'),
108   ('cpp:identifier', 's4u_Link'),
109   ('cpp:identifier', 's4u_Mailbox'),
110   ('cpp:identifier', 's4u_Mutex'),
111   ('cpp:identifier', 's4u_NetZone'),
112   ('cpp:identifier', 's4u_Semaphore'),
113   ('cpp:identifier', 's4u_VM'),
114   ('cpp:identifier', 's4u_VirtualMachine'),
115   ('cpp:identifier', 'sg_msg_Comm'),
116   ('cpp:identifier', 'sg_msg_Task'),
117   ('cpp:identifier', 'simgrid'),
118   ('cpp:identifier', 'simgrid::s4u'),
119   ('cpp:identifier', 'simgrid::s4u::Activity_T<Comm>'),
120   ('cpp:identifier', 'simgrid::s4u::Activity_T<Exec>'),
121   ('cpp:identifier', 'simgrid::s4u::Activity_T<Io>'),
122   ('cpp:identifier', 'simgrid::s4u::this_actor'),
123   ('cpp:identifier', 'simgrid::xbt'),
124   ('cpp:identifier', 'simgrid::xbt::string'),
125   ('cpp:identifier', 'size_t'),
126   ('cpp:identifier', 'ssize_t'),
127   ('cpp:identifier', 'this_actor'),
128   ('cpp:identifier', 'uint64_t'),
129   ('cpp:identifier', 'xbt'),
130   ('cpp:identifier', 'xbt_dynar_s'),
131   ('cpp:identifier', 'xbt::Extendable<Activity>'),
132   ('cpp:identifier', 'xbt::Extendable<Actor>'),
133   ('cpp:identifier', 'xbt::Extendable<Disk>'),
134   ('cpp:identifier', 'xbt::Extendable<File>'),
135   ('cpp:identifier', 'xbt::Extendable<Host>'),
136   ('cpp:identifier', 'xbt::Extendable<Link>'),
137   ('cpp:identifier', 'xbt::signal<void()>'),
138   ('cpp:identifier', 'xbt::signal<void(Actor const&)>'),
139   ('cpp:identifier', 'xbt::signal<void(Actor&)>'),
140   ('cpp:identifier', 'xbt::signal<void(Comm const&)>'),
141   ('cpp:identifier', 'xbt::signal<void(Comm const&, bool is_sender)>'),
142   ('cpp:identifier', 'xbt::signal<void(Disk const&)>'),
143   ('cpp:identifier', 'xbt::signal<void(Disk&)>'),
144   ('cpp:identifier', 'xbt::signal<void(Exec const&)>'),
145   ('cpp:identifier', 'xbt::signal<void(Host const&)>'),
146   ('cpp:identifier', 'xbt::signal<void(Host&)>'),
147   ('cpp:identifier', 'xbt::signal<void(Link const&)>'),
148   ('cpp:identifier', 'xbt::signal<void(Link&)>'),
149   ('cpp:identifier', 'xbt::signal<void(NetZone const&)>'),
150   ('cpp:identifier', 'xbt::signal<void(VirtualMachine const&)>'),
151   ('cpp:identifier', 'xbt::signal<void(const Actor&, const Host &previous_location)>'),
152   ('cpp:identifier', 'xbt::signal<void(double)>'),
153   ('cpp:identifier', 'xbt::signal<void(kernel::resource::NetworkAction&)>'),
154   ('cpp:identifier', 'xbt::signal<void(kernel::resource::NetworkAction&, kernel::resource::Action::State)>'),
155   ('cpp:identifier', 'xbt::signal<void(void)>'),
156   ('cpp:identifier', 'xbt::string'),
157 ]
158
159 # For cross-ref generation
160 primary_domain = 'cpp'
161
162 # Add any paths that contain templates here, relative to this directory.
163 templates_path = ['_templates']
164
165 # The suffix(es) of source filenames.
166 # You can specify multiple suffix as a list of string: ['.rst', '.md']
167 source_suffix = '.rst'
168
169 # The master toctree document.
170 master_doc = 'index'
171
172 # The language for content autogenerated by Sphinx. Refer to documentation
173 # for a list of supported languages.
174 #
175 # This is also used if you do content translation via gettext catalogs.
176 # Usually you set "language" from the command line for these cases.
177 language = None
178
179 # List of patterns, relative to source directory, that match files and
180 # directories to ignore when looking for source files.
181 # This pattern also affects html_static_path and html_extra_path .
182 exclude_patterns = []
183
184 # The name of the Pygments (syntax highlighting) style to use.
185 pygments_style = 'sphinx'
186
187 # -- Options for HTML output -------------------------------------------------
188
189 # The theme to use for HTML and HTML Help pages.  See the documentation for
190 # a list of builtin themes.
191 #
192 html_theme = 'sphinx_rtd_theme'
193
194 # Theme options are theme-specific and customize the look and feel of a theme
195 # further.  For a list of options available for each theme, see the
196 # documentation.
197 #
198 html_theme_options = {
199     'navigation_depth': 4,
200     'sticky_navigation': True,
201     'display_version': True,
202     'includehidden': True,
203 }
204
205 # Add any paths that contain custom static files (such as style sheets) here,
206 # relative to this directory. They are copied after the builtin static files,
207 # so a file named "default.css" will overwrite the builtin "default.css".
208 html_static_path = ['_static']
209
210 # Custom sidebar templates, must be a dictionary that maps document names
211 # to template names.
212 #
213 # The default sidebars (for documents that don't match any pattern) are
214 # defined by theme itself.  Builtin themes are using these templates by
215 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
216 # 'searchbox.html']``.
217 #
218 # html_sidebars = {'**': ['localtoc.html', 'relations.html', 'searchbox.html']}
219
220 # -- Options for HTMLHelp output ---------------------------------------------
221
222 # Output file base name for HTML help builder.
223 htmlhelp_basename = 'simgrid-doc'
224
225 # -- Options for GitLab integration ------------------------------------------
226
227 html_context = {
228     "display_gitlab": True,  # Integrate Gitlab
229     "gitlab_host": "framagit.org",
230     "gitlab_user": "simgrid",
231     "gitlab_repo": "simgrid",
232     "gitlab_version": "master",  # Version
233     "conf_py_path": "/docs/source/",  # Path in the checkout to the docs root
234 }
235
236 html_css_files = [
237     'css/custom.css',
238 ]
239
240 # -- Other options