You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
4.6 KiB

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. from recommonmark.parser import CommonMarkParser
  4. # -- General configuration ------------------------------------------------
  5. # If your documentation needs a minimal Sphinx version, state it here.
  6. #
  7. # needs_sphinx = '1.0'
  8. # Add any Sphinx extension module names here, as strings. They can be
  9. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  10. # ones.
  11. extensions = ['sphinx.ext.autodoc',
  12. 'sphinx.ext.todo',
  13. 'sphinx.ext.viewcode',
  14. 'sphinx.ext.napoleon']
  15. # Add any paths that contain templates here, relative to this directory.
  16. templates_path = []
  17. # The suffix(es) of source filenames.
  18. # You can specify multiple suffix as a list of string:
  19. #
  20. # source_suffix = ['.rst', '.md']
  21. source_parsers = {
  22. '.md': CommonMarkParser,
  23. }
  24. source_suffix = ['.rst', '.md']
  25. # The master toctree document.
  26. master_doc = 'index'
  27. # General information about the project.
  28. project = 'nd2reader'
  29. copyright = '2017, Ruben Verweij'
  30. author = 'Ruben Verweij'
  31. # The version info for the project you're documenting, acts as replacement for
  32. # |version| and |release|, also used in various other places throughout the
  33. # built documents.
  34. #
  35. # The short X.Y version.
  36. version = '3.0.2'
  37. # The full version, including alpha/beta/rc tags.
  38. release = '3.0.2'
  39. # The language for content autogenerated by Sphinx. Refer to documentation
  40. # for a list of supported languages.
  41. #
  42. # This is also used if you do content translation via gettext catalogs.
  43. # Usually you set "language" from the command line for these cases.
  44. language = 'en'
  45. # List of patterns, relative to source directory, that match files and
  46. # directories to ignore when looking for source files.
  47. # This patterns also effect to html_static_path and html_extra_path
  48. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  49. # The name of the Pygments (syntax highlighting) style to use.
  50. pygments_style = 'sphinx'
  51. # If true, `todo` and `todoList` produce output, else they produce nothing.
  52. todo_include_todos = True
  53. # -- Options for HTML output ----------------------------------------------
  54. # The theme to use for HTML and HTML Help pages. See the documentation for
  55. # a list of builtin themes.
  56. #
  57. html_theme = 'classic'
  58. # Theme options are theme-specific and customize the look and feel of a theme
  59. # further. For a list of options available for each theme, see the
  60. # documentation.
  61. #
  62. # html_theme_options = {}
  63. # Add any paths that contain custom static files (such as style sheets) here,
  64. # relative to this directory. They are copied after the builtin static files,
  65. # so a file named "default.css" will overwrite the builtin "default.css".
  66. html_static_path = []
  67. # -- Options for HTMLHelp output ------------------------------------------
  68. # Output file base name for HTML help builder.
  69. htmlhelp_basename = 'nd2readerdoc'
  70. # -- Options for LaTeX output ---------------------------------------------
  71. latex_elements = {
  72. # The paper size ('letterpaper' or 'a4paper').
  73. #
  74. # 'papersize': 'letterpaper',
  75. # The font size ('10pt', '11pt' or '12pt').
  76. #
  77. # 'pointsize': '10pt',
  78. # Additional stuff for the LaTeX preamble.
  79. #
  80. # 'preamble': '',
  81. # Latex figure (float) alignment
  82. #
  83. # 'figure_align': 'htbp',
  84. }
  85. # Grouping the document tree into LaTeX files. List of tuples
  86. # (source start file, target name, title,
  87. # author, documentclass [howto, manual, or own class]).
  88. latex_documents = [
  89. (master_doc, 'nd2reader.tex', 'nd2reader Documentation',
  90. 'Ruben Verweij', 'manual'),
  91. ]
  92. # -- Options for manual page output ---------------------------------------
  93. # One entry per manual page. List of tuples
  94. # (source start file, name, description, authors, manual section).
  95. man_pages = [
  96. (master_doc, 'nd2reader', 'nd2reader Documentation',
  97. [author], 1)
  98. ]
  99. # -- Options for Texinfo output -------------------------------------------
  100. # Grouping the document tree into Texinfo files. List of tuples
  101. # (source start file, target name, title, author,
  102. # dir menu entry, description, category)
  103. texinfo_documents = [
  104. (master_doc, 'nd2reader', 'nd2reader Documentation',
  105. author, 'nd2reader', 'One line description of project.',
  106. 'Miscellaneous'),
  107. ]
  108. # -- Options for Epub output ----------------------------------------------
  109. # Bibliographic Dublin Core info.
  110. epub_title = project
  111. epub_author = author
  112. epub_publisher = author
  113. epub_copyright = copyright
  114. # The unique identifier of the text. This can be a ISBN number
  115. # or the project homepage.
  116. #
  117. # epub_identifier = ''
  118. # A unique identification for the text.
  119. #
  120. # epub_uid = ''
  121. # A list of files that should not be packed into the epub file.
  122. epub_exclude_files = ['search.html']