conf.py 6.9 KB

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