conf.py 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # Copyright 2017 Digital
  4. #
  5. # This file is a modified version of the conf.py generated
  6. # by sphinx-quickstart.
  7. #
  8. # This file is part of DigiLib.
  9. #
  10. # DigiLib is free software: you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation, either version 3 of the License, or
  13. # (at your option) any later version.
  14. #
  15. # DigiLib is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. # GNU General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU General Public License
  21. # along with DigiLib. If not, see <http://www.gnu.org/licenses/>.
  22. #
  23. #
  24. # This file is execfile()d with the current directory set to its
  25. # containing dir.
  26. #
  27. # Note that not all possible configuration values are present in this
  28. # autogenerated file.
  29. #
  30. # All configuration values have a default; values that are commented out
  31. # serve to show the default.
  32. # If extensions (or modules to document with autodoc) are in another directory,
  33. # add these directories to sys.path here. If the directory is relative to the
  34. # documentation root, use os.path.abspath to make it absolute, like shown here.
  35. #
  36. # import os
  37. # import sys
  38. # sys.path.insert(0, os.path.abspath('.'))
  39. import sphinx_rtd_theme
  40. # -- General configuration ------------------------------------------------
  41. # If your documentation needs a minimal Sphinx version, state it here.
  42. #
  43. # needs_sphinx = '1.0'
  44. # Add any Sphinx extension module names here, as strings. They can be
  45. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  46. # ones.
  47. extensions = [
  48. 'sphinx.ext.autodoc',
  49. 'sphinx.ext.intersphinx',
  50. 'sphinx.ext.todo',
  51. 'sphinx.ext.napoleon',
  52. ]
  53. # Add any paths that contain templates here, relative to this directory.
  54. templates_path = ['templates']
  55. # The suffix(es) of source filenames.
  56. # You can specify multiple suffix as a list of string:
  57. #
  58. # source_suffix = ['.rst', '.md']
  59. source_suffix = '.rst'
  60. # The master toctree document.
  61. master_doc = 'index'
  62. # General information about the project.
  63. project = 'DigiLib'
  64. copyright = '2017, Digital'
  65. author = 'Digital'
  66. # The version info for the project you're documenting, acts as replacement for
  67. # |version| and |release|, also used in various other places throughout the
  68. # built documents.
  69. #
  70. # The short X.Y version.
  71. version = 'v0.1'
  72. # The full version, including alpha/beta/rc tags.
  73. release = 'v0.1 experimental alpha'
  74. # The language for content autogenerated by Sphinx. Refer to documentation
  75. # for a list of supported languages.
  76. #
  77. # This is also used if you do content translation via gettext catalogs.
  78. # Usually you set "language" from the command line for these cases.
  79. language = None
  80. # List of patterns, relative to source directory, that match files and
  81. # directories to ignore when looking for source files.
  82. # This patterns also effect to html_static_path and html_extra_path
  83. exclude_patterns = []
  84. # The name of the Pygments (syntax highlighting) style to use.
  85. pygments_style = 'sphinx'
  86. # If true, `todo` and `todoList` produce output, else they produce nothing.
  87. todo_include_todos = True
  88. # -- Options for HTML output ----------------------------------------------
  89. # The theme to use for HTML and HTML Help pages. See the documentation for
  90. # a list of builtin themes.
  91. #
  92. html_theme = 'sphinx_rtd_theme'
  93. # Theme options are theme-specific and customize the look and feel of a theme
  94. # further. For a list of options available for each theme, see the
  95. # documentation.
  96. #
  97. # html_theme_options = {}
  98. # Add any paths that contain custom static files (such as style sheets) here,
  99. # relative to this directory. They are copied after the builtin static files,
  100. # so a file named "default.css" will overwrite the builtin "default.css".
  101. html_static_path = ['static']
  102. # -- Options for HTMLHelp output ------------------------------------------
  103. # Output file base name for HTML help builder.
  104. htmlhelp_basename = 'DigiLibdoc'
  105. # -- Options for LaTeX output ---------------------------------------------
  106. latex_elements = {
  107. # The paper size ('letterpaper' or 'a4paper').
  108. #
  109. # 'papersize': 'letterpaper',
  110. # The font size ('10pt', '11pt' or '12pt').
  111. #
  112. # 'pointsize': '10pt',
  113. # Additional stuff for the LaTeX preamble.
  114. #
  115. # 'preamble': '',
  116. # Latex figure (float) alignment
  117. #
  118. # 'figure_align': 'htbp',
  119. }
  120. # Grouping the document tree into LaTeX files. List of tuples
  121. # (source start file, target name, title,
  122. # author, documentclass [howto, manual, or own class]).
  123. latex_documents = [
  124. (master_doc, 'DigiLib.tex', 'DigiLib Documentation',
  125. 'Digital', 'manual'),
  126. ]
  127. # -- Options for manual page output ---------------------------------------
  128. # One entry per manual page. List of tuples
  129. # (source start file, name, description, authors, manual section).
  130. man_pages = [
  131. (master_doc, 'digilib', 'DigiLib Documentation',
  132. [author], 1)
  133. ]
  134. # -- Options for Texinfo output -------------------------------------------
  135. # Grouping the document tree into Texinfo files. List of tuples
  136. # (source start file, target name, title, author,
  137. # dir menu entry, description, category)
  138. texinfo_documents = [
  139. (master_doc, 'DigiLib', 'DigiLib Documentation',
  140. author, 'DigiLib', 'One line description of project.',
  141. 'Miscellaneous'),
  142. ]
  143. # Example configuration for intersphinx: refer to the Python standard library.
  144. intersphinx_mapping = {'https://docs.python.org/': None}