-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconf.py
56 lines (42 loc) · 1.65 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
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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 = "pygscatalog"
copyright = "2024, PGS Catalog"
author = "PGS Catalog"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ["autoapi.extension"]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "alabaster"
html_static_path = ["_static"]
# use autoapi for packages that provide APIs (libraries)
autoapi_dirs = [
"../pgscatalog.corelib/src/pgscatalog",
"../pgscatalog.matchlib/src/pgscatalog",
]
# see _templates/autoapi/index.rst for autoapi fix
autoapi_template_dir = "_templates/autoapi"
autoapi_python_use_implicit_namespaces = True
autoapi_keep_files = True
# hide private members
autoapi_options = [
"members",
"undoc-members",
"show-inheritance",
"show-module-summary",
"imported-members",
]
autoapi_member_order = "groupwise"
def skip_submodules(app, what, name, obj, skip, options):
if what == "module":
skip = True
return skip
def setup(sphinx):
sphinx.connect("autoapi-skip-member", skip_submodules)