PageRenderTime 58ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/build/conf.py

https://gitlab.com/ztane/alembic
Python | 231 lines | 38 code | 64 blank | 129 comment | 0 complexity | fc8580a3f9b9e354229a8b4d89efccaa MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Alembic documentation build configuration file, created by
  4. # sphinx-quickstart on Sat May 1 12:47:55 2010.
  5. #
  6. # This file is execfile()d with the current directory set to its containing dir.
  7. #
  8. # Note that not all possible configuration values are present in this
  9. # autogenerated file.
  10. #
  11. # All configuration values have a default; values that are commented out
  12. # serve to show the default.
  13. import sys
  14. import os
  15. # If extensions (or modules to document with autodoc) are in another directory,
  16. # add these directories to sys.path here. If the directory is relative to the
  17. # documentation root, use os.path.abspath to make it absolute, like shown here.
  18. sys.path.append(os.path.abspath('.'))
  19. # If your extensions are in another directory, add it here. If the directory
  20. # is relative to the documentation root, use os.path.abspath to make it
  21. # absolute, like shown here.
  22. sys.path.insert(0, os.path.abspath('../../'))
  23. import alembic
  24. # -- General configuration -----------------------------------------------------
  25. # Add any Sphinx extension module names here, as strings. They can be extensions
  26. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  27. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',
  28. 'changelog', 'sphinx_paramlinks']
  29. # tags to sort on inside of sections
  30. changelog_sections = ["changed", "feature", "bug", "moved", "removed"]
  31. changelog_render_ticket = "https://bitbucket.org/zzzeek/alembic/issue/%s/"
  32. changelog_render_pullreq = "https://bitbucket.org/zzzeek/alembic/pull-request/%s"
  33. changelog_render_pullreq = {
  34. "bitbucket": "https://bitbucket.org/zzzeek/alembic/pull-request/%s",
  35. "default": "https://bitbucket.org/zzzeek/alembic/pull-request/%s",
  36. "github": "https://github.com/zzzeek/alembic/pull/%s",
  37. }
  38. autodoc_default_flags = ["members"]
  39. # Add any paths that contain templates here, relative to this directory.
  40. templates_path = ['_templates']
  41. # The suffix of source filenames.
  42. source_suffix = '.rst'
  43. # The encoding of source files.
  44. #source_encoding = 'utf-8'
  45. nitpicky = True
  46. # The master toctree document.
  47. master_doc = 'index'
  48. # General information about the project.
  49. project = u'Alembic'
  50. copyright = u'2010-2015, Mike Bayer'
  51. # The version info for the project you're documenting, acts as replacement for
  52. # |version| and |release|, also used in various other places throughout the
  53. # built documents.
  54. #
  55. # The short X.Y version.
  56. version = alembic.__version__
  57. # The full version, including alpha/beta/rc tags.
  58. release = alembic.__version__
  59. # The language for content autogenerated by Sphinx. Refer to documentation
  60. # for a list of supported languages.
  61. #language = None
  62. # There are two options for replacing |today|: either, you set today to some
  63. # non-false value, then it is used:
  64. #today = ''
  65. # Else, today_fmt is used as the format for a strftime call.
  66. #today_fmt = '%B %d, %Y'
  67. # List of documents that shouldn't be included in the build.
  68. #unused_docs = []
  69. # List of directories, relative to source directory, that shouldn't be searched
  70. # for source files.
  71. exclude_trees = []
  72. # The reST default role (used for this markup: `text`) to use for all 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. # -- Options for HTML output ---------------------------------------------------
  87. # The theme to use for HTML and HTML Help pages. Major themes that come with
  88. # Sphinx are currently 'default' and 'sphinxdoc'.
  89. html_theme = 'nature'
  90. html_style = "nature_override.css"
  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_use_modindex = 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, an OpenSearch description file will be output, and all pages will
  133. # contain a <link> tag referring to it. The value of this option must be the
  134. # base URL from which the finished HTML is served.
  135. #html_use_opensearch = ''
  136. # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
  137. #html_file_suffix = ''
  138. # Output file base name for HTML help builder.
  139. htmlhelp_basename = 'Alembicdoc'
  140. # -- Options for LaTeX output --------------------------------------------------
  141. # The paper size ('letter' or 'a4').
  142. #latex_paper_size = 'letter'
  143. # The font size ('10pt', '11pt' or '12pt').
  144. #latex_font_size = '10pt'
  145. # Grouping the document tree into LaTeX files. List of tuples
  146. # (source start file, target name, title, author, documentclass [howto/manual]).
  147. latex_documents = [
  148. ('index', 'Alembic.tex', u'Alembic Documentation',
  149. u'Mike Bayer', 'manual'),
  150. ]
  151. # The name of an image file (relative to this directory) to place at the top of
  152. # the title page.
  153. #latex_logo = None
  154. # For "manual" documents, if this is true, then toplevel headings are parts,
  155. # not chapters.
  156. #latex_use_parts = False
  157. # Additional stuff for the LaTeX preamble.
  158. #latex_preamble = ''
  159. # Documents to append as an appendix to all manuals.
  160. #latex_appendices = []
  161. # If false, no module index is generated.
  162. #latex_use_modindex = True
  163. #{'python': ('http://docs.python.org/3.2', None)}
  164. autoclass_content = "both"
  165. intersphinx_mapping = {
  166. 'sqla':('http://www.sqlalchemy.org/docs/', None),
  167. }