|
| 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 | + |
| 6 | +# -- Project information ----------------------------------------------------- |
| 7 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 | + |
| 9 | +project = 'PyWhyLLM' |
| 10 | +copyright = '2025, PyWhy Contributors' |
| 11 | +author = 'PyWhy Contributors' |
| 12 | + |
| 13 | +# -- General configuration --------------------------------------------------- |
| 14 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 15 | + |
| 16 | +extensions = [ |
| 17 | + "sphinx.ext.autodoc", |
| 18 | + "sphinx.ext.viewcode", |
| 19 | + "sphinx.ext.todo", |
| 20 | + "nbsphinx", |
| 21 | + "sphinx_mdinclude", |
| 22 | +# "sphinxcontrib.googleanalytics", |
| 23 | + "sphinx_copybutton", |
| 24 | + "sphinx_design", |
| 25 | +] |
| 26 | + |
| 27 | +# sphinx-panels shouldn't add bootstrap css since the pydata-sphinx-theme |
| 28 | +# already loads it |
| 29 | +panels_add_bootstrap_css = False |
| 30 | + |
| 31 | +#googleanalytics_id = "" # TODO add |
| 32 | +copybutton_prompt_text = ">>> " |
| 33 | + |
| 34 | +autodoc_mock_imports = ["matplotlib"] |
| 35 | + |
| 36 | +# Add any paths that contain templates here, relative to this directory. |
| 37 | +templates_path = ["_templates"] |
| 38 | + |
| 39 | +# The suffix(es) of source filenames. |
| 40 | +# You can specify multiple suffix as a list of string: |
| 41 | +# |
| 42 | +source_suffix = ['.rst', '.md'] |
| 43 | + |
| 44 | +# The master toctree document. |
| 45 | +master_doc = "index" |
| 46 | + |
| 47 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 48 | +# for a list of supported languages. |
| 49 | +# |
| 50 | +# This is also used if you do content translation via gettext catalogs. |
| 51 | +# Usually you set "language" from the command line for these cases. |
| 52 | +language = "en" |
| 53 | + |
| 54 | +# List of patterns, relative to source directory, that match files and |
| 55 | +# directories to ignore when looking for source files. |
| 56 | +# This pattern also affects html_static_path and html_extra_path . |
| 57 | +exclude_patterns = [ |
| 58 | + "_build", |
| 59 | + "Thumbs.db", |
| 60 | + ".DS_Store", |
| 61 | + ".ipynb_checkpoints", |
| 62 | +] |
| 63 | + |
| 64 | +# The name of the Pygments (syntax highlighting) style to use. |
| 65 | +pygments_style = "sphinx" |
| 66 | + |
| 67 | + |
| 68 | +# -- Options for HTML output ------------------------------------------------- |
| 69 | + |
| 70 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 71 | +# a list of builtin themes. |
| 72 | +# |
| 73 | +html_theme = "pydata_sphinx_theme" |
| 74 | + |
| 75 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 76 | +# further. For a list of options available for each theme, see the |
| 77 | +# documentation. |
| 78 | +# |
| 79 | +# html_theme_options = {"navbar_end": ["navbar-icon-links", "versions"]} |
| 80 | + |
| 81 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 82 | +# relative to this directory. They are copied after the builtin static files, |
| 83 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 84 | +html_static_path = ["_static"] |
| 85 | + |
| 86 | +# |
| 87 | + |
| 88 | +templates_path = ['_templates'] |
| 89 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 90 | + |
| 91 | + |
| 92 | +# -- Options for HTMLHelp output --------------------------------------------- |
| 93 | + |
| 94 | +# Output file base name for HTML help builder. |
| 95 | +htmlhelp_basename = "pywhyllmdoc" |
| 96 | + |
| 97 | +html_logo = "_static/pywhyllm-logo-small.png" |
| 98 | + |
0 commit comments