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.

266 lines
8.3 KiB

11 years ago
11 years ago
  1. # -*- coding: utf-8 -*-
  2. #
  3. # weed-fs documentation build configuration file, created by
  4. # sphinx-quickstart on Wed Jul 23 12:13:18 2014.
  5. #
  6. # This file is execfile()d with the current directory set to its
  7. # containing dir.
  8. #
  9. # Note that not all possible configuration values are present in this
  10. # autogenerated file.
  11. #
  12. # All configuration values have a default; values that are commented out
  13. # serve to show the default.
  14. import sys
  15. import os
  16. # If extensions (or modules to document with autodoc) are in another directory,
  17. # add these directories to sys.path here. If the directory is relative to the
  18. # documentation root, use os.path.abspath to make it absolute, like shown here.
  19. #sys.path.insert(0, os.path.abspath('.'))
  20. # -- General configuration ------------------------------------------------
  21. # If your documentation needs a minimal Sphinx version, state it here.
  22. #needs_sphinx = '1.0'
  23. # Add any Sphinx extension module names here, as strings. They can be
  24. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  25. # ones.
  26. extensions = []
  27. # Add any paths that contain templates here, relative to this directory.
  28. templates_path = ['_templates']
  29. # The suffix of source filenames.
  30. source_suffix = '.rst'
  31. # The encoding of source files.
  32. #source_encoding = 'utf-8-sig'
  33. # The master toctree document.
  34. master_doc = 'index'
  35. # General information about the project.
  36. project = u'seaweed-fs'
  37. copyright = u'2015, chrislusf, ernado'
  38. # The version info for the project you're documenting, acts as replacement for
  39. # |version| and |release|, also used in various other places throughout the
  40. # built documents.
  41. #
  42. # The short X.Y version.
  43. version = '0.67'
  44. # The full version, including alpha/beta/rc tags.
  45. release = '0.67'
  46. # The language for content autogenerated by Sphinx. Refer to documentation
  47. # for a list of supported languages.
  48. #language = None
  49. # There are two options for replacing |today|: either, you set today to some
  50. # non-false value, then it is used:
  51. #today = ''
  52. # Else, today_fmt is used as the format for a strftime call.
  53. #today_fmt = '%B %d, %Y'
  54. # List of patterns, relative to source directory, that match files and
  55. # directories to ignore when looking for source files.
  56. exclude_patterns = ['_build']
  57. # The reST default role (used for this markup: `text`) to use for all
  58. # documents.
  59. #default_role = None
  60. # If true, '()' will be appended to :func: etc. cross-reference text.
  61. #add_function_parentheses = True
  62. # If true, the current module name will be prepended to all description
  63. # unit titles (such as .. function::).
  64. #add_module_names = True
  65. # If true, sectionauthor and moduleauthor directives will be shown in the
  66. # output. They are ignored by default.
  67. #show_authors = False
  68. # The name of the Pygments (syntax highlighting) style to use.
  69. pygments_style = 'sphinx'
  70. # A list of ignored prefixes for module index sorting.
  71. #modindex_common_prefix = []
  72. # If true, keep warnings as "system message" paragraphs in the built documents.
  73. #keep_warnings = False
  74. # -- Options for HTML output ----------------------------------------------
  75. # The theme to use for HTML and HTML Help pages. See the documentation for
  76. # a list of builtin themes.
  77. html_theme = 'default'
  78. # Theme options are theme-specific and customize the look and feel of a theme
  79. # further. For a list of options available for each theme, see the
  80. # documentation.
  81. #html_theme_options = {}
  82. # Add any paths that contain custom themes here, relative to this directory.
  83. #html_theme_path = []
  84. # The name for this set of Sphinx documents. If None, it defaults to
  85. # "<project> v<release> documentation".
  86. #html_title = None
  87. # A shorter title for the navigation bar. Default is the same as html_title.
  88. #html_short_title = None
  89. # The name of an image file (relative to this directory) to place at the top
  90. # of the sidebar.
  91. #html_logo = None
  92. # The name of an image file (within the static path) to use as favicon of the
  93. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  94. # pixels large.
  95. #html_favicon = None
  96. # Add any paths that contain custom static files (such as style sheets) here,
  97. # relative to this directory. They are copied after the builtin static files,
  98. # so a file named "default.css" will overwrite the builtin "default.css".
  99. html_static_path = ['_static']
  100. # Add any extra paths that contain custom files (such as robots.txt or
  101. # .htaccess) here, relative to this directory. These files are copied
  102. # directly to the root of the documentation.
  103. #html_extra_path = []
  104. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  105. # using the given strftime format.
  106. #html_last_updated_fmt = '%b %d, %Y'
  107. # If true, SmartyPants will be used to convert quotes and dashes to
  108. # typographically correct entities.
  109. #html_use_smartypants = True
  110. # Custom sidebar templates, maps document names to template names.
  111. #html_sidebars = {}
  112. # Additional templates that should be rendered to pages, maps page names to
  113. # template names.
  114. #html_additional_pages = {}
  115. # If false, no module index is generated.
  116. #html_domain_indices = True
  117. # If false, no index is generated.
  118. #html_use_index = True
  119. # If true, the index is split into individual pages for each letter.
  120. #html_split_index = False
  121. # If true, links to the reST sources are added to the pages.
  122. #html_show_sourcelink = True
  123. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  124. #html_show_sphinx = True
  125. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  126. #html_show_copyright = True
  127. # If true, an OpenSearch description file will be output, and all pages will
  128. # contain a <link> tag referring to it. The value of this option must be the
  129. # base URL from which the finished HTML is served.
  130. #html_use_opensearch = ''
  131. # This is the file name suffix for HTML files (e.g. ".xhtml").
  132. #html_file_suffix = None
  133. # Output file base name for HTML help builder.
  134. htmlhelp_basename = 'weed-fsdoc'
  135. # -- Options for LaTeX output ---------------------------------------------
  136. latex_elements = {
  137. # The paper size ('letterpaper' or 'a4paper').
  138. #'papersize': 'letterpaper',
  139. # The font size ('10pt', '11pt' or '12pt').
  140. #'pointsize': '10pt',
  141. # Additional stuff for the LaTeX preamble.
  142. #'preamble': '',
  143. }
  144. # Grouping the document tree into LaTeX files. List of tuples
  145. # (source start file, target name, title,
  146. # author, documentclass [howto, manual, or own class]).
  147. latex_documents = [
  148. ('index', 'weed-fs.tex', u'weed-fs Documentation',
  149. u'chrislusf, ernado', 'manual'),
  150. ]
  151. # The name of an image file (relative to this directory) to place at the top of
  152. # the title page.
  153. #latex_logo = None
  154. # For "manual" documents, if this is true, then toplevel headings are parts,
  155. # not chapters.
  156. #latex_use_parts = False
  157. # If true, show page references after internal links.
  158. #latex_show_pagerefs = False
  159. # If true, show URL addresses after external links.
  160. #latex_show_urls = False
  161. # Documents to append as an appendix to all manuals.
  162. #latex_appendices = []
  163. # If false, no module index is generated.
  164. #latex_domain_indices = True
  165. # -- Options for manual page output ---------------------------------------
  166. # One entry per manual page. List of tuples
  167. # (source start file, name, description, authors, manual section).
  168. man_pages = [
  169. ('index', 'weed-fs', u'weed-fs Documentation',
  170. [u'chrislusf, ernado'], 1)
  171. ]
  172. # If true, show URL addresses after external links.
  173. #man_show_urls = False
  174. # -- Options for Texinfo output -------------------------------------------
  175. # Grouping the document tree into Texinfo files. List of tuples
  176. # (source start file, target name, title, author,
  177. # dir menu entry, description, category)
  178. texinfo_documents = [
  179. ('index', 'seaweed-fs', u'seaweed-fs Documentation',
  180. u'chrislusf, ernado', 'seaweed-fs', 'One line description of project.',
  181. 'Miscellaneous'),
  182. ]
  183. # Documents to append as an appendix to all manuals.
  184. #texinfo_appendices = []
  185. # If false, no module index is generated.
  186. #texinfo_domain_indices = True
  187. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  188. #texinfo_show_urls = 'footnote'
  189. # If true, do not generate a @detailmenu in the "Top" node's menu.
  190. #texinfo_no_detailmenu = False
  191. # on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
  192. on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  193. if not on_rtd: # only import and set the theme if we're building docs locally
  194. import sphinx_rtd_theme
  195. html_theme = 'sphinx_rtd_theme'
  196. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]