conf.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # This file only contains a selection of the most common options. For a full
  4. # list see the documentation:
  5. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  6. # -- Path setup --------------------------------------------------------------
  7. # Ensure we get the local copy of tornado instead of what's on the standard path
  8. import os
  9. import sys
  10. import sphinx_rtd_theme
  11. sys.path.insert(0, os.path.abspath(".."))
  12. import pywebio
  13. version = release = pywebio.version
  14. # -- Project information -----------------------------------------------------
  15. project = 'PyWebIO'
  16. copyright = '2020, WangWeimin'
  17. author = 'WangWeimin'
  18. # -- General configuration ---------------------------------------------------
  19. # Add any Sphinx extension module names here, as strings. They can be
  20. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  21. # ones.
  22. extensions = [
  23. 'sphinx.ext.autodoc',
  24. # "sphinx.ext.intersphinx",
  25. "sphinx.ext.viewcode",
  26. ]
  27. primary_domain = "py"
  28. default_role = "py:obj"
  29. # intersphinx_mapping = {"python": ("https://docs.python.org/3.6/", None)}
  30. master_doc = 'index'
  31. # The language for content autogenerated by Sphinx. Refer to documentation
  32. # for a list of supported languages.
  33. #
  34. # This is also used if you do content translation via gettext catalogs.
  35. # Usually you set "language" from the command line for these cases.
  36. language = 'zh_CN'
  37. # List of patterns, relative to source directory, that match files and
  38. # directories to ignore when looking for source files.
  39. # This pattern also affects html_static_path and html_extra_path.
  40. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  41. # -- Options for HTML output -------------------------------------------------
  42. # The theme to use for HTML and HTML Help pages. See the documentation for
  43. # a list of builtin themes.
  44. #
  45. html_theme = "sphinx_rtd_theme"
  46. # -- Extension configuration -------------------------------------------------