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
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # -*- coding: utf-8 -*-
  2. import os
  3. import re
  4. import sys
  5. if not 'READTHEDOCS' in os.environ:
  6. sys.path.insert(0, os.path.abspath('..'))
  7. sys.path.append(os.path.abspath('./ABL/'))
  8. # from sphinx.locale import _
  9. from sphinx_rtd_theme import __version__
  10. project = u'ABL'
  11. slug = re.sub(r'\W+', '-', project.lower())
  12. author = u'Yu-Xuan Huang, Wen-Chao Hu, En-Hao Gao'
  13. version = u'0.1.0'
  14. release = u'0.1.0'
  15. copyright = u'2023, LAMDA, Nanjing University, China'
  16. language = 'en'
  17. extensions = [
  18. 'sphinx.ext.intersphinx',
  19. 'sphinx.ext.autodoc',
  20. 'sphinx.ext.mathjax',
  21. 'sphinx.ext.viewcode',
  22. 'sphinx_rtd_theme',
  23. 'recommonmark',
  24. 'sphinx_markdown_tables',
  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 = {
  40. 'display_version': True
  41. }
  42. # html_theme_path = ["../.."]
  43. # html_logo = "demo/static/logo-wordmark-light.svg"
  44. # html_show_sourcelink = True
  45. htmlhelp_basename = slug
  46. # latex_documents = [
  47. # ('index', '{0}.tex'.format(slug), project, author, 'manual'),
  48. # ]
  49. man_pages = [
  50. ('index', slug, project, [author], 1)
  51. ]
  52. texinfo_documents = [
  53. ('index', slug, project, author, slug, project, 'Miscellaneous'),
  54. ]
  55. # Extensions to theme docs
  56. def setup(app):
  57. from sphinx.domains.python import PyField
  58. from sphinx.util.docfields import Field
  59. app.add_object_type(
  60. 'confval',
  61. 'confval',
  62. objname='configuration value',
  63. indextemplate='pair: %s; configuration value',
  64. doc_field_types=[
  65. PyField(
  66. 'type',
  67. label=('Type'),
  68. has_arg=False,
  69. names=('type',),
  70. bodyrolename='class'
  71. ),
  72. Field(
  73. 'default',
  74. label=('Default'),
  75. has_arg=False,
  76. names=('default',),
  77. ),
  78. ]
  79. )

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