conf.py 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. # -- Path setup --------------------------------------------------------------
  9. # If extensions (or modules to document with autodoc) are in another directory,
  10. # add these directories to sys.path here. If the directory is relative to the
  11. # documentation root, use os.path.abspath to make it absolute, like shown here.
  12. #
  13. import os
  14. import sys
  15. import asteroid_sphinx_theme
  16. sys.path.insert(0, os.path.abspath('../../../macop'))
  17. # -- Project information -----------------------------------------------------
  18. project = 'Macop'
  19. copyright = '2020, Jérôme BUISINE'
  20. author = 'Jérôme BUISINE'
  21. # The short X.Y version
  22. version = '1.0.5'
  23. # The full version, including alpha/beta/rc tags
  24. release = 'v1.0.5'
  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.coverage',
  36. 'sphinx.ext.napoleon',
  37. 'sphinx.ext.autosummary',
  38. 'sphinx.ext.viewcode',
  39. 'sphinx.ext.coverage',
  40. #'autoapi.extension'
  41. ]
  42. # These folders are copied to the documentation's HTML output
  43. html_static_path = ['_static']
  44. # These paths are either relative to html_static_path
  45. # or fully qualified paths (eg. https://...)
  46. html_css_files = [
  47. 'css/custom.css',
  48. ]
  49. # autoapi_add_toctree_entry = True
  50. # autoapi_template_dir = '_autoapi_templates'
  51. # autoapi_dirs = ['../../rawls']
  52. autosummary_generate = True
  53. autodoc_default_flags = ['members']
  54. autodoc_member_order = 'groupwise'
  55. # Add any paths that contain templates here, relative to this directory.
  56. templates_path = ['_templates']
  57. # The suffix(es) of source filenames.
  58. # You can specify multiple suffix as a list of string:
  59. #
  60. # source_suffix = ['.rst', '.md']
  61. source_suffix = '.rst'
  62. # The master toctree document.
  63. master_doc = 'index'
  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 pattern also affects html_static_path and html_extra_path.
  73. exclude_patterns = []
  74. # The name of the Pygments (syntax highlighting) style to use.
  75. pygments_style = 'default'
  76. # -- Options for HTML output -------------------------------------------------
  77. # The theme to use for HTML and HTML Help pages. See the documentation for
  78. # a list of builtin themes.
  79. #
  80. #html_theme = 'sphinx_rtd_theme'
  81. #html_theme = 'divio_docs_theme'
  82. html_theme = 'asteroid_sphinx_theme' # use the theme in subdir 'theme'
  83. # html_theme_path = ['.'] # make sphinx search for themes in current dir
  84. # Theme options are theme-specific and customize the look and feel of a theme
  85. # further. For a list of options available for each theme, see the
  86. # documentation.
  87. #
  88. # html_theme_options = {}
  89. html_theme_options = {
  90. 'canonical_url': '',
  91. #'analytics_id': 'UA-XXXXXXX-1',
  92. 'logo_only': False,
  93. 'display_version': True,
  94. 'prev_next_buttons_location': 'bottom',
  95. 'style_external_links': False,
  96. #'vcs_pageview_mode': '',
  97. # Toc options
  98. 'collapse_navigation': True,
  99. 'sticky_navigation': True,
  100. 'navigation_depth': 4,
  101. 'includehidden': True,
  102. 'titles_only': False
  103. }
  104. html_context = {
  105. 'display_github': True,
  106. 'github_user': 'prise-3d',
  107. 'github_repo': 'macop',
  108. 'github_version': 'master/docs/source/'
  109. }
  110. # Add any paths that contain custom static files (such as style sheets) here,
  111. # relative to this directory. They are copied after the builtin static files,
  112. # so a file named "default.css" will overwrite the builtin "default.css".
  113. html_static_path = ['_static']
  114. # Custom sidebar templates, must be a dictionary that maps document names
  115. # to template names.
  116. #
  117. # The default sidebars (for documents that don't match any pattern) are
  118. # defined by theme itself. Builtin themes are using these templates by
  119. # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
  120. # 'searchbox.html']``.
  121. #
  122. # html_sidebars = {}
  123. # -- Options for HTMLHelp output ---------------------------------------------
  124. # Output file base name for HTML help builder.
  125. htmlhelp_basename = 'macopdoc'
  126. # -- Options for LaTeX output ------------------------------------------------
  127. latex_elements = {
  128. # The paper size ('letterpaper' or 'a4paper').
  129. #
  130. # 'papersize': 'letterpaper',
  131. # The font size ('10pt', '11pt' or '12pt').
  132. #
  133. # 'pointsize': '10pt',
  134. # Additional stuff for the LaTeX preamble.
  135. #
  136. # 'preamble': '',
  137. # Latex figure (float) alignment
  138. #
  139. # 'figure_align': 'htbp',
  140. }
  141. # Grouping the document tree into LaTeX files. List of tuples
  142. # (source start file, target name, title,
  143. # author, documentclass [howto, manual, or own class]).
  144. latex_documents = [
  145. (master_doc, 'macop.tex', 'macop Documentation',
  146. 'Jérôme BUISINE', 'manual'),
  147. ]
  148. # -- Options for manual page output ------------------------------------------
  149. # One entry per manual page. List of tuples
  150. # (source start file, name, description, authors, manual section).
  151. man_pages = [
  152. (master_doc, 'macop', 'macop Documentation',
  153. [author], 1)
  154. ]
  155. # -- Options for Texinfo output ----------------------------------------------
  156. # Grouping the document tree into Texinfo files. List of tuples
  157. # (source start file, target name, title, author,
  158. # dir menu entry, description, category)
  159. texinfo_documents = [
  160. (master_doc, 'macop', 'macop Documentation',
  161. author, 'macop', 'Minimalist And Customisable Optimisation Package',
  162. 'Miscellaneous'),
  163. ]
  164. # -- Options for Epub output -------------------------------------------------
  165. # Bibliographic Dublin Core info.
  166. epub_title = project
  167. # The unique identifier of the text. This can be a ISBN number
  168. # or the project homepage.
  169. #
  170. # epub_identifier = ''
  171. # A unique identification for the text.
  172. #
  173. # epub_uid = ''
  174. # A list of files that should not be packed into the epub file.
  175. epub_exclude_files = ['search.html']
  176. # -- Extension configuration -------------------------------------------------