You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

260 lines
7.9 KiB

4 years ago
4 years ago
4 years ago
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # stormpy documentation build configuration file, created by
  5. # sphinx-quickstart on Mon Dec 12 16:20:40 2016.
  6. #
  7. # This file is execfile()d with the current directory set to its
  8. # containing dir.
  9. #
  10. # Note that not all possible configuration values are present in this
  11. # autogenerated file.
  12. #
  13. # All configuration values have a default; values that are commented out
  14. # serve to show the default.
  15. # If extensions (or modules to document with autodoc) are in another directory,
  16. # add these directories to sys.path here. If the directory is relative to the
  17. # documentation root, use os.path.abspath to make it absolute, like shown here.
  18. #
  19. # import os
  20. # import sys
  21. # sys.path.insert(0, os.path.abspath('.'))
  22. import stormpy
  23. import stormpy.logic
  24. import sphinx_bootstrap_theme
  25. # -- General configuration ------------------------------------------------
  26. # If your documentation needs a minimal Sphinx version, state it here.
  27. #
  28. # needs_sphinx = '1.0'
  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.
  32. extensions = [
  33. 'sphinx.ext.autodoc',
  34. 'sphinx.ext.doctest',
  35. #'sphinx.ext.intersphinx',
  36. 'sphinx.ext.coverage',
  37. 'sphinx.ext.githubpages',
  38. 'sphinx.ext.autosectionlabel',
  39. 'nbsphinx'
  40. ]
  41. autosectionlabel_prefix_document = True
  42. #autosectionlabel_maxdepth = 10
  43. # Add any paths that contain templates here, relative to this directory.
  44. templates_path = ['_templates']
  45. # The suffix(es) of source filenames.
  46. # You can specify multiple suffix as a list of string:
  47. #
  48. # source_suffix = ['.rst', '.md']
  49. source_suffix = '.rst'
  50. # The master toctree document.
  51. master_doc = 'index'
  52. # General information about the project.
  53. project = 'stormpy'
  54. copyright = '2016-2020 Moves RWTH Aachen'
  55. author = 'Sebastian Junges, Matthias Volk'
  56. # The version info for the project you're documenting, acts as replacement for
  57. # |version| and |release|, also used in various other places throughout the
  58. # built documents.
  59. #
  60. # The short X.Y version.
  61. version = stormpy.__version__
  62. # The full version, including alpha/beta/rc tags.
  63. release = version
  64. # The language for content autogenerated by Sphinx. Refer to documentation
  65. # for a list of supported languages.
  66. #
  67. # This is also used if you do content translation via gettext catalogs.
  68. # Usually you set "language" from the command line for these cases.
  69. language = None
  70. # List of patterns, relative to source directory, that match files and
  71. # directories to ignore when looking for source files.
  72. # This patterns also effect to html_static_path and html_extra_path
  73. exclude_patterns = []
  74. # The name of the Pygments (syntax highlighting) style to use.
  75. pygments_style = 'sphinx'
  76. # If true, `todo` and `todoList` produce output, else they produce nothing.
  77. todo_include_todos = False
  78. # If true, the current module name will be prepended to all description
  79. # unit titles (such as .. function::).
  80. add_module_names = False
  81. # -- Options for HTML output ----------------------------------------------
  82. # The theme to use for HTML and HTML Help pages. See the documentation for
  83. # a list of builtin themes.
  84. #
  85. html_theme = 'bootstrap'
  86. html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
  87. # Theme options are theme-specific and customize the look and feel of a theme
  88. # further. For a list of options available for each theme, see the
  89. # documentation.
  90. #
  91. html_theme_options = {
  92. # Navigation bar title. (Default: ``project`` value)
  93. 'navbar_title': "Stormpy",
  94. # Tab name for entire site. (Default: "Site")
  95. 'navbar_site_name': "Stormpy",
  96. # A list of tuples containing pages or urls to link to.
  97. # Valid tuples should be in the following forms:
  98. # (name, page) # a link to a page
  99. # (name, "/aa/bb", 1) # a link to an arbitrary relative url
  100. # (name, "http://example.com", True) # arbitrary absolute url
  101. # Note the "1" or "True" value above as the third argument to indicate
  102. # an arbitrary url.
  103. 'navbar_links': [
  104. ("Storm", "http://stormchecker.org", True),
  105. ("Github", "https://github.com/moves-rwth/stormpy", True)
  106. ],
  107. # Render the next and previous page links in navbar. (Default: true)
  108. 'navbar_sidebarrel': True,
  109. # Render the current pages TOC in the navbar. (Default: true)
  110. 'navbar_pagenav': True,
  111. # Tab name for the current pages TOC. (Default: "Page")
  112. 'navbar_pagenav_name': "Page",
  113. # Global TOC depth for "site" navbar tab. (Default: 1)
  114. # Switching to -1 shows all levels.
  115. 'globaltoc_depth': 2,
  116. # Include hidden TOCs in Site navbar?
  117. #
  118. # Note: If this is "false", you cannot have mixed ``:hidden:`` and
  119. # non-hidden ``toctree`` directives in the same page, or else the build
  120. # will break.
  121. #
  122. # Values: "true" (default) or "false"
  123. 'globaltoc_includehidden': "true",
  124. # HTML navbar class (Default: "navbar") to attach to <div> element.
  125. # For black navbar, do "navbar navbar-inverse"
  126. 'navbar_class': "navbar navbar-inverse",
  127. # Fix navigation bar to top of page?
  128. # Values: "true" (default) or "false"
  129. 'navbar_fixed_top': "true",
  130. # Location of link to source.
  131. # Options are "nav" (default), "footer" or anything else to exclude.
  132. 'source_link_position': "footer",
  133. # Bootswatch (http://bootswatch.com/) theme.
  134. #
  135. # Options are nothing (default) or the name of a valid theme
  136. # such as "cosmo" or "sandstone".
  137. 'bootswatch_theme': "united",
  138. # Choose Bootstrap version.
  139. # Values: "3" (default) or "2" (in quotes)
  140. 'bootstrap_version': "3",
  141. }
  142. # Add any paths that contain custom static files (such as style sheets) here,
  143. # relative to this directory. They are copied after the builtin static files,
  144. # so a file named "default.css" will overwrite the builtin "default.css".
  145. html_static_path = ['_static']
  146. # -- Options for HTMLHelp output ------------------------------------------
  147. # Output file base name for HTML help builder.
  148. htmlhelp_basename = 'stormpydoc'
  149. # -- Options for LaTeX output ---------------------------------------------
  150. latex_elements = {
  151. # The paper size ('letterpaper' or 'a4paper').
  152. #
  153. # 'papersize': 'letterpaper',
  154. # The font size ('10pt', '11pt' or '12pt').
  155. #
  156. # 'pointsize': '10pt',
  157. # Additional stuff for the LaTeX preamble.
  158. #
  159. # 'preamble': '',
  160. # Latex figure (float) alignment
  161. #
  162. # 'figure_align': 'htbp',
  163. }
  164. # Grouping the document tree into LaTeX files. List of tuples
  165. # (source start file, target name, title,
  166. # author, documentclass [howto, manual, or own class]).
  167. latex_documents = [
  168. (master_doc, 'stormpy.tex', 'stormpy Documentation',
  169. 'Sebastian Junges, Matthias Volk', 'manual'),
  170. ]
  171. # -- Options for manual page output ---------------------------------------
  172. # One entry per manual page. List of tuples
  173. # (source start file, name, description, authors, manual section).
  174. man_pages = [
  175. (master_doc, 'stormpy', 'stormpy Documentation',
  176. [author], 1)
  177. ]
  178. # -- Options for Texinfo output -------------------------------------------
  179. # Grouping the document tree into Texinfo files. List of tuples
  180. # (source start file, target name, title, author,
  181. # dir menu entry, description, category)
  182. texinfo_documents = [
  183. (master_doc, 'stormpy', 'stormpy Documentation',
  184. author, 'stormpy', 'Python bindings for Storm.',
  185. 'Miscellaneous'),
  186. ]
  187. # Example configuration for intersphinx: refer to the Python standard library.
  188. intersphinx_mapping = {'https://docs.python.org/': None}
  189. nbsphinx_prolog = """
  190. {% set docname = env.doc2path(env.docname, base=False) %}
  191. .. raw:: html
  192. <div class="admonition note">
  193. Interactive version:
  194. <span style="white-space: nowrap;"><a href="https://mybinder.org/v2/gh/moves-rwth/stormpy/master?filepath=notebooks/{{ docname }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>.</span>
  195. </div>
  196. <style>
  197. .nbinput .prompt,
  198. .nboutput .prompt {
  199. display: none;
  200. }
  201. </style>
  202. """