conf.py 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. # -*- coding: utf-8 -*-
  2. #
  3. # supervisor documentation build configuration file
  4. #
  5. # This file is execfile()d with the current directory set to its containing
  6. # dir.
  7. #
  8. # The contents of this file are pickled, so don't put values in the
  9. # namespace that aren't pickleable (module imports are okay, they're
  10. # removed automatically).
  11. #
  12. # All configuration values have a default value; values that are commented
  13. # out serve to show the default value.
  14. import sys, os
  15. from datetime import date
  16. # If your extensions are in another directory, add it here. If the
  17. # directory is relative to the documentation root, use os.path.abspath to
  18. # make it absolute, like shown here.
  19. #sys.path.append(os.path.abspath('some/directory'))
  20. parent = os.path.dirname(os.path.dirname(__file__))
  21. sys.path.append(os.path.join(os.path.abspath(parent), 'src'))
  22. wd = os.getcwd()
  23. os.chdir(parent)
  24. os.system('%s setup.py test -q' % sys.executable)
  25. os.chdir(wd)
  26. for item in os.listdir(parent):
  27. if item.endswith('.egg'):
  28. sys.path.append(os.path.join(parent, item))
  29. # General configuration
  30. # ---------------------
  31. # Add any Sphinx extension module names here, as strings. They can be
  32. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  33. extensions = ['sphinx.ext.autodoc']
  34. # Add any paths that contain templates here, relative to this directory.
  35. templates_path = ['.templates']
  36. # The suffix of source filenames.
  37. source_suffix = '.rst'
  38. # The master toctree document.
  39. master_doc = 'index'
  40. # General substitutions.
  41. project = 'supervisor'
  42. year = date.today().year
  43. copyright = '2004-%d, Agendaless Consulting and Contributors' % year
  44. # The default replacements for |version| and |release|, also used in various
  45. # other places throughout the built documents.
  46. #
  47. # The short X.Y version.
  48. version = '3.0a9'
  49. # The full version, including alpha/beta/rc tags.
  50. release = version
  51. # There are two options for replacing |today|: either, you set today to
  52. # some non-false value, then it is used:
  53. #today = ''
  54. # Else, today_fmt is used as the format for a strftime call.
  55. today_fmt = '%B %d, %Y'
  56. # List of documents that shouldn't be included in the build.
  57. #unused_docs = []
  58. # List of directories, relative to source directories, that shouldn't be
  59. # searched for source files.
  60. #exclude_dirs = []
  61. # The reST default role (used for this markup: `text`) to use for all
  62. # documents.
  63. #default_role = None
  64. # If true, '()' will be appended to :func: etc. cross-reference text.
  65. #add_function_parentheses = True
  66. # If true, the current module name will be prepended to all description
  67. # unit titles (such as .. function::).
  68. #add_module_names = True
  69. # If true, sectionauthor and moduleauthor directives will be shown in the
  70. # output. They are ignored by default.
  71. #show_authors = False
  72. # The name of the Pygments (syntax highlighting) style to use.
  73. pygments_style = 'sphinx'
  74. # Options for HTML output
  75. # -----------------------
  76. # The style sheet to use for HTML and HTML Help pages. A file of that name
  77. # must exist either in Sphinx' static/ path, or in one of the custom paths
  78. # given in html_static_path.
  79. html_style = 'repoze.css'
  80. # The name for this set of Sphinx documents. If None, it defaults to
  81. # "<project> v<release> documentation".
  82. #html_title = None
  83. # A shorter title for the navigation bar. Default is the same as
  84. # html_title.
  85. #html_short_title = None
  86. # The name of an image file (within the static path) to place at the top of
  87. # the sidebar.
  88. html_logo = '.static/logo_lo.gif'
  89. # The name of an image file (within the static path) to use as favicon of
  90. # the docs. This file should be a Windows icon file (.ico) being 16x16 or
  91. # 32x32 pixels large.
  92. #html_favicon = None
  93. # Add any paths that contain custom static files (such as style sheets)
  94. # here, relative to this directory. They are copied after the builtin
  95. # static files, so a file named "default.css" will overwrite the builtin
  96. # "default.css".
  97. html_static_path = ['.static']
  98. # If not '', a 'Last updated on:' timestamp is inserted at every page
  99. # bottom, using the given strftime format.
  100. html_last_updated_fmt = '%b %d, %Y'
  101. # If true, SmartyPants will be used to convert quotes and dashes to
  102. # typographically correct entities.
  103. #html_use_smartypants = True
  104. # Custom sidebar templates, maps document names to template names.
  105. #html_sidebars = {}
  106. # Additional templates that should be rendered to pages, maps page names to
  107. # template names.
  108. #html_additional_pages = {}
  109. # If false, no module index is generated.
  110. #html_use_modindex = True
  111. # If false, no index is generated.
  112. #html_use_index = True
  113. # If true, the index is split into individual pages for each letter.
  114. #html_split_index = False
  115. # If true, the reST sources are included in the HTML build as
  116. # _sources/<name>.
  117. #html_copy_source = True
  118. # If true, an OpenSearch description file will be output, and all pages
  119. # will contain a <link> tag referring to it. The value of this option must
  120. # be the base URL from which the finished HTML is served.
  121. #html_use_opensearch = ''
  122. # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
  123. #html_file_suffix = ''
  124. # Output file base name for HTML help builder.
  125. htmlhelp_basename = 'supervisor'
  126. # Options for LaTeX output
  127. # ------------------------
  128. # The paper size ('letter' or 'a4').
  129. #latex_paper_size = 'letter'
  130. # The font size ('10pt', '11pt' or '12pt').
  131. #latex_font_size = '10pt'
  132. # Grouping the document tree into LaTeX files. List of tuples
  133. # (source start file, target name, title,
  134. # author, document class [howto/manual]).
  135. latex_documents = [
  136. ('index', 'supervisor.tex', 'supervisor Documentation',
  137. 'Supervisor Developers', 'manual'),
  138. ]
  139. # The name of an image file (relative to this directory) to place at the
  140. # top of the title page.
  141. latex_logo = '.static/logo_hi.gif'
  142. # For "manual" documents, if this is true, then toplevel headings are
  143. # parts, not chapters.
  144. #latex_use_parts = False
  145. # Additional stuff for the LaTeX preamble.
  146. #latex_preamble = ''
  147. # Documents to append as an appendix to all manuals.
  148. #latex_appendices = []
  149. # If false, no module index is generated.
  150. #latex_use_modindex = True