PageRenderTime 49ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/phpmyadmin/doc/conf.py

https://gitlab.com/luyxtran264/myproject
Python | 304 lines | 37 code | 82 blank | 185 comment | 0 complexity | 2a9ba1c9168947f052b1dafe8e007fde MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. #
  3. # phpMyAdmin documentation build configuration file, created by
  4. # sphinx-quickstart on Wed Sep 26 14:04:48 2012.
  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.insert(0, os.path.abspath('.'))
  19. sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext")))
  20. # -- General configuration ------------------------------------------------
  21. # If your documentation needs a minimal Sphinx version, state it here.
  22. #needs_sphinx = '1.0'
  23. # Add any Sphinx extension module names here, as strings. They can be
  24. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  25. # ones.
  26. extensions = ['configext']
  27. # Add any paths that contain templates here, relative to this directory.
  28. templates_path = ['_templates']
  29. # The suffix of source filenames.
  30. source_suffix = '.rst'
  31. # The encoding of source files.
  32. #source_encoding = 'utf-8-sig'
  33. # The master toctree document.
  34. master_doc = 'index'
  35. # General information about the project.
  36. project = u'phpMyAdmin'
  37. copyright = u'2012 - 2014, The phpMyAdmin devel team'
  38. # The version info for the project you're documenting, acts as replacement for
  39. # |version| and |release|, also used in various other places throughout the
  40. # built documents.
  41. #
  42. # The short X.Y version.
  43. version = '4.6.0'
  44. # The full version, including alpha/beta/rc tags.
  45. release = version
  46. # The language for content autogenerated by Sphinx. Refer to documentation
  47. # for a list of supported languages.
  48. #language = None
  49. # There are two options for replacing |today|: either, you set today to some
  50. # 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 patterns, relative to source directory, that match files and
  55. # directories to ignore when looking for source files.
  56. exclude_patterns = ['_build', 'html', 'doctrees']
  57. # The reST default role (used for this markup: `text`) to use for all
  58. # documents.
  59. #default_role = None
  60. # If true, '()' will be appended to :func: etc. cross-reference text.
  61. #add_function_parentheses = True
  62. # If true, the current module name will be prepended to all description
  63. # unit titles (such as .. function::).
  64. #add_module_names = True
  65. # If true, sectionauthor and moduleauthor directives will be shown in the
  66. # output. They are ignored by default.
  67. #show_authors = False
  68. # The name of the Pygments (syntax highlighting) style to use.
  69. pygments_style = 'sphinx'
  70. # A list of ignored prefixes for module index sorting.
  71. #modindex_common_prefix = []
  72. # If true, keep warnings as "system message" paragraphs in the built documents.
  73. #keep_warnings = False
  74. # -- Options for HTML output ----------------------------------------------
  75. # The theme to use for HTML and HTML Help pages. See the documentation for
  76. # a list of builtin themes.
  77. html_theme = 'default'
  78. # Theme options are theme-specific and customize the look and feel of a theme
  79. # further. For a list of options available for each theme, see the
  80. # documentation.
  81. #html_theme_options = {}
  82. # Add any paths that contain custom themes here, relative to this directory.
  83. #html_theme_path = []
  84. # The name for this set of Sphinx documents. If None, it defaults to
  85. # "<project> v<release> documentation".
  86. #html_title = None
  87. # A shorter title for the navigation bar. Default is the same as html_title.
  88. #html_short_title = None
  89. # The name of an image file (relative to this directory) to place at the top
  90. # of the sidebar.
  91. #html_logo = None
  92. # The name of an image file (within the static path) to use as favicon of the
  93. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  94. # pixels large.
  95. #html_favicon = None
  96. # Add any paths that contain custom static files (such as style sheets) here,
  97. # relative to this directory. They are copied after the builtin static files,
  98. # so a file named "default.css" will overwrite the builtin "default.css".
  99. #html_static_path = ['_static']
  100. # Add any extra paths that contain custom files (such as robots.txt or
  101. # .htaccess) here, relative to this directory. These files are copied
  102. # directly to the root of the documentation.
  103. #html_extra_path = []
  104. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  105. # using the given strftime format.
  106. #html_last_updated_fmt = '%b %d, %Y'
  107. # If true, SmartyPants will be used to convert quotes and dashes to
  108. # typographically correct entities.
  109. #html_use_smartypants = True
  110. # Custom sidebar templates, maps document names to template names.
  111. #html_sidebars = {}
  112. # Additional templates that should be rendered to pages, maps page names to
  113. # template names.
  114. #html_additional_pages = {}
  115. # If false, no module index is generated.
  116. #html_domain_indices = True
  117. # If false, no index is generated.
  118. #html_use_index = True
  119. # If true, the index is split into individual pages for each letter.
  120. #html_split_index = False
  121. # If true, links to the reST sources are added to the pages.
  122. #html_show_sourcelink = True
  123. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  124. #html_show_sphinx = True
  125. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  126. #html_show_copyright = True
  127. # If true, an OpenSearch description file will be output, and all pages will
  128. # contain a <link> tag referring to it. The value of this option must be the
  129. # base URL from which the finished HTML is served.
  130. #html_use_opensearch = ''
  131. # This is the file name suffix for HTML files (e.g. ".xhtml").
  132. #html_file_suffix = None
  133. # Output file base name for HTML help builder.
  134. htmlhelp_basename = 'phpMyAdmindoc'
  135. # -- Options for LaTeX output ---------------------------------------------
  136. latex_elements = {
  137. # The paper size ('letterpaper' or 'a4paper').
  138. #'papersize': 'letterpaper',
  139. # The font size ('10pt', '11pt' or '12pt').
  140. #'pointsize': '10pt',
  141. # Additional stuff for the LaTeX preamble.
  142. #'preamble': '',
  143. }
  144. # Grouping the document tree into LaTeX files. List of tuples
  145. # (source start file, target name, title,
  146. # author, documentclass [howto, manual, or own class]).
  147. latex_documents = [
  148. ('index', 'phpMyAdmin.tex', u'phpMyAdmin Documentation',
  149. u'The phpMyAdmin devel team', '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. # If true, show page references after internal links.
  158. #latex_show_pagerefs = False
  159. # If true, show URL addresses after external links.
  160. #latex_show_urls = False
  161. # Documents to append as an appendix to all manuals.
  162. #latex_appendices = []
  163. # If false, no module index is generated.
  164. #latex_domain_indices = True
  165. # -- Options for manual page output ---------------------------------------
  166. # One entry per manual page. List of tuples
  167. # (source start file, name, description, authors, manual section).
  168. man_pages = [
  169. ('index', 'phpmyadmin', u'phpMyAdmin Documentation',
  170. [u'The phpMyAdmin devel team'], 1)
  171. ]
  172. # If true, show URL addresses after external links.
  173. #man_show_urls = False
  174. # -- Options for Texinfo output -------------------------------------------
  175. # Grouping the document tree into Texinfo files. List of tuples
  176. # (source start file, target name, title, author,
  177. # dir menu entry, description, category)
  178. texinfo_documents = [
  179. ('index', 'phpMyAdmin', u'phpMyAdmin Documentation',
  180. u'The phpMyAdmin devel team', 'phpMyAdmin', 'One line description of project.',
  181. 'Miscellaneous'),
  182. ]
  183. # Documents to append as an appendix to all manuals.
  184. #texinfo_appendices = []
  185. # If false, no module index is generated.
  186. #texinfo_domain_indices = True
  187. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  188. #texinfo_show_urls = 'footnote'
  189. # -- Options for Epub output ---------------------------------------------------
  190. # Bibliographic Dublin Core info.
  191. epub_title = u'phpMyAdmin'
  192. epub_author = u'The phpMyAdmin devel team'
  193. epub_publisher = u'The phpMyAdmin devel team'
  194. epub_copyright = copyright
  195. # The language of the text. It defaults to the language option
  196. # or en if the language is not set.
  197. #epub_language = ''
  198. # The scheme of the identifier. Typical schemes are ISBN or URL.
  199. #epub_scheme = ''
  200. # The unique identifier of the text. This can be a ISBN number
  201. # or the project homepage.
  202. #epub_identifier = ''
  203. # A unique identification for the text.
  204. #epub_uid = ''
  205. # A tuple containing the cover image and cover page html template filenames.
  206. #epub_cover = ()
  207. # HTML files that should be inserted before the pages created by sphinx.
  208. # The format is a list of tuples containing the path and title.
  209. #epub_pre_files = []
  210. # HTML files shat should be inserted after the pages created by sphinx.
  211. # The format is a list of tuples containing the path and title.
  212. #epub_post_files = []
  213. # A list of files that should not be packed into the epub file.
  214. #epub_exclude_files = []
  215. # The depth of the table of contents in toc.ncx.
  216. #epub_tocdepth = 3
  217. # Allow duplicate toc entries.
  218. #epub_tocdup = True
  219. # Highlight PHP without starting <?php tag
  220. from sphinx.highlighting import lexers
  221. from pygments.lexers.web import PhpLexer
  222. lexers['php'] = PhpLexer(startinline=True)