conf.py 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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 = '2021, Jérôme BUISINE'
  20. author = 'Jérôme BUISINE'
  21. # The short X.Y version
  22. version = '1.0.9'
  23. # The full version, including alpha/beta/rc tags
  24. release = 'v1.0.9'
  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. #'sphinx.ext.pngmath',
  41. #'autoapi.extension'
  42. ]
  43. # These folders are copied to the documentation's HTML output
  44. html_static_path = ['_static']
  45. # These paths are either relative to html_static_path
  46. # or fully qualified paths (eg. https://...)
  47. html_css_files = [
  48. 'css/custom.css',
  49. ]
  50. html_js_files = [
  51. 'js/custom.js',
  52. ]
  53. # autoapi_add_toctree_entry = True
  54. # autoapi_template_dir = '_autoapi_templates'
  55. # autoapi_dirs = ['../../rawls']
  56. autosummary_generate = True
  57. autodoc_default_flags = ['members']
  58. autodoc_member_order = 'groupwise'
  59. # Add any paths that contain templates here, relative to this directory.
  60. templates_path = ['_templates']
  61. # The suffix(es) of source filenames.
  62. # You can specify multiple suffix as a list of string:
  63. #
  64. # source_suffix = ['.rst', '.md']
  65. source_suffix = '.rst'
  66. # The master toctree document.
  67. master_doc = 'index'
  68. # The language for content autogenerated by Sphinx. Refer to documentation
  69. # for a list of supported languages.
  70. #
  71. # This is also used if you do content translation via gettext catalogs.
  72. # Usually you set "language" from the command line for these cases.
  73. language = None
  74. # List of patterns, relative to source directory, that match files and
  75. # directories to ignore when looking for source files.
  76. # This pattern also affects html_static_path and html_extra_path.
  77. exclude_patterns = []
  78. # The name of the Pygments (syntax highlighting) style to use.
  79. pygments_style = 'default'
  80. # -- Options for HTML output -------------------------------------------------
  81. # The theme to use for HTML and HTML Help pages. See the documentation for
  82. # a list of builtin themes.
  83. #
  84. #html_theme = 'sphinx_rtd_theme'
  85. #html_theme = 'divio_docs_theme'
  86. html_theme = 'asteroid_sphinx_theme' # use the theme in subdir 'theme'
  87. # html_theme_path = ['.'] # make sphinx search for themes in current dir
  88. # Theme options are theme-specific and customize the look and feel of a theme
  89. # further. For a list of options available for each theme, see the
  90. # documentation.
  91. #
  92. # html_theme_options = {}
  93. html_theme_options = {
  94. 'canonical_url': '',
  95. #'analytics_id': 'UA-XXXXXXX-1',
  96. 'logo_only': False,
  97. 'display_version': True,
  98. 'prev_next_buttons_location': 'bottom',
  99. 'style_external_links': False,
  100. #'vcs_pageview_mode': '',
  101. # Toc options
  102. 'collapse_navigation': True,
  103. 'sticky_navigation': True,
  104. 'navigation_depth': 4,
  105. 'includehidden': True,
  106. 'titles_only': False
  107. }
  108. html_context = {
  109. 'display_github': True,
  110. 'github_user': 'prise-3d',
  111. 'github_repo': 'macop',
  112. 'github_version': 'master/docs/source/'
  113. }
  114. # Add any paths that contain custom static files (such as style sheets) here,
  115. # relative to this directory. They are copied after the builtin static files,
  116. # so a file named "default.css" will overwrite the builtin "default.css".
  117. html_static_path = ['_static']
  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 = {}
  127. # -- Options for HTMLHelp output ---------------------------------------------
  128. # Output file base name for HTML help builder.
  129. htmlhelp_basename = 'macopdoc'
  130. # -- Options for LaTeX output ------------------------------------------------
  131. latex_elements = {
  132. # The paper size ('letterpaper' or 'a4paper').
  133. #
  134. # 'papersize': 'letterpaper',
  135. # The font size ('10pt', '11pt' or '12pt').
  136. #
  137. # 'pointsize': '10pt',
  138. # Additional stuff for the LaTeX preamble.
  139. #
  140. # 'preamble': '',
  141. # Latex figure (float) alignment
  142. #
  143. # 'figure_align': 'htbp',
  144. }
  145. # Grouping the document tree into LaTeX files. List of tuples
  146. # (source start file, target name, title,
  147. # author, documentclass [howto, manual, or own class]).
  148. latex_documents = [
  149. (master_doc, 'macop.tex', 'macop Documentation',
  150. 'Jérôme BUISINE', 'manual'),
  151. ]
  152. # -- Options for manual page output ------------------------------------------
  153. # One entry per manual page. List of tuples
  154. # (source start file, name, description, authors, manual section).
  155. man_pages = [
  156. (master_doc, 'macop', 'macop Documentation',
  157. [author], 1)
  158. ]
  159. # -- Options for Texinfo output ----------------------------------------------
  160. # Grouping the document tree into Texinfo files. List of tuples
  161. # (source start file, target name, title, author,
  162. # dir menu entry, description, category)
  163. texinfo_documents = [
  164. (master_doc, 'macop', 'macop Documentation',
  165. author, 'macop', 'Minimalist And Customisable Optimisation Package',
  166. 'Miscellaneous'),
  167. ]
  168. # -- Options for Epub output -------------------------------------------------
  169. # Bibliographic Dublin Core info.
  170. epub_title = project
  171. # The unique identifier of the text. This can be a ISBN number
  172. # or the project homepage.
  173. #
  174. # epub_identifier = ''
  175. # A unique identification for the text.
  176. #
  177. # epub_uid = ''
  178. # A list of files that should not be packed into the epub file.
  179. epub_exclude_files = ['search.html']
  180. # -- Extension configuration -------------------------------------------------