mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-19 14:58:12 +00:00
50 lines
1.5 KiB
Python
50 lines
1.5 KiB
Python
# 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('../../diffsynth'))
|
|
|
|
project = 'DiffSynth-Studio'
|
|
copyright = '2024, ModelScope'
|
|
author = 'ModelScope'
|
|
release = '0.1.0'
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
extensions = [
|
|
'sphinx.ext.autodoc',
|
|
'sphinx.ext.napoleon',
|
|
'sphinx.ext.doctest',
|
|
'sphinx.ext.intersphinx',
|
|
'sphinx.ext.todo',
|
|
'sphinx.ext.coverage',
|
|
'sphinx.ext.imgmath',
|
|
'sphinx.ext.viewcode',
|
|
'recommonmark',
|
|
'sphinx_markdown_tables'
|
|
]
|
|
|
|
templates_path = ['_templates']
|
|
exclude_patterns = []
|
|
|
|
|
|
source_suffix = ['.rst', '.md']
|
|
# -- Options for HTML output -------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
html_static_path = ['_static']
|
|
# multi-language docs
|
|
language = 'en'
|
|
locale_dirs = ['../locales/'] # path is example but recommended.
|
|
gettext_compact = False # optional.
|
|
gettext_uuid = True # optional. |