您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
此存儲庫已封存,您能瀏覽檔案及複製此存儲庫,但不能推送、建立問題及拉取請求。
 
 
 
 
 
 

77 行
2.0 KiB

  1. # -*- coding: utf-8 -*-
  2. """Sphinx Readable Theme documentation build configuration file.
  3. This file is execfile()d with the current directory set to its containing dir.
  4. """
  5. import os
  6. import sys
  7. import pkg_resources
  8. # Adding this directory to the sys path, to build autodoc of example module.
  9. sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
  10. # -- General configuration ----------------------------------------------------
  11. # Defining Sphinx extension modules.
  12. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode',
  13. 'sphinx.ext.intersphinx']
  14. autodoc_default_flags = ['members', 'show-inheritance']
  15. autodoc_member_order = 'bysource'
  16. # Don't display module names before objects titles, it's more readable.
  17. add_module_names = False
  18. intersphinx_mapping = {
  19. 'python': ('http://docs.python.org/2.7', None),
  20. }
  21. # The suffix of source filenames.
  22. source_suffix = '.rst'
  23. # The master toctree document.
  24. master_doc = 'index'
  25. # General information about the project.
  26. project = u'Sphinx Nameko Theme'
  27. copyright = u'2015'
  28. # The version info for the project, acts as replacement for |version| and
  29. # |release|, also used in various other places throughout the built documents.
  30. #
  31. # The short X.Y version.
  32. version = pkg_resources.get_distribution('sphinx_nameko_theme').version
  33. # The full version, including alpha/beta/rc tags.
  34. release = version
  35. # The name of the Pygments (syntax highlighting) style to use.
  36. pygments_style = 'sphinx'
  37. # -- Options for HTML output --------------------------------------------------
  38. # The theme to use for HTML and HTML Help pages.
  39. html_theme = 'nameko'
  40. # Output file base name for HTML help builder.
  41. htmlhelp_basename = 'sphinxnamekothemedoc'
  42. # -- Options for manual page output -------------------------------------------
  43. # One entry per manual page. List of tuples
  44. # (source start file, name, description, authors, manual section).
  45. man_pages = [
  46. (
  47. 'index',
  48. 'Sphinx Nameko Theme',
  49. u'Sphinx Nameko Theme Documentation',
  50. [u'onefinestay'],
  51. 1,
  52. )
  53. ]