82 lines
2.2 KiB
Python
Raw Permalink 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("../.."))
2025-01-03 07:18:43 +00:00
project = 'BGE'
2024-11-08 15:34:28 +08:00
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",
2025-01-10 08:50:31 +00:00
"sphinxcontrib.googleanalytics",
2024-11-08 15:34:28 +08:00
]
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"
2025-01-03 07:18:43 +00:00
html_logo = "_static/img/bge_logo.jpeg"
2024-11-08 15:34:28 +08:00
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
# MyST-NB conf
2024-12-03 11:31:38 +00:00
nb_execution_mode = "off"
html_theme_options = {
2025-01-03 07:18:43 +00:00
"logo": {
"text": "BGE",
},
2024-12-03 11:31:38 +00:00
"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",
}
],
2025-01-03 07:18:43 +00:00
"navigation_depth": 5,
2024-12-05 07:42:30 +00:00
"header_links_before_dropdown": 5,
2024-12-03 11:31:38 +00:00
}
html_context = {
"default_mode": "light"
2025-01-10 08:50:31 +00:00
}
googleanalytics_id = 'G-X4B1E1Q35K'