|
1 |
| -# -*- coding: utf-8 -*- |
2 |
| - |
3 | 1 | # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
|
4 | 2 | #
|
5 | 3 | # SPDX-License-Identifier: MIT
|
|
12 | 10 |
|
13 | 11 | # -- General configuration ------------------------------------------------
|
14 | 12 |
|
15 |
| -# Add any Sphinx extension module names here, as strings. They can be |
16 |
| -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
17 |
| -# ones. |
18 | 13 | extensions = [
|
19 | 14 | "sphinx.ext.autodoc",
|
20 | 15 | "sphinx.ext.intersphinx",
|
21 | 16 | "sphinx.ext.napoleon",
|
22 | 17 | "sphinx.ext.todo",
|
23 | 18 | ]
|
24 | 19 |
|
25 |
| -# Uncomment the below if you use native CircuitPython modules such as |
26 |
| -# digitalio, micropython and busio. List the modules you use. Without it, the |
27 |
| -# autodoc module docs will fail to generate with a warning. |
28 |
| -autodoc_mock_imports = ["displayio", "bitmaptools", "vectorio", "ulab", "terminalio"] |
29 |
| - |
30 | 20 | autodoc_preserve_defaults = True
|
31 | 21 |
|
32 |
| - |
33 | 22 | intersphinx_mapping = {
|
34 | 23 | "python": ("https://docs.python.org/3", None),
|
35 | 24 | "CircuitPython": ("https://docs.circuitpython.org/en/latest/", None),
|
36 | 25 | "ulab": ("https://micropython-ulab.readthedocs.io/en/latest/", None),
|
37 | 26 | }
|
38 | 27 |
|
| 28 | +autodoc_mock_imports = ["digitalio", "busio", "bitmaptools", "vectorio", "ulab"] |
39 | 29 | # Show the docstring from both the class and its __init__() method.
|
40 | 30 | autoclass_content = "both"
|
41 |
| - |
42 | 31 | # Add any paths that contain templates here, relative to this directory.
|
43 | 32 | templates_path = ["_templates"]
|
44 |
| - |
45 | 33 | source_suffix = ".rst"
|
46 |
| - |
47 |
| -# The master toctree document. |
48 | 34 | master_doc = "index"
|
49 |
| - |
50 | 35 | # General information about the project.
|
51 | 36 | project = "CircuitPython uplot Library"
|
52 | 37 | creation_year = "2023"
|
|
68 | 53 | # The full version, including alpha/beta/rc tags.
|
69 | 54 | release = "1.0"
|
70 | 55 |
|
71 |
| -# The language for content autogenerated by Sphinx. Refer to documentation |
72 |
| -# for a list of supported languages. |
73 |
| -# |
74 |
| -# This is also used if you do content translation via gettext catalogs. |
75 |
| -# Usually you set "language" from the command line for these cases. |
76 | 56 | language = "en"
|
77 | 57 |
|
78 | 58 | # List of patterns, relative to source directory, that match files and
|
|
86 | 66 | "CODE_OF_CONDUCT.md",
|
87 | 67 | ]
|
88 | 68 |
|
89 |
| -# The reST default role (used for this markup: `text`) to use for all |
90 |
| -# documents. |
91 |
| -# |
92 | 69 | default_role = "any"
|
93 |
| - |
94 |
| -# If true, '()' will be appended to :func: etc. cross-reference text. |
95 |
| -# |
96 | 70 | add_function_parentheses = True
|
97 |
| - |
98 |
| -# The name of the Pygments (syntax highlighting) style to use. |
99 | 71 | pygments_style = "sphinx"
|
100 |
| - |
101 | 72 | todo_include_todos = False
|
102 |
| - |
103 |
| -todo_emit_warnings = True |
104 |
| - |
| 73 | +todo_emit_warnings = False |
105 | 74 | napoleon_numpy_docstring = False
|
106 | 75 |
|
107 | 76 | # -- Options for HTML output ----------------------------------------------
|
|
136 | 105 |
|
137 | 106 | # Output file base name for HTML help builder.
|
138 | 107 | htmlhelp_basename = "CircuitPython_Uplot_Librarydoc"
|
139 |
| - |
140 |
| -# -- Options for LaTeX output --------------------------------------------- |
141 |
| - |
142 |
| -latex_elements = { |
143 |
| - # The paper size ('letterpaper' or 'a4paper'). |
144 |
| - # 'papersize': 'letterpaper', |
145 |
| - # The font size ('10pt', '11pt' or '12pt'). |
146 |
| - # 'pointsize': '10pt', |
147 |
| - # Additional stuff for the LaTeX preamble. |
148 |
| - # 'preamble': '', |
149 |
| - # Latex figure (float) alignment |
150 |
| - # 'figure_align': 'htbp', |
151 |
| -} |
152 |
| - |
153 |
| -# Grouping the document tree into LaTeX files. List of tuples |
154 |
| -# (source start file, target name, title, |
155 |
| -# author, documentclass [howto, manual, or own class]). |
156 |
| -latex_documents = [ |
157 |
| - ( |
158 |
| - master_doc, |
159 |
| - "CircuitPython_uplot_Library.tex", |
160 |
| - "CircuitPython uplot Library Documentation", |
161 |
| - author, |
162 |
| - "manual", |
163 |
| - ), |
164 |
| -] |
165 |
| - |
166 |
| -# -- Options for manual page output --------------------------------------- |
167 |
| - |
168 |
| -# One entry per manual page. List of tuples |
169 |
| -# (source start file, name, description, authors, manual section). |
170 |
| -man_pages = [ |
171 |
| - ( |
172 |
| - master_doc, |
173 |
| - "CircuitPython_uplot_Library", |
174 |
| - "CircuitPython uplot Library Documentation", |
175 |
| - [author], |
176 |
| - 1, |
177 |
| - ), |
178 |
| -] |
179 |
| - |
180 |
| -# -- Options for Texinfo output ------------------------------------------- |
181 |
| - |
182 |
| -# Grouping the document tree into Texinfo files. List of tuples |
183 |
| -# (source start file, target name, title, author, |
184 |
| -# dir menu entry, description, category) |
185 |
| -texinfo_documents = [ |
186 |
| - ( |
187 |
| - master_doc, |
188 |
| - "CircuitPython_uplot_Library", |
189 |
| - "CircuitPython uplot Library Documentation", |
190 |
| - author, |
191 |
| - "CircuitPython_uplot_Library", |
192 |
| - "One line description of project.", |
193 |
| - "Miscellaneous", |
194 |
| - ), |
195 |
| -] |
0 commit comments