-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconf.py
91 lines (65 loc) · 2.15 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env python3
import datetime
import os
import sys
from importlib import metadata
from unittest import mock
sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../slapd"))
class Mock(mock.MagicMock):
@classmethod
def __getattr__(cls, name):
return mock.MagicMock()
MOCK_MODULES = ["ldap"]
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
# -- General configuration ------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.doctest",
"sphinx.ext.graphviz",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinx_issues",
]
templates_path = ["_templates"]
source_suffix = [".rst"]
master_doc = "index"
project = "slapd"
year = datetime.datetime.now().strftime("%Y")
copyright = f"{year}, python-ldap"
author = "python-ldap"
version = metadata.version("slapd")
exclude_patterns = []
pygments_style = "sphinx"
todo_include_todos = False
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
issues_uri = "https://github.com/python-ldap/python-slapd/issues/{issue}"
issues_pr_uri = "https://github.com/python-ldap/python-slapd/pull/{pr}"
issues_commit_uri = "https://github.com/python-ldap/python-slapd/commit/{commit}"
# -- Options for HTML output ----------------------------------------------
html_theme = "sphinx_rtd_theme"
html_static_path = []
# -- Options for HTMLHelp output ------------------------------------------
htmlhelp_basename = "slapddoc"
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {}
latex_documents = [
(master_doc, "slapd.tex", "slapd Documentation", "python-slapd", "manual")
]
# -- Options for manual page output ---------------------------------------
man_pages = [(master_doc, "slapd", "slapd Documentation", [author], 1)]
# -- Options for Texinfo output -------------------------------------------
texinfo_documents = [
(
master_doc,
"slapd",
"slapd Documentation",
author,
"slapd",
" Control a slapd process in a pythonic way",
"Miscellaneous",
)
]