conf.py 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # django Organice documentation build configuration file, created by
  5. # sphinx-quickstart on Thu Feb 20 23:16:50 2014.
  6. #
  7. # This file is execfile()d with the current directory set to its 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 re
  15. import sys
  16. import os
  17. from datetime import date
  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. try:
  22. DOC_ROOT = os.path.abspath(os.path.dirname(__file__))
  23. except NameError:
  24. DOC_ROOT = os.path.abspath('.')
  25. print('NOTICE: __file__ not defined, hence guessing that active directory is docs folder: %s' % DOC_ROOT)
  26. PROJECT_ROOT = os.path.abspath(os.path.join(DOC_ROOT, '..'))
  27. sys.path.insert(0, PROJECT_ROOT)
  28. import organice
  29. # -- General configuration -----------------------------------------------------
  30. # If your documentation needs a minimal Sphinx version, state it here.
  31. #needs_sphinx = '1.0'
  32. # Add any Sphinx extension module names here, as strings. They can be extensions
  33. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  34. extensions = [
  35. 'sphinx.ext.autodoc',
  36. 'sphinx.ext.coverage',
  37. 'sphinx.ext.doctest',
  38. 'sphinx.ext.intersphinx',
  39. 'sphinx.ext.todo',
  40. ]
  41. # Add any paths that contain templates here, relative to this directory.
  42. templates_path = ['templates']
  43. # The suffix of source filenames.
  44. source_suffix = '.rst'
  45. # The encoding of source files.
  46. #source_encoding = 'utf-8-sig'
  47. # The master toctree document.
  48. master_doc = 'index'
  49. # General information about the project.
  50. project = 'django Organice'
  51. copyright = '%s, %s <%s>' % (date.today().year, organice.__author__, organice.__author_email__)
  52. # The version info for the project you're documenting, acts as replacement for
  53. # |version| and |release|, also used in various other places throughout the
  54. # built documents.
  55. #
  56. # The full version, including alpha/beta/rc tags.
  57. release = organice.__version__
  58. # The short X.Y version.
  59. version = re.match(r'\d+\.\d+', release).group()
  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. locale_dirs = ['locale']
  72. gettext_compact = False
  73. # The reST default role (used for this markup: `text`) to use for all documents.
  74. #default_role = None
  75. # If true, '()' will be appended to :func: etc. cross-reference text.
  76. #add_function_parentheses = True
  77. # If true, the current module name will be prepended to all description
  78. # unit titles (such as .. function::).
  79. #add_module_names = True
  80. # If true, sectionauthor and moduleauthor directives will be shown in the
  81. # output. They are ignored by default.
  82. #show_authors = False
  83. # The name of the Pygments (syntax highlighting) style to use.
  84. pygments_style = 'sphinx'
  85. # A list of ignored prefixes for module index sorting.
  86. #modindex_common_prefix = []
  87. # -- Options for HTML output ---------------------------------------------------
  88. # The theme to use for HTML and HTML Help pages. See the documentation for
  89. # a list of builtin themes.
  90. html_theme = 'default'
  91. # Theme options are theme-specific and customize the look and feel of a theme
  92. # further. For a list of options available for each theme, see the
  93. # documentation.
  94. #html_theme_options = {}
  95. # Add any paths that contain custom themes here, relative to this directory.
  96. #html_theme_path = []
  97. # The name for this set of Sphinx documents. If None, it defaults to
  98. # "<project> v<release> documentation".
  99. #html_title = None
  100. # A shorter title for the navigation bar. Default is the same as html_title.
  101. #html_short_title = None
  102. # The name of an image file (relative to this directory) to place at the top
  103. # of the sidebar.
  104. #html_logo = None
  105. # The name of an image file (within the static path) to use as favicon of the
  106. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  107. # pixels large.
  108. #html_favicon = None
  109. # Add any paths that contain custom static files (such as style sheets) here,
  110. # relative to this directory. They are copied after the builtin static files,
  111. # so a file named "default.css" will overwrite the builtin "default.css".
  112. html_static_path = ['static']
  113. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  114. # using the given strftime format.
  115. #html_last_updated_fmt = '%b %d, %Y'
  116. # If true, SmartyPants will be used to convert quotes and dashes to
  117. # typographically correct entities.
  118. #html_use_smartypants = True
  119. # Custom sidebar templates, maps document names to template names.
  120. #html_sidebars = {}
  121. # Additional templates that should be rendered to pages, maps page names to
  122. # template names.
  123. #html_additional_pages = {}
  124. # If false, no module index is generated.
  125. #html_domain_indices = True
  126. # If false, no index is generated.
  127. #html_use_index = True
  128. # If true, the index is split into individual pages for each letter.
  129. #html_split_index = False
  130. # If true, links to the reST sources are added to the pages.
  131. #html_show_sourcelink = True
  132. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  133. #html_show_sphinx = True
  134. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  135. #html_show_copyright = True
  136. # If true, an OpenSearch description file will be output, and all pages will
  137. # contain a <link> tag referring to it. The value of this option must be the
  138. # base URL from which the finished HTML is served.
  139. #html_use_opensearch = ''
  140. # This is the file name suffix for HTML files (e.g. ".xhtml").
  141. #html_file_suffix = None
  142. # Output file base name for HTML help builder.
  143. htmlhelp_basename = 'django-organice-doc'
  144. # -- Options for LaTeX output --------------------------------------------------
  145. latex_elements = {
  146. # The paper size ('letterpaper' or 'a4paper').
  147. 'papersize': 'a4paper',
  148. # The font size ('10pt', '11pt' or '12pt').
  149. 'pointsize': '11pt',
  150. # Additional stuff for the LaTeX preamble.
  151. 'preamble': '',
  152. }
  153. # Grouping the document tree into LaTeX files. List of tuples
  154. # (source start file, target name, title, author, documentclass [howto/manual]).
  155. latex_documents = [
  156. (
  157. 'index',
  158. 'django-organice.tex',
  159. 'django Organice Documentation',
  160. 'Peter Bittner \\textless{}django@bittner.it\\textgreater{}',
  161. 'manual'
  162. ),
  163. ]
  164. # The name of an image file (relative to this directory) to place at the top of
  165. # the title page.
  166. #latex_logo = None
  167. # For "manual" documents, if this is true, then toplevel headings are parts,
  168. # not chapters.
  169. #latex_use_parts = False
  170. # If true, show page references after internal links.
  171. #latex_show_pagerefs = False
  172. # If true, show URL addresses after external links.
  173. #latex_show_urls = False
  174. # Documents to append as an appendix to all manuals.
  175. #latex_appendices = []
  176. # If false, no module index is generated.
  177. #latex_domain_indices = True
  178. # -- Options for manual page output --------------------------------------------
  179. # One entry per manual page. List of tuples
  180. # (source start file, name, description, authors, manual section).
  181. man_pages = [
  182. (
  183. 'index',
  184. 'django-organice',
  185. 'django Organice Documentation',
  186. ['Peter Bittner <django@bittner.it>'],
  187. 1
  188. ),
  189. ]
  190. # If true, show URL addresses after external links.
  191. #man_show_urls = False
  192. # -- Options for Texinfo output ------------------------------------------------
  193. # Grouping the document tree into Texinfo files. List of tuples
  194. # (source start file, target name, title, author,
  195. # dir menu entry, description, category)
  196. texinfo_documents = [
  197. (
  198. 'index',
  199. 'django-organice',
  200. 'django Organice Documentation',
  201. 'Peter Bittner <django@bittner.it>',
  202. 'djangoOrganice',
  203. 'All-in-one collaboration solution.',
  204. 'Miscellaneous'
  205. ),
  206. ]
  207. # Documents to append as an appendix to all manuals.
  208. #texinfo_appendices = []
  209. # If false, no module index is generated.
  210. #texinfo_domain_indices = True
  211. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  212. #texinfo_show_urls = 'footnote'
  213. # Example configuration for intersphinx: refer to the Python standard library.
  214. intersphinx_mapping = {
  215. 'django': ('http://django.readthedocs.org/en/latest/', None),
  216. 'python': ('http://python.readthedocs.org/en/latest/', None),
  217. 'sphinx': ('http://sphinx.readthedocs.org/en/latest/', None),
  218. }