1 Star 0 Fork 1

海宝宝/k230_docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
conf.py 2.11 KB
一键复制 编辑 原始数据 按行查看 历史
Wentao Wu 提交于 2024-06-14 17:26 . k230 sdk docs release v1.6
# 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
import sys, os
import datetime
sys.path.append(os.path.abspath('exts'))
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'K230'
copyright = f'{datetime.datetime.now().year} Canaan Inc'
author = 'Canaan'
# release = '0.1'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx_copybutton',
'myst_parser',
'sphinx_multiversion',
'sphinxcontrib.mermaid'
]
html_js_files = [
'https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.13.8/mermaid.min.js',
'init_mermaid.js',
]
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}
templates_path = ['_templates']
exclude_patterns = ['venv', 'exts', 'en', 'zh/template']
# html_sidebars = { '**': ['globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html'] }
language = os.getenv('SPHINX_LANGUAGE', 'en')
# Set the title based on the language
if language == 'en':
html_title = 'K230 Docs'
else:
html_title = 'K230 文档'
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
myst_heading_anchors = 7
suppress_warnings = ["myst.header"]
html_copy_source = True
html_show_sourcelink = False
html_favicon = 'favicon.ico'
# html_show_sphinx = False
html_theme = "sphinx_book_theme"
# html_theme = 'alabaster'
html_static_path = ['_static']
default_dark_mode = True
locale_dirs = ['locale']
html_css_files = ['topbar.css', 'custom-theme.css']
html_theme_options = {
'collapse_navigation': True,
"repository_url": "https://github.com/kendryte/k230_docs",
'navigation_depth': 7,
"primary_sidebar_end": ["versionsFlex.html"],
"use_repository_button": True
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/baby-sea/k230_docs.git
git@gitee.com:baby-sea/k230_docs.git
baby-sea
k230_docs
k230_docs
main

搜索帮助