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.7 kB

4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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('../'))
  15. # -- Project information -----------------------------------------------------
  16. project = 'AutoGL'
  17. copyright = '2020, THUMNLab/aglteam'
  18. author = 'THUMNLab/aglteam'
  19. # The full version, including alpha/beta/rc tags
  20. release = 'v0.3.0rc0'
  21. # -- General configuration ---------------------------------------------------
  22. # Add any Sphinx extension module names here, as strings. They can be
  23. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  24. # ones.
  25. extensions = [
  26. "sphinx.ext.mathjax",
  27. 'sphinx.ext.autodoc',
  28. 'sphinx.ext.napoleon',
  29. "sphinx_rtd_theme",
  30. 'sphinx.ext.autosummary',
  31. 'sphinx.ext.doctest',
  32. 'sphinx.ext.intersphinx',
  33. 'sphinx.ext.viewcode',
  34. 'sphinx.ext.githubpages'
  35. ]
  36. # Napoleon settings
  37. napoleon_google_docstring = True
  38. napoleon_numpy_docstring = True
  39. napoleon_include_init_with_doc = False
  40. napoleon_include_private_with_doc = False
  41. napoleon_include_special_with_doc = True
  42. napoleon_use_admonition_for_examples = False
  43. napoleon_use_admonition_for_notes = False
  44. napoleon_use_admonition_for_references = False
  45. napoleon_use_ivar = False
  46. napoleon_use_param = True
  47. napoleon_use_rtype = True
  48. napoleon_type_aliases = None
  49. # Add any paths that contain templates here, relative to this directory.
  50. templates_path = ['_templates']
  51. # List of patterns, relative to source directory, that match files and
  52. # directories to ignore when looking for source files.
  53. # This pattern also affects html_static_path and html_extra_path.
  54. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  55. # -- Options for HTML output -------------------------------------------------
  56. # The theme to use for HTML and HTML Help pages. See the documentation for
  57. # a list of builtin themes.
  58. #
  59. #html_theme = 'alabaster'
  60. html_theme = "sphinx_rtd_theme"
  61. # Add any paths that contain custom static files (such as style sheets) here,
  62. # relative to this directory. They are copied after the builtin static files,
  63. # so a file named "default.css" will overwrite the builtin "default.css".
  64. html_static_path = ['_static']
  65. master_doc = 'index'