|
18 | 18 | #
|
19 | 19 | import os
|
20 | 20 | import sys
|
21 |
| -sys.path.insert(0, os.path.abspath('.')) |
| 21 | +sys.path.insert(0, os.path.abspath('..')) |
22 | 22 |
|
23 | 23 | # -- General configuration ------------------------------------------------
|
24 | 24 |
|
|
36 | 36 | 'sphinx.ext.intersphinx'
|
37 | 37 | ]
|
38 | 38 |
|
39 |
| -autodoc_mock_imports = [] |
| 39 | +# Uncomment the below if you use native CircuitPython modules such as |
| 40 | +# digitalio, micropython and busio. List the modules you use. Without it, the |
| 41 | +# autodoc module docs will fail to generate with a warning. |
| 42 | +autodoc_mock_imports = ["micropython", "adafruit_bus_device", "adafruit_register"] |
40 | 43 |
|
41 | 44 | # Mock out micropython ourselves.
|
42 |
| -import imp |
43 |
| -m = imp.new_module("micropython") |
44 |
| -m.const = lambda x: x |
45 |
| -sys.modules["micropython"] = m |
| 45 | +#import imp |
| 46 | +#m = imp.new_module("micropython") |
| 47 | +#m.const = lambda x: x |
| 48 | +#sys.modules["micropython"] = m |
46 | 49 |
|
47 | 50 | # Add any paths that contain templates here, relative to this directory.
|
48 | 51 | templates_path = ['_templates']
|
49 | 52 |
|
50 | 53 | # The suffix(es) of source filenames.
|
51 | 54 | # You can specify multiple suffix as a list of string:
|
52 | 55 | #
|
53 |
| -source_suffix = ['.rst', '.md'] |
54 |
| -# source_suffix = '.rst' |
| 56 | +#source_suffix = ['.rst', '.md'] |
| 57 | +source_suffix = '.rst' |
55 | 58 |
|
56 | 59 | # The encoding of source files.
|
57 | 60 | #
|
58 | 61 | # source_encoding = 'utf-8-sig'
|
59 | 62 |
|
60 | 63 | # The master toctree document.
|
61 |
| -master_doc = 'README' |
| 64 | +master_doc = 'index' |
62 | 65 |
|
63 | 66 | # General information about the project.
|
64 | 67 | project = u'Adafruit\'s CCS811 Library'
|
|
93 | 96 | # List of patterns, relative to source directory, that match files and
|
94 | 97 | # directories to ignore when looking for source files.
|
95 | 98 | # This patterns also effect to html_static_path and html_extra_path
|
96 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 99 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md'] |
97 | 100 |
|
98 | 101 | # The reST default role (used for this markup: `text`) to use for all
|
99 | 102 | # documents.
|
|
126 | 129 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
127 | 130 | todo_include_todos = True
|
128 | 131 |
|
| 132 | +# If this is True, todo emits a warning for each TODO entries. The default is False. |
| 133 | +todo_emit_warnings = True |
| 134 | + |
129 | 135 |
|
130 | 136 | # -- Options for HTML output ----------------------------------------------
|
131 | 137 |
|
|
179 | 185 | # so a file named "default.css" will overwrite the builtin "default.css".
|
180 | 186 | html_static_path = ['_static']
|
181 | 187 |
|
| 188 | +# The name of an image file (relative to this directory) to use as a favicon of |
| 189 | +# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 190 | +# pixels large. |
| 191 | +# |
| 192 | +html_favicon = '_static/favicon.ico' |
| 193 | + |
182 | 194 | # Add any extra paths that contain custom files (such as robots.txt or
|
183 | 195 | # .htaccess) here, relative to this directory. These files are copied
|
184 | 196 | # directly to the root of the documentation.
|
|
0 commit comments