|
16 | 16 | import sys
|
17 | 17 | sys.path.insert(0, os.path.abspath(os.path.dirname(__file__) + '/..'))
|
18 | 18 |
|
| 19 | +from dbus_next.__version__ import __title__, __author__, __version__, __copyright__ |
| 20 | +_project_slug = __title__.replace('_', '-') |
19 | 21 |
|
20 | 22 | # -- Project information -----------------------------------------------------
|
21 | 23 |
|
22 |
| -project = 'dbus-next' |
23 |
| -copyright = '2019, Tony Crisci' |
24 |
| -author = 'Tony Crisci' |
| 24 | +project = _project_slug |
| 25 | +copyright = __copyright__ |
| 26 | +author = __author__ |
25 | 27 |
|
26 | 28 | # The short X.Y version
|
27 |
| -version = '' |
| 29 | +version = __version__ |
28 | 30 | # The full version, including alpha/beta/rc tags
|
29 |
| -release = '0.1.3' |
30 |
| - |
| 31 | +release = __version__ |
31 | 32 |
|
32 | 33 | # -- General configuration ---------------------------------------------------
|
33 | 34 |
|
|
39 | 40 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
40 | 41 | # ones.
|
41 | 42 | extensions = [
|
42 |
| - 'sphinx.ext.autodoc', |
43 |
| - 'sphinx.ext.githubpages', |
44 |
| - 'sphinxcontrib.asyncio', |
45 |
| - 'sphinxcontrib.fulltoc' |
| 43 | + 'sphinx.ext.autodoc', 'sphinx.ext.githubpages', 'sphinxcontrib.asyncio', 'sphinxcontrib.fulltoc' |
46 | 44 | ]
|
47 | 45 |
|
48 | 46 | # Add any paths that contain templates here, relative to this directory.
|
|
72 | 70 | # The name of the Pygments (syntax highlighting) style to use.
|
73 | 71 | pygments_style = 'sphinx'
|
74 | 72 |
|
75 |
| - |
76 | 73 | # -- Options for HTML output -------------------------------------------------
|
77 | 74 |
|
78 | 75 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
|
101 | 98 | #
|
102 | 99 | # html_sidebars = {}
|
103 | 100 |
|
104 |
| - |
105 | 101 | # -- Options for HTMLHelp output ---------------------------------------------
|
106 | 102 |
|
107 | 103 | # Output file base name for HTML help builder.
|
108 | 104 | htmlhelp_basename = 'dbus-nextdoc'
|
109 | 105 |
|
110 |
| - |
111 | 106 | # -- Options for LaTeX output ------------------------------------------------
|
112 | 107 |
|
113 | 108 | latex_elements = {
|
|
132 | 127 | # (source start file, target name, title,
|
133 | 128 | # author, documentclass [howto, manual, or own class]).
|
134 | 129 | latex_documents = [
|
135 |
| - (master_doc, 'dbus-next.tex', 'dbus-next Documentation', |
136 |
| - 'Tony Crisci', 'manual'), |
| 130 | + (master_doc, 'dbus-next.tex', 'dbus-next Documentation', __author__, 'manual'), |
137 | 131 | ]
|
138 | 132 |
|
139 |
| - |
140 | 133 | # -- Options for manual page output ------------------------------------------
|
141 | 134 |
|
142 | 135 | # One entry per manual page. List of tuples
|
143 | 136 | # (source start file, name, description, authors, manual section).
|
144 |
| -man_pages = [ |
145 |
| - (master_doc, 'dbus-next', 'dbus-next Documentation', |
146 |
| - [author], 1) |
147 |
| -] |
148 |
| - |
| 137 | +man_pages = [(master_doc, _project_slug, 'dbus-next Documentation', [author], 1)] |
149 | 138 |
|
150 | 139 | # -- Options for Texinfo output ----------------------------------------------
|
151 | 140 |
|
152 | 141 | # Grouping the document tree into Texinfo files. List of tuples
|
153 | 142 | # (source start file, target name, title, author,
|
154 | 143 | # dir menu entry, description, category)
|
155 | 144 | texinfo_documents = [
|
156 |
| - (master_doc, 'dbus-next', 'dbus-next Documentation', |
157 |
| - author, 'dbus-next', 'One line description of project.', |
158 |
| - 'Miscellaneous'), |
| 145 | + (master_doc, _project_slug, 'dbus-next Documentation', author, _project_slug, |
| 146 | + 'One line description of project.', 'Miscellaneous'), |
159 | 147 | ]
|
160 | 148 |
|
161 |
| - |
162 | 149 | # -- Extension configuration -------------------------------------------------
|
0 commit comments