| import os |
| import sys |
|
|
| sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../../mani_skill")) |
| import mani_skill |
| __version__ = mani_skill.__version__ |
| |
| |
| |
| |
|
|
| |
| |
|
|
| project = "ManiSkill" |
| copyright = "2024, ManiSkill Contributors" |
| author = "ManiSkill Contributors" |
| release = __version__ |
| version = __version__ |
|
|
| |
| |
|
|
| 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" |
| ] |
|
|
| |
| myst_enable_extensions = ["colon_fence", "dollarmath"] |
| |
| myst_heading_anchors = 4 |
|
|
| templates_path = ["_templates"] |
| |
|
|
|
|
| |
| |
|
|
| html_theme = "pydata_sphinx_theme" |
| html_logo = "_static/logo_black.svg" |
| html_favicon = "_static/favicon.svg" |
|
|
|
|
| |
| 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_typehints = "signature" |
| autodoc_typehints_description_target = "all" |
| autodoc_default_flags = ['members', 'show-inheritance', 'undoc-members'] |
|
|
| autosummary_generate = True |
|
|
| |
|
|
| intersphinx_mapping = {'gymnasium': ('https://gymnasium.farama.org/', None)} |
|
|