conf.py 5.9 KB

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