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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # Configuration file for the Sphinx documentation builder.
  2. #
  3. # For the full list of built-in configuration values, see the documentation:
  4. # https://www.sphinx-doc.org/en/master/usage/configuration.html
  5. # -- Project information -----------------------------------------------------
  6. # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
  7. import sys
  8. import os
  9. import re
  10. if not 'READTHEDOCS' in os.environ:
  11. sys.path.insert(0, os.path.abspath('..'))
  12. sys.path.append(os.path.abspath('./ABL/'))
  13. # from sphinx.locale import _
  14. from sphinx_rtd_theme import __version__
  15. project = u'ABL'
  16. slug = re.sub(r'\W+', '-', project.lower())
  17. project = 'ABL-Package'
  18. copyright = '2023, Author'
  19. author = 'Author'
  20. # -- General configuration ---------------------------------------------------
  21. # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
  22. extensions = [
  23. 'sphinx.ext.intersphinx',
  24. 'sphinx.ext.autodoc',
  25. 'sphinx.ext.mathjax',
  26. 'sphinx.ext.viewcode',
  27. 'sphinx_rtd_theme',
  28. 'recommonmark',
  29. 'sphinx_markdown_tables',
  30. ]
  31. templates_path = ['_templates']
  32. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  33. language = 'en'
  34. # -- Options for HTML output -------------------------------------------------
  35. # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
  36. html_theme = 'sphinx_rtd_theme'
  37. html_theme_options = {
  38. 'display_version': True
  39. }
  40. # -- Options for todo extension ----------------------------------------------
  41. # https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration
  42. templates_path = ['_templates']
  43. source_suffix = ['.rst', '.md']
  44. exclude_patterns = []
  45. # locale_dirs = ['locale/']
  46. gettext_compact = False
  47. master_doc = 'index'
  48. suppress_warnings = ['image.nonlocal_uri']
  49. pygments_style = 'default'
  50. # intersphinx_mapping = {
  51. # 'rtd': ('https://docs.readthedocs.io/en/latest/', None),
  52. # 'sphinx': ('http://www.sphinx-doc.org/en/stable/', None),
  53. # }
  54. html_theme = 'sphinx_rtd_theme'
  55. html_theme_options = {
  56. 'display_version': True
  57. }
  58. # html_theme_path = ["../.."]
  59. # html_logo = "demo/static/logo-wordmark-light.svg"
  60. # html_show_sourcelink = True
  61. htmlhelp_basename = slug
  62. # latex_documents = [
  63. # ('index', '{0}.tex'.format(slug), project, author, 'manual'),
  64. # ]
  65. man_pages = [
  66. ('index', slug, project, [author], 1)
  67. ]
  68. texinfo_documents = [
  69. ('index', slug, project, author, slug, project, 'Miscellaneous'),
  70. ]
  71. # Extensions to theme docs
  72. def setup(app):
  73. from sphinx.domains.python import PyField
  74. from sphinx.util.docfields import Field
  75. app.add_object_type(
  76. 'confval',
  77. 'confval',
  78. objname='configuration value',
  79. indextemplate='pair: %s; configuration value',
  80. doc_field_types=[
  81. PyField(
  82. 'type',
  83. label=('Type'),
  84. has_arg=False,
  85. names=('type',),
  86. bodyrolename='class'
  87. ),
  88. Field(
  89. 'default',
  90. label=('Default'),
  91. has_arg=False,
  92. names=('default',),
  93. ),
  94. ]
  95. )

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