|
2 | 2 |
|
3 | 3 | import os
|
4 | 4 | import sys
|
5 |
| -sys.path.insert(0, os.path.abspath('.')) |
| 5 | +sys.path.insert(0, os.path.abspath('..')) |
6 | 6 |
|
7 | 7 | # -- General configuration ------------------------------------------------
|
8 | 8 |
|
|
15 | 15 | 'sphinx.ext.viewcode',
|
16 | 16 | ]
|
17 | 17 |
|
| 18 | +# Uncomment the below if you use native CircuitPython modules such as |
| 19 | +# digitalio, micropython and busio. List the modules you use. Without it, the |
| 20 | +# autodoc module docs will fail to generate with a warning. |
| 21 | +autodoc_mock_imports = ["micropython", "adafruit_bus_device"] |
| 22 | + |
18 | 23 | intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/bus_device/en/latest/', None),'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
|
19 | 24 |
|
20 | 25 | # Add any paths that contain templates here, relative to this directory.
|
|
23 | 28 | source_suffix = '.rst'
|
24 | 29 |
|
25 | 30 | # The master toctree document.
|
26 |
| -master_doc = 'README' |
| 31 | +master_doc = 'index' |
27 | 32 |
|
28 | 33 | # General information about the project.
|
29 | 34 | project = u'Adafruit CIRCUITPYTHON_TSL2561 Library'
|
30 | 35 | copyright = u'2017 Carter Nelson'
|
31 | 36 | author = u'Carter Nelson'
|
32 | 37 |
|
33 |
| -autodoc_mock_imports = ['micropython'] |
34 |
| - |
35 | 38 | # The version info for the project you're documenting, acts as replacement for
|
36 | 39 | # |version| and |release|, also used in various other places throughout the
|
37 | 40 | # built documents.
|
|
51 | 54 | # List of patterns, relative to source directory, that match files and
|
52 | 55 | # directories to ignore when looking for source files.
|
53 | 56 | # This patterns also effect to html_static_path and html_extra_path
|
54 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 57 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md'] |
55 | 58 |
|
56 | 59 | # The reST default role (used for this markup: `text`) to use for all
|
57 | 60 | # documents.
|
|
68 | 71 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
69 | 72 | todo_include_todos = False
|
70 | 73 |
|
| 74 | +# If this is True, todo emits a warning for each TODO entries. The default is False. |
| 75 | +todo_emit_warnings = True |
| 76 | + |
71 | 77 |
|
72 | 78 | # -- Options for HTML output ----------------------------------------------
|
73 | 79 |
|
|
92 | 98 | # so a file named "default.css" will overwrite the builtin "default.css".
|
93 | 99 | html_static_path = ['_static']
|
94 | 100 |
|
| 101 | +# The name of an image file (relative to this directory) to use as a favicon of |
| 102 | +# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 103 | +# pixels large. |
| 104 | +# |
| 105 | +html_favicon = '_static/favicon.ico' |
| 106 | + |
95 | 107 | # Output file base name for HTML help builder.
|
96 | 108 | htmlhelp_basename = 'AdafruitCIRCUITPYTHON_TSL2561Librarydoc'
|
97 | 109 |
|
|
128 | 140 | # One entry per manual page. List of tuples
|
129 | 141 | # (source start file, name, description, authors, manual section).
|
130 | 142 | man_pages = [
|
131 |
| - (master_doc, 'adafruitCIRCUITPYTHON_TSL2561library', u'Adafruit CIRCUITPYTHON_TSL2561 Library Documentation', |
| 143 | + (master_doc, 'AdafruitCIRCUITPYTHON_TSL2561library', u'Adafruit CIRCUITPYTHON_TSL2561 Library Documentation', |
132 | 144 | [author], 1)
|
133 | 145 | ]
|
134 | 146 |
|
|
0 commit comments