|
18 | 18 | #
|
19 | 19 | import os
|
20 | 20 | import sys
|
| 21 | + |
21 | 22 | # So autodoc can import our package
|
22 | 23 | sys.path.insert(0, os.path.abspath('../..'))
|
23 | 24 |
|
|
27 | 28 | nitpick_ignore = [
|
28 | 29 | # Format is ('sphinx reference type', 'string'), e.g.:
|
29 | 30 | ('py:obj', 'bytes-like'),
|
| 31 | + # Typevars aren't found, for some reason. |
| 32 | + ('py:class', 'ArgsT'), |
| 33 | + ('py:class', 'ArgsT.args'), |
| 34 | + ('py:class', 'ArgsT.kwargs'), |
| 35 | + ('py:class', 'ResultT'), |
| 36 | + ('py:class', 'outcome._impl.ResultT'), |
| 37 | + ('py:class', 'outcome._impl.ValueT'), |
30 | 38 | ]
|
31 | 39 |
|
32 | 40 | # -- General configuration ------------------------------------------------
|
|
76 | 84 | #
|
77 | 85 | # The short X.Y version.
|
78 | 86 | import outcome
|
| 87 | + |
79 | 88 | version = outcome.__version__
|
80 | 89 | # The full version, including alpha/beta/rc tags.
|
81 | 90 | release = version
|
|
101 | 110 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
102 | 111 | todo_include_todos = False
|
103 | 112 |
|
104 |
| - |
105 | 113 | # -- Options for HTML output ----------------------------------------------
|
106 | 114 |
|
107 | 115 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
|
113 | 121 | # testing, but also because if we don't then RTD will throw away our
|
114 | 122 | # html_theme_options.
|
115 | 123 | import sphinx_rtd_theme
|
| 124 | + |
116 | 125 | html_theme = 'sphinx_rtd_theme'
|
117 | 126 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
118 | 127 |
|
|
135 | 144 | # so a file named 'default.css' will overwrite the builtin 'default.css'.
|
136 | 145 | html_static_path = ['_static']
|
137 | 146 |
|
138 |
| - |
139 | 147 | # -- Options for HTMLHelp output ------------------------------------------
|
140 | 148 |
|
141 | 149 | # Output file base name for HTML help builder.
|
142 | 150 | htmlhelp_basename = 'outcomedoc'
|
143 | 151 |
|
144 |
| - |
145 | 152 | # -- Options for LaTeX output ---------------------------------------------
|
146 | 153 |
|
147 | 154 | latex_elements = {
|
|
166 | 173 | # (source start file, target name, title,
|
167 | 174 | # author, documentclass [howto, manual, or own class]).
|
168 | 175 | latex_documents = [
|
169 |
| - (master_doc, 'outcome.tex', 'Trio Documentation', |
170 |
| - author, 'manual'), |
| 176 | + (master_doc, 'outcome.tex', 'Trio Documentation', author, 'manual'), |
171 | 177 | ]
|
172 | 178 |
|
173 |
| - |
174 | 179 | # -- Options for manual page output ---------------------------------------
|
175 | 180 |
|
176 | 181 | # One entry per manual page. List of tuples
|
177 | 182 | # (source start file, name, description, authors, manual section).
|
178 |
| -man_pages = [ |
179 |
| - (master_doc, 'outcome', 'outcome Documentation', |
180 |
| - [author], 1) |
181 |
| -] |
182 |
| - |
| 183 | +man_pages = [(master_doc, 'outcome', 'outcome Documentation', [author], 1)] |
183 | 184 |
|
184 | 185 | # -- Options for Texinfo output -------------------------------------------
|
185 | 186 |
|
186 | 187 | # Grouping the document tree into Texinfo files. List of tuples
|
187 | 188 | # (source start file, target name, title, author,
|
188 | 189 | # dir menu entry, description, category)
|
189 | 190 | texinfo_documents = [
|
190 |
| - (master_doc, 'outcome', 'outcome Documentation', |
191 |
| - author, 'outcome', 'Capture the outcome of Python function call.', |
192 |
| - 'Miscellaneous'), |
| 191 | + ( |
| 192 | + master_doc, 'outcome', 'outcome Documentation', author, 'outcome', |
| 193 | + 'Capture the outcome of Python function call.', 'Miscellaneous' |
| 194 | + ), |
193 | 195 | ]
|
0 commit comments