85 lines
2.3 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"
2025-01-02 12:48:05 +00:00
html_logo = "_static/img/bge-logo.jpeg"
2024-12-05 07:42:30 +00:00
html_title = "BGE"
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
html_theme_options = {
2025-01-02 12:48:05 +00:00
"light_logo": "_static/img/bge-logo.jpeg",
"dark_logo": "_static/img/bge-logo.jpeg",
# "logo": {
# "text": "BGE",
# "image_dark": "_static/img/bge-logo.jpeg",
# },
2024-12-03 11:31:38 +00:00
"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",
}
],
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"
}