You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

conf.py 2.5 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. import sphinx_rtd_theme
  14. sys.path.insert(0, os.path.abspath('../lib'))
  15. sys.path.insert(0, os.path.abspath('../lib/sedna'))
  16. # -- Project information -----------------------------------------------------
  17. project = 'Sedna'
  18. copyright = '2020, Kubeedge'
  19. author = 'Kubeedge'
  20. # -- General configuration ---------------------------------------------------
  21. from recommonmark.parser import CommonMarkParser
  22. source_parsers = {
  23. '.md': CommonMarkParser,
  24. }
  25. # Add any Sphinx extension module names here, as strings. They can be
  26. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  27. # ones.
  28. extensions = ['m2r2', 'sphinx.ext.autodoc', 'sphinx_markdown_tables', ]
  29. # Add any paths that contain templates here, relative to this directory.
  30. # templates_path = ['_templates']
  31. # List of patterns, relative to source directory, that match files and
  32. # directories to ignore when looking for source files.
  33. # This pattern also affects html_static_path and html_extra_path.
  34. exclude_patterns = []
  35. # The master toctree document
  36. master_doc = 'index'
  37. # The name of the Pygments (syntax highlighting) style to use.
  38. pygments_style = 'sphinx'
  39. html_static_path = ['_static']
  40. # -- Options for HTML output -------------------------------------------------
  41. # The theme to use for HTML and HTML Help pages. See the documentation for
  42. # a list of builtin themes.
  43. #
  44. html_theme = 'sphinx_rtd_theme'
  45. html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  46. html_theme_options = {
  47. 'prev_next_buttons_location': 'both'
  48. }
  49. # Add any paths that contain custom static files (such as style sheets) here,
  50. # relative to this directory. They are copied after the builtin static files,
  51. # so a file named "default.css" will overwrite the builtin "default.css".
  52. # html_static_path = ['_static']
  53. source_suffix = {
  54. '.rst': 'restructuredtext',
  55. '.txt': 'markdown',
  56. '.md': 'markdown',
  57. }
  58. def setup(app):
  59. app.add_stylesheet('css/custom.css')