Buckets:
| # Configuration file for the Sphinx documentation builder. | |
| import os | |
| import sys | |
| # Add the project root to the Python path | |
| sys.path.insert(0, os.path.abspath("..")) | |
| # Keep autodoc imports side-effect-light during docs builds. | |
| os.environ.setdefault("API_REQUIRE_AUTH", "false") | |
| os.environ.setdefault("INFERENCE_BACKEND", "stub") | |
| from stateset_agents import __version__ as PACKAGE_VERSION | |
| # -- Project information ----------------------------------------------------- | |
| project = "StateSet Agents" | |
| copyright = "2024, StateSet Team" | |
| author = "StateSet Team" | |
| version = PACKAGE_VERSION | |
| release = PACKAGE_VERSION | |
| # -- General configuration --------------------------------------------------- | |
| extensions = [ | |
| "sphinx.ext.autodoc", | |
| "sphinx.ext.viewcode", | |
| "sphinx.ext.napoleon", | |
| "sphinx.ext.intersphinx", | |
| "sphinx.ext.todo", | |
| "sphinx.ext.coverage", | |
| "sphinx.ext.mathjax", | |
| "sphinx.ext.ifconfig", | |
| "sphinx.ext.githubpages", | |
| "sphinx.ext.autosummary", | |
| "sphinx_rtd_theme", | |
| ] | |
| # Add any paths that contain templates here, relative to this directory. | |
| templates_path = ["_templates"] | |
| # List of patterns, relative to source directory, that match files and | |
| # directories to ignore when looking for source files. | |
| exclude_patterns = [ | |
| "_build", | |
| "Thumbs.db", | |
| ".DS_Store", | |
| "api/modules.rst", | |
| "api/stateset_agents*.rst", | |
| ] | |
| # The name of the Pygments (syntax highlighting) style to use. | |
| pygments_style = "sphinx" | |
| # -- Options for HTML output ------------------------------------------------- | |
| html_theme = "sphinx_rtd_theme" | |
| html_static_path = ["_static"] | |
| html_logo = None | |
| html_theme_options = { | |
| "canonical_url": "", | |
| "analytics_id": "", | |
| "prev_next_buttons_location": "bottom", | |
| "style_external_links": False, | |
| "vcs_pageview_mode": "", | |
| "style_nav_header_background": "#2980B9", | |
| "collapse_navigation": False, | |
| "sticky_navigation": True, | |
| "navigation_depth": 4, | |
| "includehidden": True, | |
| "titles_only": False, | |
| } | |
| # -- Options for autodoc ---------------------------------------------------- | |
| autodoc_default_options = { | |
| "members": True, | |
| "undoc-members": True, | |
| "show-inheritance": True, | |
| "member-order": "bysource", | |
| "special-members": "__init__", | |
| "inherited-members": True, | |
| } | |
| autodoc_typehints = "description" | |
| autoclass_content = "both" | |
| # -- Options for napoleon --------------------------------------------------- | |
| napoleon_google_docstring = True | |
| napoleon_numpy_docstring = True | |
| napoleon_include_init_with_doc = False | |
| napoleon_include_private_with_doc = False | |
| napoleon_include_special_with_doc = True | |
| napoleon_use_admonition_for_examples = False | |
| napoleon_use_admonition_for_notes = False | |
| napoleon_use_admonition_for_references = False | |
| napoleon_use_ivar = False | |
| napoleon_use_param = True | |
| napoleon_use_rtype = True | |
| napoleon_type_aliases = None | |
| # -- Options for intersphinx ------------------------------------------------- | |
| if os.getenv("SPHINX_INTERSPHINX", "0") == "1": | |
| intersphinx_mapping = { | |
| "python": ("https://docs.python.org/3", None), | |
| "torch": ("https://pytorch.org/docs/stable/", None), | |
| "transformers": ("https://huggingface.co/docs/transformers/main/en/", None), | |
| "fastapi": ("https://fastapi.tiangolo.com/", None), | |
| "pydantic": ("https://pydantic-docs.helpmanual.io/", None), | |
| } | |
| else: | |
| # Default to offline-friendly docs builds. | |
| intersphinx_mapping = {} | |
| # -- Options for todo ------------------------------------------------------- | |
| todo_include_todos = True | |
| # -- Custom setup ------------------------------------------------------------ | |
| def setup(app): | |
| app.add_css_file("custom.css") | |
Xet Storage Details
- Size:
- 3.65 kB
- Xet hash:
- ba3d2b075f2755bbe94332282e8305227ecdd8e28ecf736a39e49568a8a0c01e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.