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.

164 lines
4.8 KiB

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