conf.py 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Configuration file for the Sphinx documentation builder.
  4. #
  5. # This file does only contain a selection of the most common options. For a
  6. # full list see the documentation:
  7. # http://www.sphinx-doc.org/en/master/config
  8. # -- Path setup --------------------------------------------------------------
  9. # If extensions (or modules to document with autodoc) are in another directory,
  10. # add these directories to sys.path here. If the directory is relative to the
  11. # documentation root, use os.path.abspath to make it absolute, like shown here.
  12. #
  13. # import os
  14. # import sys
  15. # sys.path.insert(0, os.path.abspath('.'))
  16. # -- Project information -----------------------------------------------------
  17. import datetime
  18. year_now = datetime.date.today().year
  19. project = u'repo_sync'
  20. copyright = '2016-'+str(year_now)+ '@Liuyuqi'
  21. author = u'liuyuqi.gov@msn.cn'
  22. # The short X.Y version
  23. version = u'1.0'
  24. # The full version, including alpha/beta/rc tags
  25. release = u'1.0.0'
  26. # -- General configuration ---------------------------------------------------
  27. # If your documentation needs a minimal Sphinx version, state it here.
  28. #
  29. # needs_sphinx = '1.0'
  30. # Add any Sphinx extension module names here, as strings. They can be
  31. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  32. # ones.
  33. extensions = [
  34. 'sphinx.ext.autodoc',
  35. 'recommonmark',
  36. ]
  37. # Add any paths that contain templates here, relative to this directory.
  38. templates_path = ['_templates']
  39. # The suffix(es) of source filenames.
  40. # You can specify multiple suffix as a list of string:
  41. #
  42. # source_suffix = ['.rst', '.md']
  43. source_suffix = ['.rst', '.md', '.MD']
  44. # The master toctree document.
  45. master_doc = 'index'
  46. # The language for content autogenerated by Sphinx. Refer to documentation
  47. # for a list of supported languages.
  48. #
  49. # This is also used if you do content translation via gettext catalogs.
  50. # Usually you set "language" from the command line for these cases.
  51. language = 'zh_CN'
  52. html_search_language = 'zh'
  53. # List of patterns, relative to source directory, that match files and
  54. # directories to ignore when looking for source files.
  55. # This pattern also affects html_static_path and html_extra_path.
  56. exclude_patterns = []
  57. # The name of the Pygments (syntax highlighting) style to use.
  58. pygments_style = None
  59. # -- Options for HTML output -------------------------------------------------
  60. # The theme to use for HTML and HTML Help pages. See the documentation for
  61. # a list of builtin themes.
  62. #
  63. # html_theme = 'alabaster'
  64. # readthedoc 主题
  65. html_theme = 'sphinx_rtd_theme'
  66. # Theme options are theme-specific and customize the look and feel of a theme
  67. # further. For a list of options available for each theme, see the
  68. # documentation.
  69. #
  70. html_theme_options = {
  71. 'collapse_navigation': False,
  72. 'sticky_navigation': False,
  73. 'navigation_depth': 2,
  74. 'includehidden': False,
  75. 'logo_only': True,
  76. 'display_version': False,
  77. }
  78. # Add any paths that contain custom static files (such as style sheets) here,
  79. # relative to this directory. They are copied after the builtin static files,
  80. # so a file named "default.css" will overwrite the builtin "default.css".
  81. html_static_path = ['_static']
  82. # Custom sidebar templates, must be a dictionary that maps document names
  83. # to template names.
  84. #
  85. # The default sidebars (for documents that don't match any pattern) are
  86. # defined by theme itself. Builtin themes are using these templates by
  87. # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
  88. # 'searchbox.html']``.
  89. #
  90. # html_sidebars = {}
  91. # -- Options for HTMLHelp output ---------------------------------------------
  92. # Output file base name for HTML help builder.
  93. htmlhelp_basename = 'repo_syncdoc'
  94. # -- Options for LaTeX output ------------------------------------------------
  95. latex_elements = {
  96. # The paper size ('letterpaper' or 'a4paper').
  97. #
  98. # 'papersize': 'letterpaper',
  99. # The font size ('10pt', '11pt' or '12pt').
  100. #
  101. # 'pointsize': '10pt',
  102. # Additional stuff for the LaTeX preamble.
  103. #
  104. # 'preamble': '',
  105. # Latex figure (float) alignment
  106. #
  107. # 'figure_align': 'htbp',
  108. }
  109. # Grouping the document tree into LaTeX files. List of tuples
  110. # (source start file, target name, title,
  111. # author, documentclass [howto, manual, or own class]).
  112. latex_documents = [
  113. (master_doc, 'repo_sync.tex', u'repo\\_sync Documentation',
  114. u'aa', 'manual'),
  115. ]
  116. # -- Options for manual page output ------------------------------------------
  117. # One entry per manual page. List of tuples
  118. # (source start file, name, description, authors, manual section).
  119. man_pages = [
  120. (master_doc, 'repo_sync', u'repo_sync Documentation',
  121. [author], 1)
  122. ]
  123. # -- Options for Texinfo output ----------------------------------------------
  124. # Grouping the document tree into Texinfo files. List of tuples
  125. # (source start file, target name, title, author,
  126. # dir menu entry, description, category)
  127. texinfo_documents = [
  128. (master_doc, 'repo_sync', u'repo_sync Documentation',
  129. author, 'repo_sync', 'One line description of project.',
  130. 'Miscellaneous'),
  131. ]
  132. # -- Options for Epub output -------------------------------------------------
  133. # Bibliographic Dublin Core info.
  134. epub_title = project
  135. # The unique identifier of the text. This can be a ISBN number
  136. # or the project homepage.
  137. #
  138. # epub_identifier = ''
  139. # A unique identification for the text.
  140. #
  141. # epub_uid = ''
  142. # A list of files that should not be packed into the epub file.
  143. epub_exclude_files = ['search.html']
  144. # -- Extension configuration -------------------------------------------------