Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
singlestore-labs
GitHub Repository: singlestore-labs/singlestoredb-python
Path: blob/main/docs/src/conf.py
469 views
1
# Configuration file for the Sphinx documentation builder.
2
#
3
# This file only contains a selection of the most common options. For a full
4
# list see the documentation:
5
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6
# -- Path setup --------------------------------------------------------------
7
# If extensions (or modules to document with autodoc) are in another directory,
8
# add these directories to sys.path here. If the directory is relative to the
9
# documentation root, use os.path.abspath to make it absolute, like shown here.
10
#
11
import os
12
import sys
13
sys.path.insert(0, os.path.abspath('../..'))
14
15
16
# -- Project information -----------------------------------------------------
17
18
project = 'SingleStoreDB'
19
copyright = '2022 SingleStore. All Rights Reserved'
20
author = 'SingleStore'
21
22
23
import singlestoredb as s2 # noqa: W291,E402
24
25
version = s2.__version__
26
release = s2.__version__
27
28
29
# -- General configuration ---------------------------------------------------
30
31
# Add any Sphinx extension module names here, as strings. They can be
32
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33
# ones.
34
extensions = [
35
'sphinx.ext.autosummary',
36
'sphinx.ext.napoleon',
37
'sphinx.ext.githubpages',
38
'IPython.sphinxext.ipython_directive',
39
'IPython.sphinxext.ipython_console_highlighting',
40
'sphinx.ext.intersphinx',
41
]
42
43
autosummary_generate = True
44
numpydoc_show_class_members = False
45
autodoc_default_flags = ['show-inheritance']
46
autoclass_content = 'class'
47
48
intersphinx_mapping = {
49
'python': ('https://docs.python.org/', None),
50
'pandas': ('http://pandas.pydata.org/pandas-docs/version/0.19.2/', None),
51
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
52
'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
53
'matplotlib': ('http://matplotlib.sourceforge.net/', None),
54
}
55
56
# Add any paths that contain templates here, relative to this directory.
57
templates_path = ['_templates']
58
59
# List of patterns, relative to source directory, that match files and
60
# directories to ignore when looking for source files.
61
# This pattern also affects html_static_path and html_extra_path.
62
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
63
64
65
# -- Options for HTML output -------------------------------------------------
66
67
import sphinx_rtd_theme # noqa: E402
68
69
html_theme = 'sphinx_rtd_theme'
70
71
html_context = {
72
'css_files': [
73
'_static/pygments.css',
74
'_static/css/theme.css',
75
'_static/custom.css',
76
],
77
}
78
79
# Theme options are theme-specific and customize the look and feel of a theme
80
# further. For a list of options available for each theme, see the
81
# documentation.
82
# html_theme_options = {}
83
84
# Add any paths that contain custom themes here, relative to this directory.
85
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
86
87
# Add any paths that contain custom static files (such as style sheets) here,
88
# relative to this directory. They are copied after the builtin static files,
89
# so a file named "default.css" will overwrite the builtin "default.css".
90
html_static_path = ['_static']
91
92
pygments_style = 'monokai'
93
# pygments_dark_style = 'monokai'
94
95