conf.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. # If extensions (or modules to document with autodoc) are in another directory,
  8. # add these directories to sys.path here. If the directory is relative to the
  9. # documentation root, use os.path.abspath to make it absolute, like shown here.
  10. #
  11. # import os
  12. # import sys
  13. # sys.path.insert(0, os.path.abspath('.'))
  14. import sphinx_rtd_theme
  15. html_theme = "sphinx_rtd_theme"
  16. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  17. # -- Project information -----------------------------------------------------
  18. project = 'PaddleX'
  19. copyright = '2020, paddlex@baidu.com'
  20. author = 'paddlex@baidu.com'
  21. # The full version, including alpha/beta/rc tags
  22. release = '0.1.0'
  23. from recommonmark.parser import CommonMarkParser
  24. source_parsers = {
  25. '.md': CommonMarkParser,
  26. }
  27. source_suffix = ['.rst', '.md']
  28. # -- General configuration ---------------------------------------------------
  29. # Add any Sphinx extension module names here, as strings. They can be
  30. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  31. # ones.
  32. extensions = ['sphinx_markdown_tables']
  33. # Add any paths that contain templates here, relative to this directory.
  34. templates_path = ['_templates']
  35. # The language for content autogenerated by Sphinx. Refer to documentation
  36. # for a list of supported languages.
  37. #
  38. # This is also used if you do content translation via gettext catalogs.
  39. # Usually you set "language" from the command line for these cases.
  40. language = 'zh_CN'
  41. # List of patterns, relative to source directory, that match files and
  42. # directories to ignore when looking for source files.
  43. # This pattern also affects html_static_path and html_extra_path.
  44. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  45. # -- Options for HTML output -------------------------------------------------
  46. # The theme to use for HTML and HTML Help pages. See the documentation for
  47. # a list of builtin themes.
  48. #
  49. #html_theme = 'alabaster'
  50. # Add any paths that contain custom static files (such as style sheets) here,
  51. # relative to this directory. They are copied after the builtin static files,
  52. # so a file named "default.css" will overwrite the builtin "default.css".
  53. html_static_path = ['_static']
  54. html_logo = 'images/paddlex.png'