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.

163 lines
4.8 KiB

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