conf.py 6.1 KB

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