2022-06-29 14:35:19 -04:00
|
|
|
# Configuration file for the Sphinx documentation builder.
|
|
|
|
#
|
|
|
|
# This file only contains a selection of the most common options. For a full
|
|
|
|
# list see the documentation:
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
|
|
|
|
# -- Path setup --------------------------------------------------------------
|
|
|
|
|
2022-10-10 13:11:48 -05:00
|
|
|
import os
|
|
|
|
import sys
|
2022-06-29 14:35:19 -04:00
|
|
|
|
2022-10-10 13:11:48 -05:00
|
|
|
sys.path.insert(0, os.path.abspath("../.."))
|
2022-06-29 14:35:19 -04:00
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
|
2023-10-17 08:45:12 -04:00
|
|
|
from unstructured.__version__ import __version__ # noqa: E402
|
2022-06-29 14:35:19 -04:00
|
|
|
|
2023-02-09 10:40:28 -05:00
|
|
|
project = "Unstructured"
|
|
|
|
copyright = "2022-2023, Unstructured Technologies"
|
2022-10-10 13:11:48 -05:00
|
|
|
author = "Unstructured Technologies"
|
2022-06-29 14:35:19 -04:00
|
|
|
|
2023-02-09 10:40:28 -05:00
|
|
|
# The full version, excluding alpha/beta/rc tags
|
|
|
|
release = __version__.split("-")[0]
|
2022-06-29 14:35:19 -04:00
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
# ones.
|
|
|
|
extensions = [
|
2022-10-10 13:11:48 -05:00
|
|
|
"sphinx_rtd_theme",
|
2023-08-21 10:27:32 -07:00
|
|
|
"sphinx_tabs.tabs",
|
2023-09-25 21:20:16 -07:00
|
|
|
"myst_parser",
|
2022-06-29 14:35:19 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
2022-10-10 13:11:48 -05:00
|
|
|
templates_path = ["_templates"]
|
2022-06-29 14:35:19 -04:00
|
|
|
|
|
|
|
# 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 = []
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
|
# a list of builtin themes.
|
|
|
|
#
|
2023-02-09 10:40:28 -05:00
|
|
|
html_theme = "furo"
|
2022-06-29 14:35:19 -04:00
|
|
|
|
|
|
|
# Add any paths that contain custom static files (such as style sheets) here,
|
|
|
|
# relative to this directory. They are copied after the builtin static files,
|
|
|
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
2022-10-10 13:11:48 -05:00
|
|
|
html_static_path = ["_static"]
|
2023-02-06 23:00:55 +05:30
|
|
|
|
|
|
|
# Adding a custom css file in order to add custom css file and can change the necessary elements.
|
2024-01-25 12:31:28 -08:00
|
|
|
# custom css and js for kapa.ai integration
|
2023-02-09 10:40:28 -05:00
|
|
|
html_favicon = "_static/images/unstructured_small.png"
|
2024-01-25 12:31:28 -08:00
|
|
|
html_js_files = ["js/githubStargazers.js", "js/sidebarScrollPosition.js", "custom.js"]
|
|
|
|
html_css_files = ["unstructured.css", "custom.css"]
|
2023-02-09 10:40:28 -05:00
|
|
|
|
|
|
|
html_theme_options = {
|
|
|
|
"sidebar_hide_name": True,
|
|
|
|
"light_logo": "images/logo-light-mode.svg",
|
|
|
|
"dark_logo": "images/logo-dark-mode.svg",
|
|
|
|
"light_css_variables": {
|
|
|
|
"color-sidebar-background": "#FFFFFF",
|
|
|
|
"color-sidebar-background-border": "#e9eaed",
|
|
|
|
"color-sidebar-caption-text": "#484848",
|
|
|
|
"color-sidebar-link-text": "#484848",
|
|
|
|
"color-sidebar-link-text--top-level": "#484848",
|
|
|
|
"color-sidebar-item-background--current": "transparent",
|
|
|
|
"color-sidebar-item-background--hover": "transparent",
|
|
|
|
"color-sidebar-item-expander-background": "transparent",
|
|
|
|
"color-sidebar-item-expander-background--hover": "transparent",
|
|
|
|
"color-sidebar-search-text": "#484848",
|
|
|
|
"color-sidebar-search-background": "#FFFFFF",
|
|
|
|
"color-sidebar-search-background--focus": "#FFFFFF",
|
|
|
|
"color-sidebar-search-border": "#b9b9b9",
|
|
|
|
"color-sidebar-search-border-focus": "#484848",
|
|
|
|
"color-sidebar-current-text": "#ff675f",
|
|
|
|
"color-content-foreground": "#484848",
|
|
|
|
"color-toc-title": "#212529",
|
|
|
|
"color-toc-item-text--hover": "#484848",
|
|
|
|
"color-toc-item-text--active": "#484848",
|
|
|
|
"color-table-header": "#FDDACA",
|
|
|
|
"color-table-bg": "#FFE5D9",
|
|
|
|
"color-table-row": "#FEEDE6",
|
|
|
|
"color-link": "#ff675f",
|
|
|
|
"color-link--hover": "#ff675f",
|
|
|
|
"content-padding": "5em",
|
|
|
|
"content-padding--small": "2em",
|
|
|
|
"color-search-icon": "#484848",
|
|
|
|
"color-search-placeholder": "#484848",
|
|
|
|
"color-literal": "#FF675F",
|
|
|
|
"toc-spacing-vertical": "3em",
|
|
|
|
"color-page-info": "#646776",
|
|
|
|
"toc-item-spacing-vertical": "1em",
|
|
|
|
"color-img-background": "#ffffff",
|
|
|
|
"sidebar-tree-space-above": "0",
|
|
|
|
"sidebar-caption-space-above": "0",
|
|
|
|
},
|
|
|
|
"dark_css_variables": {
|
|
|
|
"color-sidebar-background": "#131416",
|
|
|
|
"color-sidebar-background-border": "#303335",
|
|
|
|
"color-sidebar-caption-text": "#FFFFFF",
|
|
|
|
"color-sidebar-link-text": "#FFFFFF",
|
|
|
|
"color-sidebar-link-text--top-level": "#FFFFFF",
|
|
|
|
"color-sidebar-item-background--current": "none",
|
|
|
|
"color-sidebar-item-background--hover": "none",
|
|
|
|
"color-sidebar-item-expander-background": "transparent",
|
|
|
|
"color-sidebar-item-expander-background--hover": "transparent",
|
|
|
|
"color-sidebar-search-text": "#FFFFFF",
|
|
|
|
"color-sidebar-search-background": "#131416",
|
|
|
|
"color-sidebar-search-background--focus": "transparent",
|
|
|
|
"color-sidebar-search-border": "#FFFFFF",
|
|
|
|
"color-sidebar-search-border-focus": "#FFFFFF",
|
|
|
|
"color-sidebar-search-foreground": "#FFFFFF",
|
|
|
|
"color-sidebar-current-text": "#FFC2BF",
|
|
|
|
"color-content-foreground": "#FFFFFF",
|
|
|
|
"color-toc-title": "#FFFFFF",
|
|
|
|
"color-toc-item-text--hover": "#FFFFFF",
|
|
|
|
"color-toc-item-text--active": "#FFFFFF",
|
|
|
|
"color-table-header": "#131416",
|
|
|
|
"color-table-bg": "#232427",
|
|
|
|
"color-table-row": "#444444",
|
|
|
|
"color-link": "#FFC2BF",
|
|
|
|
"color-link--hover": "#FFC2BF",
|
|
|
|
"color-search-icon": "#FFFFFF",
|
|
|
|
"color-search-placeholder": "#FFFFFF",
|
|
|
|
"color-literal": "#F8C0A7",
|
|
|
|
"color-page-info": "#FFFFFF",
|
2023-05-01 18:17:52 -04:00
|
|
|
"color-img-background": "#131416",
|
2023-02-09 10:40:28 -05:00
|
|
|
"sidebar-tree-space-above": "0",
|
|
|
|
"sidebar-caption-space-above": "0",
|
|
|
|
},
|
|
|
|
}
|