conf.py 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. # superset documentation build configuration file, created by
  18. # sphinx-quickstart on Thu Dec 17 15:42:06 2015.
  19. #
  20. # This file is execfile()d with the current directory set to its
  21. # containing dir.
  22. #
  23. # Note that not all possible configuration values are present in this
  24. # autogenerated file.
  25. #
  26. # All configuration values have a default; values that are commented out
  27. # serve to show the default.
  28. import os
  29. import shlex
  30. import sys
  31. import sphinx_rtd_theme
  32. # If extensions (or modules to document with autodoc) are in another directory,
  33. # add these directories to sys.path here. If the directory is relative to the
  34. # documentation root, use os.path.abspath to make it absolute, like shown here.
  35. # sys.path.insert(0, os.path.abspath('.'))
  36. # -- General configuration ------------------------------------------------
  37. # If your documentation needs a minimal Sphinx version, state it here.
  38. # needs_sphinx = '1.0'
  39. # Add any Sphinx extension module names here, as strings. They can be
  40. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  41. # ones.
  42. extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx_autodoc_typehints"]
  43. # Add any paths that contain templates here, relative to this directory.
  44. templates_path = ["_templates"]
  45. # The suffix(es) of source filenames.
  46. # You can specify multiple suffix as a list of string:
  47. # source_suffix = ['.rst', '.md']
  48. source_suffix = ".rst"
  49. # The encoding of source files.
  50. # source_encoding = 'utf-8-sig'
  51. # The master toctree document.
  52. master_doc = "index"
  53. # General information about the project.
  54. project = "Apache Superset"
  55. copyright = "Copyright © 2019 The Apache Software Foundation, Licensed under the Apache License, Version 2.0."
  56. author = u"Apache Superset Dev"
  57. # The version info for the project you're documenting, acts as replacement for
  58. # |version| and |release|, also used in various other places throughout the
  59. # built documents.
  60. #
  61. # The short X.Y version.
  62. # version = u'1.0'
  63. # The full version, including alpha/beta/rc tags.
  64. # release = u'1.0'
  65. # The language for content autogenerated by Sphinx. Refer to documentation
  66. # for a list of supported languages.
  67. #
  68. # This is also used if you do content translation via gettext catalogs.
  69. # Usually you set "language" from the command line for these cases.
  70. language = None
  71. # There are two options for replacing |today|: either, you set today to some
  72. # non-false value, then it is used:
  73. # today = ''
  74. # Else, today_fmt is used as the format for a strftime call.
  75. # today_fmt = '%B %d, %Y'
  76. # List of patterns, relative to source directory, that match files and
  77. # directories to ignore when looking for source files.
  78. exclude_patterns = ["_build"]
  79. # The reST default role (used for this markup: `text`) to use for all
  80. # documents.
  81. # default_role = None
  82. # If true, '()' will be appended to :func: etc. cross-reference text.
  83. # add_function_parentheses = True
  84. # If true, the current module name will be prepended to all description
  85. # unit titles (such as .. function::).
  86. # add_module_names = True
  87. # If true, sectionauthor and moduleauthor directives will be shown in the
  88. # output. They are ignored by default.
  89. # show_authors = False
  90. # The name of the Pygments (syntax highlighting) style to use.
  91. pygments_style = "sphinx"
  92. # A list of ignored prefixes for module index sorting.
  93. # modindex_common_prefix = []
  94. # If true, keep warnings as "system message" paragraphs in the built documents.
  95. # keep_warnings = False
  96. # If true, `todo` and `todoList` produce output, else they produce nothing.
  97. todo_include_todos = False
  98. # -- Options for HTML output ----------------------------------------------
  99. # The theme to use for HTML and HTML Help pages. See the documentation for
  100. # a list of builtin themes.
  101. html_theme = "sphinx_rtd_theme"
  102. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  103. # Theme options are theme-specific and customize the look and feel of a theme
  104. # further. For a list of options available for each theme, see the
  105. # documentation.
  106. html_theme_options = {}
  107. # Add any paths that contain custom themes here, relative to this directory.
  108. # html_theme_path = []
  109. # The name for this set of Sphinx documents. If None, it defaults to
  110. # "<project> v<release> documentation".
  111. # html_title = None
  112. # A shorter title for the navigation bar. Default is the same as html_title.
  113. # html_short_title = None
  114. # The name of an image file (relative to this directory) to place at the top
  115. # of the sidebar.
  116. # html_logo = "images/s.png"
  117. # The name of an image file (within the static path) to use as favicon of the
  118. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  119. # pixels large.
  120. # html_favicon = None
  121. # Add any paths that contain custom static files (such as style sheets) here,
  122. # relative to this directory. They are copied after the builtin static files,
  123. # so a file named "default.css" will overwrite the builtin "default.css".
  124. html_static_path = ["_static"]
  125. # Add any extra paths that contain custom files (such as robots.txt or
  126. # .htaccess) here, relative to this directory. These files are copied
  127. # directly to the root of the documentation.
  128. # html_extra_path = []
  129. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  130. # using the given strftime format.
  131. # html_last_updated_fmt = '%b %d, %Y'
  132. # If true, SmartyPants will be used to convert quotes and dashes to
  133. # typographically correct entities.
  134. # html_use_smartypants = True
  135. # Custom sidebar templates, maps document names to template names.
  136. # html_sidebars = {}
  137. # Additional templates that should be rendered to pages, maps page names to
  138. # template names.
  139. # html_additional_pages = {}
  140. # If false, no module index is generated.
  141. # html_domain_indices = True
  142. # If false, no index is generated.
  143. # html_use_index = True
  144. # If true, the index is split into individual pages for each letter.
  145. # html_split_index = False
  146. # If true, links to the reST sources are added to the pages.
  147. html_show_sourcelink = False
  148. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  149. html_show_sphinx = False
  150. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  151. html_show_copyright = True
  152. # If true, an OpenSearch description file will be output, and all pages will
  153. # contain a <link> tag referring to it. The value of this option must be the
  154. # base URL from which the finished HTML is served.
  155. # html_use_opensearch = ''
  156. # This is the file name suffix for HTML files (e.g. ".xhtml").
  157. # html_file_suffix = None
  158. # Language to be used for generating the HTML full-text search index.
  159. # Sphinx supports the following languages:
  160. # 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
  161. # 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
  162. # html_search_language = 'en'
  163. # A dictionary with options for the search language support, empty by default.
  164. # Now only 'ja' uses this config value
  165. # html_search_options = {'type': 'default'}
  166. # The name of a javascript file (relative to the configuration directory) that
  167. # implements a search results scorer. If empty, the default will be used.
  168. # html_search_scorer = 'scorer.js'
  169. # Output file base name for HTML help builder.
  170. htmlhelp_basename = "supersetdoc"
  171. # -- Options for LaTeX output ---------------------------------------------
  172. latex_elements = {
  173. # The paper size ('letterpaper' or 'a4paper').
  174. #'papersize': 'letterpaper',
  175. # The font size ('10pt', '11pt' or '12pt').
  176. #'pointsize': '10pt',
  177. # Additional stuff for the LaTeX preamble.
  178. #'preamble': '',
  179. # Latex figure (float) alignment
  180. #'figure_align': 'htbp',
  181. }
  182. # Grouping the document tree into LaTeX files. List of tuples
  183. # (source start file, target name, title,
  184. # author, documentclass [howto, manual, or own class]).
  185. latex_documents = [
  186. (
  187. master_doc,
  188. "superset.tex",
  189. u"Superset Documentation",
  190. u"Apache Superset Dev",
  191. "manual",
  192. )
  193. ]
  194. # The name of an image file (relative to this directory) to place at the top of
  195. # the title page.
  196. # latex_logo = None
  197. # For "manual" documents, if this is true, then toplevel headings are parts,
  198. # not chapters.
  199. # latex_use_parts = False
  200. # If true, show page references after internal links.
  201. # latex_show_pagerefs = False
  202. # If true, show URL addresses after external links.
  203. # latex_show_urls = False
  204. # Documents to append as an appendix to all manuals.
  205. # latex_appendices = []
  206. # If false, no module index is generated.
  207. # latex_domain_indices = True
  208. # -- Options for manual page output ---------------------------------------
  209. # One entry per manual page. List of tuples
  210. # (source start file, name, description, authors, manual section).
  211. man_pages = [(master_doc, "Superset", u"superset Documentation", [author], 1)]
  212. # If true, show URL addresses after external links.
  213. # man_show_urls = False
  214. # -- Options for Texinfo output -------------------------------------------
  215. # Grouping the document tree into Texinfo files. List of tuples
  216. # (source start file, target name, title, author,
  217. # dir menu entry, description, category)
  218. texinfo_documents = [
  219. (
  220. master_doc,
  221. "Superset",
  222. u"Superset Documentation",
  223. author,
  224. "Superset",
  225. "One line description of project.",
  226. "Miscellaneous",
  227. )
  228. ]
  229. # Documents to append as an appendix to all manuals.
  230. # texinfo_appendices = []
  231. # If false, no module index is generated.
  232. # texinfo_domain_indices = True
  233. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  234. # texinfo_show_urls = 'footnote'
  235. # If true, do not generate a @detailmenu in the "Top" node's menu.
  236. # texinfo_no_detailmenu = False