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

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