conf.py 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # fglib documentation build configuration file, created by
  5. # sphinx-quickstart on Sat Jan 31 21:45:49 2015.
  6. #
  7. # This file is execfile()d with the current directory set to its
  8. # containing dir.
  9. #
  10. # Note that not all possible configuration values are present in this
  11. # autogenerated file.
  12. #
  13. # All configuration values have a default; values that are commented out
  14. # serve to show the default.
  15. import sys
  16. import os
  17. import pkg_resources
  18. # If extensions (or modules to document with autodoc) are in another directory,
  19. # add these directories to sys.path here. If the directory is relative to the
  20. # documentation root, use os.path.abspath to make it absolute, like shown here.
  21. #sys.path.insert(0, os.path.abspath('.'))
  22. # -- General configuration ------------------------------------------------
  23. # If your documentation needs a minimal Sphinx version, state it here.
  24. #needs_sphinx = '1.0'
  25. # Add any Sphinx extension module names here, as strings. They can be
  26. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  27. # ones.
  28. extensions = [
  29. 'sphinx.ext.autodoc',
  30. 'sphinx.ext.viewcode',
  31. ]
  32. # Add any paths that contain templates here, relative to this directory.
  33. templates_path = ['_templates']
  34. # The suffix of source filenames.
  35. source_suffix = '.rst'
  36. # The encoding of source files.
  37. #source_encoding = 'utf-8-sig'
  38. # The master toctree document.
  39. master_doc = 'index'
  40. # General information about the project.
  41. project = 'fglib'
  42. copyright = '2015, Daniel Bartel'
  43. # The version info for the project you're documenting, acts as replacement for
  44. # |version| and |release|, also used in various other places throughout the
  45. # built documents.
  46. #
  47. # The short X.Y version.
  48. try:
  49. release = pkg_resources.get_distribution('fglib').version
  50. except pkg_resources.DistributionNotFound:
  51. print 'To build the documentation, the distribution information of fglib'
  52. print 'has to be available. Either install the package into your'
  53. print 'development environment or run "setup.py develop" to setup the'
  54. print 'metadata.'
  55. sys.exit(1)
  56. del pkg_resources
  57. version = '.'.join(release.split('.')[:2])
  58. # The full version, including alpha/beta/rc tags.
  59. release = release
  60. # The language for content autogenerated by Sphinx. Refer to documentation
  61. # for a list of supported languages.
  62. #language = None
  63. # There are two options for replacing |today|: either, you set today to some
  64. # non-false value, then it is used:
  65. #today = ''
  66. # Else, today_fmt is used as the format for a strftime call.
  67. #today_fmt = '%B %d, %Y'
  68. # List of patterns, relative to source directory, that match files and
  69. # directories to ignore when looking for source files.
  70. exclude_patterns = ['_build']
  71. # The reST default role (used for this markup: `text`) to use for all
  72. # documents.
  73. #default_role = None
  74. # If true, '()' will be appended to :func: etc. cross-reference text.
  75. #add_function_parentheses = True
  76. # If true, the current module name will be prepended to all description
  77. # unit titles (such as .. function::).
  78. #add_module_names = True
  79. # If true, sectionauthor and moduleauthor directives will be shown in the
  80. # output. They are ignored by default.
  81. #show_authors = False
  82. # The name of the Pygments (syntax highlighting) style to use.
  83. pygments_style = 'sphinx'
  84. # A list of ignored prefixes for module index sorting.
  85. #modindex_common_prefix = []
  86. # If true, keep warnings as "system message" paragraphs in the built documents.
  87. #keep_warnings = False
  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. html_theme = 'sphinxdoc'
  92. # Theme options are theme-specific and customize the look and feel of a theme
  93. # further. For a list of options available for each theme, see the
  94. # documentation.
  95. #html_theme_options = {}
  96. # Add any paths that contain custom themes here, relative to this directory.
  97. #html_theme_path = []
  98. # The name for this set of Sphinx documents. If None, it defaults to
  99. # "<project> v<release> documentation".
  100. #html_title = None
  101. # A shorter title for the navigation bar. Default is the same as html_title.
  102. #html_short_title = None
  103. # The name of an image file (relative to this directory) to place at the top
  104. # of the sidebar.
  105. html_logo = 'logo.svg'
  106. # The name of an image file (within the static path) to use as favicon of the
  107. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  108. # pixels large.
  109. #html_favicon = None
  110. # Add any paths that contain custom static files (such as style sheets) here,
  111. # relative to this directory. They are copied after the builtin static files,
  112. # so a file named "default.css" will overwrite the builtin "default.css".
  113. html_static_path = ['_static']
  114. # Add any extra paths that contain custom files (such as robots.txt or
  115. # .htaccess) here, relative to this directory. These files are copied
  116. # directly to the root of the documentation.
  117. #html_extra_path = []
  118. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  119. # using the given strftime format.
  120. #html_last_updated_fmt = '%b %d, %Y'
  121. # If true, SmartyPants will be used to convert quotes and dashes to
  122. # typographically correct entities.
  123. #html_use_smartypants = True
  124. # Custom sidebar templates, maps document names to template names.
  125. #html_sidebars = {}
  126. # Additional templates that should be rendered to pages, maps page names to
  127. # template names.
  128. #html_additional_pages = {}
  129. # If false, no module index is generated.
  130. #html_domain_indices = True
  131. # If false, no index is generated.
  132. #html_use_index = True
  133. # If true, the index is split into individual pages for each letter.
  134. #html_split_index = False
  135. # If true, links to the reST sources are added to the pages.
  136. #html_show_sourcelink = True
  137. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  138. #html_show_sphinx = True
  139. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  140. #html_show_copyright = True
  141. # If true, an OpenSearch description file will be output, and all pages will
  142. # contain a <link> tag referring to it. The value of this option must be the
  143. # base URL from which the finished HTML is served.
  144. #html_use_opensearch = ''
  145. # This is the file name suffix for HTML files (e.g. ".xhtml").
  146. #html_file_suffix = None
  147. # Output file base name for HTML help builder.
  148. htmlhelp_basename = 'fglibdoc'
  149. # -- Options for LaTeX output ---------------------------------------------
  150. latex_elements = {
  151. # The paper size ('letterpaper' or 'a4paper').
  152. #'papersize': 'letterpaper',
  153. # The font size ('10pt', '11pt' or '12pt').
  154. #'pointsize': '10pt',
  155. # Additional stuff for the LaTeX preamble.
  156. #'preamble': '',
  157. }
  158. # Grouping the document tree into LaTeX files. List of tuples
  159. # (source start file, target name, title,
  160. # author, documentclass [howto, manual, or own class]).
  161. latex_documents = [
  162. ('index', 'fglib.tex', 'fglib Documentation',
  163. 'Author', 'manual'),
  164. ]
  165. # The name of an image file (relative to this directory) to place at the top of
  166. # the title page.
  167. #latex_logo = None
  168. # For "manual" documents, if this is true, then toplevel headings are parts,
  169. # not chapters.
  170. #latex_use_parts = False
  171. # If true, show page references after internal links.
  172. #latex_show_pagerefs = False
  173. # If true, show URL addresses after external links.
  174. #latex_show_urls = False
  175. # Documents to append as an appendix to all manuals.
  176. #latex_appendices = []
  177. # If false, no module index is generated.
  178. #latex_domain_indices = True
  179. # -- Options for manual page output ---------------------------------------
  180. # One entry per manual page. List of tuples
  181. # (source start file, name, description, authors, manual section).
  182. man_pages = [
  183. ('index', 'fglib', 'fglib Documentation',
  184. ['Author'], 1)
  185. ]
  186. # If true, show URL addresses after external links.
  187. #man_show_urls = False
  188. # -- Options for Texinfo output -------------------------------------------
  189. # Grouping the document tree into Texinfo files. List of tuples
  190. # (source start file, target name, title, author,
  191. # dir menu entry, description, category)
  192. texinfo_documents = [
  193. ('index', 'fglib', 'fglib Documentation',
  194. 'Author', 'fglib', 'One line description of project.',
  195. 'Miscellaneous'),
  196. ]
  197. # Documents to append as an appendix to all manuals.
  198. #texinfo_appendices = []
  199. # If false, no module index is generated.
  200. #texinfo_domain_indices = True
  201. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  202. #texinfo_show_urls = 'footnote'
  203. # If true, do not generate a @detailmenu in the "Top" node's menu.
  204. #texinfo_no_detailmenu = False
  205. # -- Options for Epub output ----------------------------------------------
  206. # Bibliographic Dublin Core info.
  207. epub_title = 'fglib'
  208. epub_author = 'Author'
  209. epub_publisher = 'Author'
  210. epub_copyright = '2015, Author'
  211. # The basename for the epub file. It defaults to the project name.
  212. #epub_basename = 'fglib'
  213. # The HTML theme for the epub output. Since the default themes are not optimized
  214. # for small screen space, using the same theme for HTML and epub output is
  215. # usually not wise. This defaults to 'epub', a theme designed to save visual
  216. # space.
  217. #epub_theme = 'epub'
  218. # The language of the text. It defaults to the language option
  219. # or en if the language is not set.
  220. #epub_language = ''
  221. # The scheme of the identifier. Typical schemes are ISBN or URL.
  222. #epub_scheme = ''
  223. # The unique identifier of the text. This can be a ISBN number
  224. # or the project homepage.
  225. #epub_identifier = ''
  226. # A unique identification for the text.
  227. #epub_uid = ''
  228. # A tuple containing the cover image and cover page html template filenames.
  229. #epub_cover = ()
  230. # A sequence of (type, uri, title) tuples for the guide element of content.opf.
  231. #epub_guide = ()
  232. # HTML files that should be inserted before the pages created by sphinx.
  233. # The format is a list of tuples containing the path and title.
  234. #epub_pre_files = []
  235. # HTML files shat should be inserted after the pages created by sphinx.
  236. # The format is a list of tuples containing the path and title.
  237. #epub_post_files = []
  238. # A list of files that should not be packed into the epub file.
  239. epub_exclude_files = ['search.html']
  240. # The depth of the table of contents in toc.ncx.
  241. #epub_tocdepth = 3
  242. # Allow duplicate toc entries.
  243. #epub_tocdup = True
  244. # Choose between 'default' and 'includehidden'.
  245. #epub_tocscope = 'default'
  246. # Fix unsupported image types using the PIL.
  247. #epub_fix_images = False
  248. # Scale large images.
  249. #epub_max_image_width = 0
  250. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  251. #epub_show_urls = 'inline'
  252. # If false, no index is generated.
  253. #epub_use_index = True