|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# This file only contains a selection of the most common options. For a full |
| 4 | +# list see the documentation: |
| 5 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | + |
| 7 | +# -- Path setup -------------------------------------------------------------- |
| 8 | + |
| 9 | +import os |
| 10 | +import sys |
| 11 | +from datetime import datetime |
| 12 | + |
| 13 | +# Add the project root to the Python path |
| 14 | +sys.path.insert(0, os.path.abspath('..')) |
| 15 | + |
| 16 | +# -- Project information ----------------------------------------------------- |
| 17 | + |
| 18 | +project = 'TaskProvision' |
| 19 | +copyright = f'{datetime.now().year}, TaskProvision Team' |
| 20 | +author = 'TaskProvision Team' |
| 21 | + |
| 22 | +# The full version, including alpha/beta/rc tags |
| 23 | +release = '0.1.0' |
| 24 | + |
| 25 | +# -- General configuration --------------------------------------------------- |
| 26 | + |
| 27 | +extensions = [ |
| 28 | + 'sphinx.ext.autodoc', |
| 29 | + 'sphinx.ext.napoleon', |
| 30 | + 'sphinx.ext.viewcode', |
| 31 | + 'sphinx.ext.intersphinx', |
| 32 | + 'sphinx.ext.coverage', |
| 33 | + 'sphinx.ext.doctest', |
| 34 | + 'sphinx.ext.todo', |
| 35 | + 'sphinx.ext.ifconfig', |
| 36 | + 'sphinx.ext.githubpages', |
| 37 | + 'myst_parser', |
| 38 | +] |
| 39 | + |
| 40 | +# Add any paths that contain templates here, relative to this directory. |
| 41 | +templates_path = ['_templates'] |
| 42 | + |
| 43 | +# List of patterns, relative to source directory, that match files and |
| 44 | +# directories to ignore when looking for source files. |
| 45 | +# This pattern also affects html_static_path and html_extra_path. |
| 46 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 47 | + |
| 48 | +# -- Options for HTML output ------------------------------------------------- |
| 49 | + |
| 50 | +# The theme to use for HTML and HTML Help pages. |
| 51 | +html_theme = 'sphinx_rtd_theme' |
| 52 | + |
| 53 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 54 | +# relative to this directory. They are copied after the builtin static files, |
| 55 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 56 | +html_static_path = ['_static'] |
| 57 | + |
| 58 | +# -- Extension configuration ------------------------------------------------- |
| 59 | + |
| 60 | +# Autodoc settings |
| 61 | +autodoc_default_options = { |
| 62 | + 'members': True, |
| 63 | + 'member-order': 'bysource', |
| 64 | + 'special-members': '__init__', |
| 65 | + 'undoc-members': True, |
| 66 | + 'exclude-members': '__weakref__' |
| 67 | +} |
| 68 | + |
| 69 | +# Intersphinx mapping |
| 70 | +intersphinx_mapping = { |
| 71 | + 'python': ('https://docs.python.org/3', None), |
| 72 | + 'sphinx': ('https://www.sphinx-doc.org/en/master/', None), |
| 73 | +} |
| 74 | + |
| 75 | +# Napoleon settings |
| 76 | +napoleon_google_docstring = True |
| 77 | +napoleon_numpy_docstring = False |
| 78 | +napoleon_include_init_with_doc = True |
| 79 | +napoleon_include_private_with_doc = False |
| 80 | +napoleon_include_special_with_doc = True |
| 81 | +napoleon_use_admonition_for_examples = False |
| 82 | +napoleon_use_admonition_for_notes = False |
| 83 | +napoleon_use_admonition_for_references = False |
| 84 | +napoleon_use_ivar = False |
| 85 | +napoleon_use_param = True |
| 86 | +napoleon_use_rtype = True |
| 87 | + |
| 88 | +# MyST settings |
| 89 | +myst_enable_extensions = [ |
| 90 | + "colon_fence", |
| 91 | + "deflist", |
| 92 | + "dollarmath", |
| 93 | + "html_admonition", |
| 94 | + "html_image", |
| 95 | + "replacements", |
| 96 | + "smartquotes", |
| 97 | + "substitution", |
| 98 | + "tasklist", |
| 99 | +] |
0 commit comments