4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 02:24:38 +08:00
nerfstudio/docs/conf.py
Matthew Tancik 6050dfb6e3
Update to myst_nb (#206)
* Update to myst_nb

* Fix action

* Remove action for now
2022-07-25 19:22:39 -07:00

118 lines
3.6 KiB
Python

# pylint: skip-file
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
sys.path.insert(0, os.path.abspath(".."))
# -- Project information -----------------------------------------------------
project = "nerfactory"
copyright = "2022, nerfactory Team"
author = "nerfactory Team"
# The full version, including alpha/beta/rc tags
release = "0.0.0"
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.duration",
"sphinx.ext.doctest",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinxemoji.sphinxemoji",
"myst_nb",
"sphinx.ext.napoleon",
"sphinx_copybutton",
"sphinx_design",
"sphinx.ext.mathjax",
]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
suppress_warnings = ["myst.header"]
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
# Needed for interactive plotly in notebooks
html_js_files = [
"require.min.js",
"custom.js",
]
# -- MYST configs -----------------------------------------------------------
# To enable admonitions:
myst_enable_extensions = ["amsmath", "colon_fence", "dollarmath", "html_image"]
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "furo"
html_title = "nerfactory"
autosectionlabel_prefix_document = True
html_theme_options = {
"light_css_variables": {
"color-brand-primary": "#00878e",
"color-brand-content": "#00878e",
},
}
# -- Code block theme --------------------------------------------------------
pygments_style = "manni"
pygments_dark_style = "stata-dark"
# -- Napoleon settings -------------------------------------------------------
# Settings for parsing non-sphinx style docstrings. We use Google style in this
# project.
napoleon_google_docstring = True
napoleon_numpy_docstring = False
napoleon_include_init_with_doc = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True
napoleon_preprocess_types = False
napoleon_type_aliases = None
napoleon_attr_annotations = True
# -- MYSTNB -----------------------------------------------------------------
suppress_warnings = ["mystnb.unknown_mime_type", "myst.header"]
nb_execution_mode = "off"