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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. # At top on conf.py (with other import statements)
  7. import recommonmark
  8. from recommonmark.transform import AutoStructify
  9. # -- Path setup --------------------------------------------------------------
  10. # If extensions (or modules to document with autodoc) are in another directory,
  11. # add these directories to sys.path here. If the directory is relative to the
  12. # documentation root, use os.path.abspath to make it absolute, like shown here.
  13. #
  14. # import os
  15. # import sys
  16. # sys.path.insert(0, os.path.abspath('.'))
  17. # -- Project information -----------------------------------------------------
  18. project = 'TagUI'
  19. copyright = '2021, AI Singapore'
  20. author = 'Ken Soh, Siow Yi Sheng'
  21. # The full version, including alpha/beta/rc tags
  22. release = '6.46.0'
  23. # -- General configuration ---------------------------------------------------
  24. # Add any Sphinx extension module names here, as strings. They can be
  25. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  26. # ones.
  27. extensions = [
  28. 'recommonmark',
  29. 'sphinx.ext.autosectionlabel',
  30. ]
  31. autosectionlabel_prefix_document = True
  32. # Add any paths that contain templates here, relative to this directory.
  33. templates_path = ['_templates']
  34. # List of patterns, relative to source directory, that match files and
  35. # directories to ignore when looking for source files.
  36. # This pattern also affects html_static_path and html_extra_path.
  37. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  38. # -- Options for HTML output -------------------------------------------------
  39. # The theme to use for HTML and HTML Help pages. See the documentation for
  40. # a list of builtin themes.
  41. #
  42. html_theme = 'sphinx_rtd_theme'
  43. # Add any paths that contain custom static files (such as style sheets) here,
  44. # relative to this directory. They are copied after the builtin static files,
  45. # so a file named "default.css" will overwrite the builtin "default.css".
  46. html_static_path = ['_static']
  47. master_doc = 'index'
  48. def setup(app):
  49. app.add_config_value(
  50. 'recommonmark_config', {
  51. 'url_resolver': lambda url: github_doc_root + url,
  52. 'auto_toc_tree_section': 'Contents',
  53. }, True)
  54. app.add_transform(AutoStructify)