conf.py 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. ################################################################################
  2. # Copyright (c) 2021 ContinualAI. #
  3. # Copyrights licensed under the MIT License. #
  4. # See the accompanying LICENSE file for terms. #
  5. # #
  6. # Date: 1-05-2020 #
  7. # Author(s): Vincenzo Lomonaco #
  8. # E-mail: contact@continualai.org #
  9. # Website: avalanche.continualai.org #
  10. ################################################################################
  11. # Configuration file for the Sphinx documentation builder.
  12. #
  13. # This file does only contain a selection of the most common options. For a
  14. # full list see the documentation:
  15. # http://www.sphinx-doc.org/en/master/config
  16. # -- Path setup --------------------------------------------------------------
  17. # If extensions (or modules to document with autodoc) are in another directory,
  18. # add these directories to sys.path here. If the directory is relative to the
  19. # documentation root, use os.path.abspath to make it absolute, like shown here.
  20. #
  21. import os
  22. import sys
  23. sys.path.insert(0, os.path.abspath('..'))
  24. # -- Project information -----------------------------------------------------
  25. project = u'Avalanche'
  26. copyright = u'2021, ContinualAI'
  27. author = u'ContinualAI'
  28. # The short X.Y version
  29. version = u''
  30. # The full version, including alpha/beta/rc tags
  31. release = u'0.1'
  32. # -- General configuration ---------------------------------------------------
  33. # If your documentation needs a minimal Sphinx version, state it here.
  34. #
  35. # needs_sphinx = '1.0'
  36. # Add any Sphinx extension module names here, as strings. They can be
  37. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  38. # ones.
  39. extensions = [
  40. # 'sphinx.ext.autodoc',
  41. 'autoapi.extension',
  42. 'sphinx.ext.doctest',
  43. 'sphinx.ext.todo',
  44. 'sphinx.ext.mathjax',
  45. 'sphinx.ext.viewcode',
  46. 'sphinx.ext.githubpages',
  47. 'sphinx_rtd_theme',
  48. ]
  49. # Add any paths that contain templates here, relative to this directory.
  50. templates_path = ['_templates']
  51. # The suffix(es) of source filenames.
  52. # You can specify multiple suffix as a list of string:
  53. #
  54. # source_suffix = ['.rst', '.md']
  55. source_suffix = '.rst'
  56. # The master toctree document.
  57. master_doc = 'index'
  58. # The language for content autogenerated by Sphinx. Refer to documentation
  59. # for a list of supported languages.
  60. #
  61. # This is also used if you do content translation via gettext catalogs.
  62. # Usually you set "language" from the command line for these cases.
  63. language = None
  64. # List of patterns, relative to source directory, that match files and
  65. # directories to ignore when looking for source files.
  66. # This pattern also affects html_static_path and html_extra_path.
  67. exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store']
  68. # The name of the Pygments (syntax highlighting) style to use.
  69. pygments_style = None
  70. # include __init__ in the class documentation
  71. autoclass_content = "class"
  72. # autoapi options
  73. autoapi_dirs = ['../avalanche']
  74. autoapi_options = [
  75. 'members',
  76. 'undoc-members',
  77. # 'private-members',
  78. 'show-inheritance',
  79. # 'show-inheritance-diagram',
  80. 'show-module-summary',
  81. 'special-members',
  82. 'imported-members'
  83. ]
  84. autoapi_python_class_content = 'both'
  85. # -- Options for HTML output -------------------------------------------------
  86. # The theme to use for HTML and HTML Help pages. See the documentation for
  87. # a list of builtin themes.
  88. #
  89. html_theme = 'sphinx_rtd_theme'
  90. html_logo = './_static/img/avalanche_logo.png'
  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. 'collapse_navigation': False,
  97. 'logo_only': True
  98. }
  99. # Add any paths that contain custom static files (such as style sheets) here,
  100. # relative to this directory. They are copied after the builtin static files,
  101. # so a file named "default.css" will overwrite the builtin "default.css".
  102. html_static_path = ['_static']
  103. # custom css
  104. html_style = 'css/mystyle.css'
  105. # Custom sidebar templates, must be a dictionary that maps document names
  106. # to template names.
  107. #
  108. # The default sidebars (for documents that don't match any pattern) are
  109. # defined by theme itself. Builtin themes are using these templates by
  110. # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
  111. # 'searchbox.html']``.
  112. #
  113. # html_sidebars = {}
  114. # -- Options for HTMLHelp output ---------------------------------------------
  115. # Output file base name for HTML help builder.
  116. htmlhelp_basename = 'Avalanchedoc'
  117. # -- Options for LaTeX output ------------------------------------------------
  118. latex_elements = {
  119. # The paper size ('letterpaper' or 'a4paper').
  120. #
  121. # 'papersize': 'letterpaper',
  122. # The font size ('10pt', '11pt' or '12pt').
  123. #
  124. # 'pointsize': '10pt',
  125. # Additional stuff for the LaTeX preamble.
  126. #
  127. # 'preamble': '',
  128. # Latex figure (float) alignment
  129. #
  130. # 'figure_align': 'htbp',
  131. }
  132. # Grouping the document tree into LaTeX files. List of tuples
  133. # (source start file, target name, title,
  134. # author, documentclass [howto, manual, or own class]).
  135. latex_documents = [
  136. (master_doc, 'Avalanche.tex', u'Avalanche Documentation',
  137. u'ContinualAI Research', 'manual'),
  138. ]
  139. # -- Options for manual page output ------------------------------------------
  140. # One entry per manual page. List of tuples
  141. # (source start file, name, description, authors, manual section).
  142. man_pages = [
  143. (master_doc, 'avalanche', u'Avalanche Documentation',
  144. [author], 1)
  145. ]
  146. # -- Options for Texinfo output ----------------------------------------------
  147. # Grouping the document tree into Texinfo files. List of tuples
  148. # (source start file, target name, title, author,
  149. # dir menu entry, description, category)
  150. texinfo_documents = [
  151. (master_doc, 'Avalanche', u'Avalanche Documentation',
  152. author, 'Avalanche', 'One line description of project.',
  153. 'Miscellaneous'),
  154. ]
  155. # -- Options for Epub output -------------------------------------------------
  156. # Bibliographic Dublin Core info.
  157. epub_title = project
  158. # The unique identifier of the text. This can be a ISBN number
  159. # or the project homepage.
  160. #
  161. # epub_identifier = ''
  162. # A unique identification for the text.
  163. #
  164. # epub_uid = ''
  165. # A list of files that should not be packed into the epub file.
  166. epub_exclude_files = ['search.html']
  167. # -- Extension configuration -------------------------------------------------
  168. # -- Options for todo extension ----------------------------------------------
  169. # If true, `todo` and `todoList` produce output, else they produce nothing.
  170. todo_include_todos = True