88 lines
2.5 KiB
Python
Raw Normal View History

2024-11-08 15:34:28 +08:00
# 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
import os
import sys
sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../.."))
project = 'FlagEmbedding'
copyright = '2024, BAAI'
author = 'BAAI'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.githubpages",
"sphinx.ext.viewcode",
"sphinx.ext.coverage",
2024-12-03 11:31:38 +00:00
"sphinx_design",
2024-11-08 15:34:28 +08:00
"myst_nb",
]
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2024-12-03 11:31:38 +00:00
# html_theme = 'furo'
html_theme = "pydata_sphinx_theme"
html_logo = "_static/img/BAAI_logo.png"
2024-11-08 15:34:28 +08:00
html_title = "FlagEmbedding"
html_static_path = ['_static']
2024-12-03 11:31:38 +00:00
html_css_files = ["css/custom.css"]
2024-11-08 15:34:28 +08:00
html_theme_options = {
2024-12-03 11:31:38 +00:00
# # "light_logo": "/_static/img/BAAI_logo.png",
# "light_css_variables": {
# "color-brand-primary": "#238be8",
# "color-brand-content": "#238be8",
# },
# "dark_css_variables": {
# "color-brand-primary": "#FBCB67",
# "color-brand-content": "#FBCB67",
# },
"navigation_depth": 5,
2024-11-08 15:34:28 +08:00
}
# MyST-NB conf
2024-12-03 11:31:38 +00:00
nb_execution_mode = "off"
html_theme_options = {
"external_links": [
{
"url": "https://huggingface.co/collections/BAAI/bge-66797a74476eb1f085c7446d",
"name": "HF Models",
},
],
"icon_links":[
{
"name": "GitHub",
"url": "https://github.com/FlagOpen/FlagEmbedding",
"icon": "fa-brands fa-github",
},
{
"name": "PyPI",
"url": "https://pypi.org/project/FlagEmbedding/",
"icon": "fa-brands fa-python",
},
{
"name": "HF Models",
"url": "https://huggingface.co/collections/BAAI/bge-66797a74476eb1f085c7446d",
"icon": "fa-solid fa-cube",
}
],
"header_links_before_dropdown": 7,
}
html_context = {
"default_mode": "light"
}