-
Notifications
You must be signed in to change notification settings - Fork 2k
/
conf.py
43 lines (39 loc) · 1.33 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- coding: utf-8 -*-
# Point Sphinx autodoc at our source
import os
import subprocess
import sys
sys.path.insert(0, os.path.abspath("../"))
project = "pydeck"
copyright = "2020, MIT License"
author = "Andrew Duberstein"
# The short X.Y version
version = "0.3"
# The full version, including alpha/beta/rc tags
release = "0.3.0"
# Extensions to generate documents from our docstrings here
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx_rtd_theme"]
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
language = None
exclude_patterns = ["_build"]
pygments_style = None
html_theme = "sphinx_rtd_theme"
html_static_path = ["gallery/html"]
htmlhelp_basename = "pydeckdoc"
man_pages = [(master_doc, "pydeck", "pydeck Documentation", [author], 1)]
texinfo_documents = [
(master_doc, "pydeck", "pydeck Documentation", author, "pydeck", "Python wrapper for deck.gl", "Miscellaneous",),
]
epub_title = project
epub_exclude_files = ["search.html"]
autoclass_content = "both"
html_theme_options = {"includehidden": False}
add_module_names = False
def setup(app):
if os.environ.get("READTHEDOCS"):
print("RTD running in the following directory:", os.getcwd())
subprocess.call(
"{python} bindings/pydeck/docs/scripts/embed_examples.py".format(python=sys.executable), shell=True,
)