| # Configuration file for the Sphinx documentation builder. | |
| # | |
| # For the full list of built-in configuration values, see the documentation: | |
| # https://www.sphinx-doc.org/en/master/usage/configuration.html | |
| # -- Project information ----------------------------------------------------- | |
| # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | |
| project = 'dFactory' | |
| copyright = '2025, DILAB' | |
| author = 'DILAB' | |
| # -- General configuration --------------------------------------------------- | |
| # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | |
| extensions = [ | |
| "myst_parser", | |
| "sphinx.ext.autodoc", | |
| "sphinx.ext.autosummary", | |
| "sphinx.ext.autosectionlabel", | |
| "sphinx.ext.napoleon", | |
| "sphinx.ext.viewcode", | |
| ] | |
| # Use Google style docstrings instead of NumPy docstrings. | |
| napoleon_google_docstring = True | |
| napoleon_numpy_docstring = False | |
| # The suffix(es) of source filenames. | |
| # You can specify multiple suffix as a list of string: | |
| source_suffix = { | |
| ".rst": "restructuredtext", | |
| ".md": "markdown", | |
| } | |
| templates_path = ['_templates'] | |
| exclude_patterns = [] | |
| # List of patterns, relative to source directory, that match files and | |
| # directories to ignore when looking for source files. | |
| # This pattern also affects html_static_path and html_extra_path. | |
| exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | |
| # -- Options for HTML output ------------------------------------------------- | |
| # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | |
| # -- Options for HTML output ------------------------------------------------- | |
| # The theme to use for HTML and HTML Help pages. See the documentation for | |
| # a list of builtin themes. | |
| # | |
| html_theme = "sphinx_rtd_theme" | |
| html_static_path = ['../_static'] | |
| # Add the JavaScript file | |
| html_js_files = [ | |
| "js/runllm-widget.js", | |
| "js/resizable-sidebar.js", | |
| ] | |
| # Add custom CSS file for full-width layout | |
| html_css_files = [ | |
| "custom.css", | |
| ] | |
| exclude_patterns += ["README.md"] | |
| suppress_warnings = ["ref.duplicate", "ref.myst"] | |