|
21 | 21 | "sphinx.ext.todo", |
22 | 22 | ] |
23 | 23 |
|
| 24 | +# TODO: Please Read! |
24 | 25 | # Uncomment the below if you use native CircuitPython modules such as |
25 | 26 | # digitalio, micropython and busio. List the modules you use. Without it, the |
26 | 27 | # autodoc module docs will fail to generate with a warning. |
|
35 | 36 | "CircuitPython": ("https://docs.circuitpython.org/en/latest/", None), |
36 | 37 | } |
37 | 38 |
|
| 39 | +# Show the docstring from both the class and its __init__() method. |
| 40 | +autoclass_content = "both" |
| 41 | + |
38 | 42 | # Add any paths that contain templates here, relative to this directory. |
39 | 43 | templates_path = ["_templates"] |
40 | 44 |
|
|
72 | 76 | # List of patterns, relative to source directory, that match files and |
73 | 77 | # directories to ignore when looking for source files. |
74 | 78 | # This patterns also effect to html_static_path and html_extra_path |
75 | | -exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".env", "CODE_OF_CONDUCT.md"] |
| 79 | +exclude_patterns = [ |
| 80 | + "_build", |
| 81 | + "Thumbs.db", |
| 82 | + ".DS_Store", |
| 83 | + ".env", |
| 84 | + "CODE_OF_CONDUCT.md", |
| 85 | +] |
76 | 86 |
|
77 | 87 | # The reST default role (used for this markup: `text`) to use for all |
78 | 88 | # documents. |
|
92 | 102 | # If this is True, todo emits a warning for each TODO entries. The default is False. |
93 | 103 | todo_emit_warnings = True |
94 | 104 |
|
| 105 | +napoleon_numpy_docstring = False |
95 | 106 |
|
96 | 107 | # -- Options for HTML output ---------------------------------------------- |
97 | 108 |
|
98 | 109 | # The theme to use for HTML and HTML Help pages. See the documentation for |
99 | 110 | # a list of builtin themes. |
100 | 111 | # |
101 | | -on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
102 | | - |
103 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
104 | | - try: |
105 | | - import sphinx_rtd_theme |
| 112 | +import sphinx_rtd_theme |
106 | 113 |
|
107 | | - html_theme = "sphinx_rtd_theme" |
108 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), "."] |
109 | | - except ImportError: |
110 | | - html_theme = "default" |
111 | | - html_theme_path = ["."] |
112 | | -else: |
113 | | - html_theme_path = ["."] |
| 114 | +html_theme = "sphinx_rtd_theme" |
114 | 115 |
|
115 | 116 | # Add any paths that contain custom static files (such as style sheets) here, |
116 | 117 | # relative to this directory. They are copied after the builtin static files, |
117 | 118 | # so a file named "default.css" will overwrite the builtin "default.css". |
118 | 119 | html_static_path = ["_static"] |
119 | 120 |
|
| 121 | +# The name of an image file (relative to this directory) to use as a favicon of |
| 122 | +# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 123 | +# pixels large. |
| 124 | +# |
| 125 | +html_favicon = "_static/favicon.ico" |
| 126 | + |
120 | 127 | # Output file base name for HTML help builder. |
121 | 128 | htmlhelp_basename = "AdafruitNAU7802Librarydoc" |
122 | 129 |
|
123 | 130 | # -- Options for LaTeX output --------------------------------------------- |
124 | 131 |
|
125 | 132 | latex_elements = { |
126 | 133 | # The paper size ('letterpaper' or 'a4paper'). |
127 | | - # |
128 | 134 | # 'papersize': 'letterpaper', |
129 | 135 | # The font size ('10pt', '11pt' or '12pt'). |
130 | | - # |
131 | 136 | # 'pointsize': '10pt', |
132 | 137 | # Additional stuff for the LaTeX preamble. |
133 | | - # |
134 | 138 | # 'preamble': '', |
135 | 139 | # Latex figure (float) alignment |
136 | | - # |
137 | 140 | # 'figure_align': 'htbp', |
138 | 141 | } |
139 | 142 |
|
|
161 | 164 | "Adafruit NAU7802 Library Documentation", |
162 | 165 | [author], |
163 | 166 | 1, |
164 | | - ) |
| 167 | + ), |
165 | 168 | ] |
166 | 169 |
|
167 | 170 | # -- Options for Texinfo output ------------------------------------------- |
|
0 commit comments