1 # -*- coding: utf-8 -*-
3 # Configuration file for the Sphinx documentation builder.
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
9 # -- Path setup --------------------------------------------------------------
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.
17 # Search for our extensions too
19 sys.path.append(os.path.abspath('_ext'))
21 # -- Run doxygen on readthedocs.org ------------------------------------------
24 read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
26 if read_the_docs_build:
27 subprocess.call('cd source; doxygen', shell=True)
28 subprocess.call('javasphinx-apidoc --force -o source/java/ ../src/bindings/java/org/simgrid/msg', shell=True)
29 subprocess.call('rm source/java/packages.rst', shell=True)
31 # -- Project information -----------------------------------------------------
34 copyright = u'2002-2018, The SimGrid Team'
35 author = u'The SimGrid Team'
37 # The short X.Y version
39 # The full version, including alpha/beta/rc tags
43 # -- General configuration ---------------------------------------------------
45 # If your documentation needs a minimal Sphinx version, state it here.
47 # needs_sphinx = '1.0'
49 # Add any Sphinx extension module names here, as strings. They can be
50 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
60 todo_include_todos = True
62 breathe_projects = { 'simgrid': '../build/xml' }
63 breathe_default_project = "simgrid"
65 # Setup the exhale extension
68 # These arguments are required
69 "containmentFolder": "./api",
70 "rootFileName": "library_root.rst",
71 "rootFileTitle": "SimGrid Full API",
72 "doxygenStripFromPath": "..",
73 # Suggested optional arguments
74 "createTreeView": True,
75 "exhaleExecutesDoxygen": False,
76 # "exhaleUseDoxyfile": True,
80 # For cross-ref generation
81 primary_domain = 'cpp'
84 # Add any paths that contain templates here, relative to this directory.
85 # templates_path = ['_templates']
87 # The suffix(es) of source filenames.
88 # You can specify multiple suffix as a list of string: ['.rst', '.md']
89 source_suffix = '.rst'
91 # The master toctree document.
94 # The language for content autogenerated by Sphinx. Refer to documentation
95 # for a list of supported languages.
97 # This is also used if you do content translation via gettext catalogs.
98 # Usually you set "language" from the command line for these cases.
101 # List of patterns, relative to source directory, that match files and
102 # directories to ignore when looking for source files.
103 # This pattern also affects html_static_path and html_extra_path .
104 exclude_patterns = []
106 # The name of the Pygments (syntax highlighting) style to use.
107 pygments_style = 'sphinx'
109 # -- Options for HTML output -------------------------------------------------
111 # The theme to use for HTML and HTML Help pages. See the documentation for
112 # a list of builtin themes.
114 html_theme = 'sphinx_rtd_theme'
116 # Theme options are theme-specific and customize the look and feel of a theme
117 # further. For a list of options available for each theme, see the
120 html_theme_options = {
121 'navigation_depth' : 4,
122 'sticky_navigation': True,
123 'display_version': True,
124 'includehidden': True,
127 # Add any paths that contain custom static files (such as style sheets) here,
128 # relative to this directory. They are copied after the builtin static files,
129 # so a file named "default.css" will overwrite the builtin "default.css".
130 # html_static_path = ['_static']
132 # Custom sidebar templates, must be a dictionary that maps document names
135 # The default sidebars (for documents that don't match any pattern) are
136 # defined by theme itself. Builtin themes are using these templates by
137 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
138 # 'searchbox.html']``.
140 # html_sidebars = {'**': ['localtoc.html', 'relations.html', 'searchbox.html']}
142 # -- Options for HTMLHelp output ---------------------------------------------
144 # Output file base name for HTML help builder.
145 htmlhelp_basename = 'SimGrid-doc'
147 # -- Options for GitLab integration ------------------------------------------
150 "display_gitlab": True, # Integrate Gitlab
151 "gitlab_host": "framagit.org",
152 "gitlab_user": "simgrid",
153 "gitlab_repo": "simgrid",
154 "gitlab_version": "master", # Version
155 "conf_py_path": "/docs/source/", # Path in the checkout to the docs root