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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import os
  2. import re
  3. import sys
  4. if "READTHEDOCS" not in os.environ:
  5. sys.path.insert(0, os.path.abspath(".."))
  6. sys.path.append(os.path.abspath("./ABL/"))
  7. project = "ABL"
  8. slug = re.sub(r"\W+", "-", project.lower())
  9. project = "ABL-Package"
  10. copyright = "2023, Author"
  11. author = "Author"
  12. # -- General configuration ---------------------------------------------------
  13. # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
  14. extensions = [
  15. "sphinx.ext.intersphinx",
  16. "sphinx.ext.autodoc",
  17. "sphinx.ext.mathjax",
  18. "sphinx.ext.viewcode",
  19. "sphinx_rtd_theme",
  20. "recommonmark",
  21. "sphinx_markdown_tables",
  22. "sphinx.ext.napoleon",
  23. "sphinx_copybutton",
  24. ]
  25. templates_path = ["_templates"]
  26. source_suffix = [".rst", ".md"]
  27. exclude_patterns = []
  28. # locale_dirs = ['locale/']
  29. gettext_compact = False
  30. master_doc = "index"
  31. suppress_warnings = ["image.nonlocal_uri"]
  32. pygments_style = "default"
  33. # intersphinx_mapping = {
  34. # 'rtd': ('https://docs.readthedocs.io/en/latest/', None),
  35. # 'sphinx': ('http://www.sphinx-doc.org/en/stable/', None),
  36. # }
  37. html_theme = "sphinx_rtd_theme"
  38. html_theme_options = {"display_version": True}
  39. html_static_path = ["_static"]
  40. html_css_files = ["custom.css"]
  41. # html_theme_path = ["../.."]
  42. # html_logo = "demo/static/logo-wordmark-light.svg"
  43. # html_show_sourcelink = True
  44. htmlhelp_basename = slug
  45. # latex_documents = [
  46. # ('index', '{0}.tex'.format(slug), project, author, 'manual'),
  47. # ]
  48. man_pages = [("index", slug, project, [author], 1)]
  49. texinfo_documents = [
  50. ("index", slug, project, author, slug, project, "Miscellaneous"),
  51. ]
  52. # Extensions to theme docs
  53. def setup(app):
  54. from sphinx.domains.python import PyField
  55. from sphinx.util.docfields import Field
  56. app.add_object_type(
  57. "confval",
  58. "confval",
  59. objname="configuration value",
  60. indextemplate="pair: %s; configuration value",
  61. doc_field_types=[
  62. PyField("type", label=("Type"), has_arg=False, names=("type",), bodyrolename="class"),
  63. Field(
  64. "default",
  65. label=("Default"),
  66. has_arg=False,
  67. names=("default",),
  68. ),
  69. ],
  70. )

An efficient Python toolkit for Abductive Learning (ABL), a novel paradigm that integrates machine learning and logical reasoning in a unified framework.