savoji's picture
Add files using upload-large-folder tool
9466539 verified
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../mani_skill"))
import mani_skill
__version__ = mani_skill.__version__
# 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
project = "ManiSkill"
copyright = "2024, ManiSkill Contributors"
author = "ManiSkill Contributors"
release = __version__
version = __version__
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.mathjax",
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"myst_parser",
"sphinx_subfigure",
"sphinxcontrib.video",
"sphinx_togglebutton",
"sphinx_design"
]
# https://myst-parser.readthedocs.io/en/latest/syntax/optional.html
myst_enable_extensions = ["colon_fence", "dollarmath"]
# https://github.com/executablebooks/MyST-Parser/issues/519#issuecomment-1037239655
myst_heading_anchors = 4
templates_path = ["_templates"]
# exclude_patterns = ["user_guide/reference/_autosummary/*"]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "pydata_sphinx_theme"
html_logo = "_static/logo_black.svg"
html_favicon = "_static/favicon.svg"
# json_url = "https://maniskill.readthedocs.io/en/latest/_static/version_switcher.json"
json_url = "_static/version_switcher.json"
version_match = os.environ.get("READTHEDOCS_VERSION")
if version_match is None:
version_match = "v" + __version__
html_theme_options = {
"use_edit_page_button": True,
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/haosulab/ManiSkill",
"icon": "fa-brands fa-github",
},
{
"name": "Website",
"url": "https://maniskill.ai",
"icon": "fa-solid fa-globe",
}
],
"external_links": [
{"name": "Changelog", "url": "https://github.com/haosulab/ManiSkill/releases"},
],
"logo": {
"image_dark": "_static/logo_white.svg",
},
"navbar_center": ["version-switcher", "navbar-nav"],
"show_version_warning_banner": False,
"switcher": {
"json_url": json_url,
"version_match": version_match,
},
}
html_context = {
"display_github": True,
"github_user": "haosulab",
"github_repo": "ManiSkill",
"github_version": "main",
"conf_py_path": "/source/",
"doc_path": "docs/source"
}
html_css_files = [
'css/custom.css',
]
html_static_path = ['_static']
### Autodoc configurations ###
autodoc_typehints = "signature"
autodoc_typehints_description_target = "all"
autodoc_default_flags = ['members', 'show-inheritance', 'undoc-members']
autosummary_generate = True
# remove_from_toctrees = ["_autosummary/*"]
intersphinx_mapping = {'gymnasium': ('https://gymnasium.farama.org/', None)}