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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 = u'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. ]
  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 = {
  39. 'display_version': True
  40. }
  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 = [
  49. ('index', slug, project, [author], 1)
  50. ]
  51. texinfo_documents = [
  52. ('index', slug, project, author, slug, project, 'Miscellaneous'),
  53. ]
  54. # Extensions to theme docs
  55. def setup(app):
  56. from sphinx.domains.python import PyField
  57. from sphinx.util.docfields import Field
  58. app.add_object_type(
  59. 'confval',
  60. 'confval',
  61. objname='configuration value',
  62. indextemplate='pair: %s; configuration value',
  63. doc_field_types=[
  64. PyField(
  65. 'type',
  66. label=('Type'),
  67. has_arg=False,
  68. names=('type',),
  69. bodyrolename='class'
  70. ),
  71. Field(
  72. 'default',
  73. label=('Default'),
  74. has_arg=False,
  75. names=('default',),
  76. ),
  77. ]
  78. )

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