Skip to content

Commit a493d89

Browse files
committed
setup new docs folder and files
1 parent c72d18c commit a493d89

File tree

5 files changed

+67
-3
lines changed

5 files changed

+67
-3
lines changed

docs/_static/favicon.ico

4.31 KB
Binary file not shown.

api.rst renamed to docs/api.rst

File renamed without changes.

conf.py renamed to docs/conf.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44
import sys
5-
sys.path.insert(0, os.path.abspath('.'))
5+
sys.path.insert(0, os.path.abspath('..'))
66

77
# -- General configuration ------------------------------------------------
88

@@ -25,7 +25,7 @@
2525
source_suffix = '.rst'
2626

2727
# The master toctree document.
28-
master_doc = 'README'
28+
master_doc = 'index'
2929

3030
# General information about the project.
3131
project = u'Adafruit CircuitPython NeoPixel Library'
@@ -51,7 +51,7 @@
5151
# List of patterns, relative to source directory, that match files and
5252
# directories to ignore when looking for source files.
5353
# This patterns also effect to html_static_path and html_extra_path
54-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
54+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md']
5555

5656
# The reST default role (used for this markup: `text`) to use for all
5757
# documents.
@@ -68,6 +68,8 @@
6868
# If true, `todo` and `todoList` produce output, else they produce nothing.
6969
todo_include_todos = False
7070

71+
# If this is True, todo emits a warning for each TODO entries. The default is False.
72+
todo_emit_warnings = True
7173

7274
# -- Options for HTML output ----------------------------------------------
7375

@@ -92,6 +94,12 @@
9294
# so a file named "default.css" will overwrite the builtin "default.css".
9395
html_static_path = ['_static']
9496

97+
# The name of an image file (relative to this directory) to use as a favicon of
98+
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
99+
# pixels large.
100+
#
101+
html_favicon = '_static/favicon.ico'
102+
95103
# Output file base name for HTML help builder.
96104
htmlhelp_basename = 'AdafruitNEOPIXEL2Librarydoc'
97105

docs/examples.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Simple test
2+
------------
3+
4+
Ensure your device works with this simple test.
5+
6+
.. literalinclude:: ../examples/neopixel_simpletest.py
7+
:caption: examples/neopixel_simpletest.py
8+
:linenos:

docs/index.rst

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.. include:: ../README.rst
2+
3+
Table of Contents
4+
=================
5+
6+
.. toctree::
7+
:maxdepth: 4
8+
:hidden:
9+
10+
self
11+
12+
.. toctree::
13+
:caption: Examples
14+
15+
examples
16+
17+
.. toctree::
18+
:caption: API Reference
19+
:maxdepth: 3
20+
21+
api
22+
23+
.. toctree::
24+
:caption: Tutorials
25+
26+
.. toctree::
27+
:caption: Related Products
28+
29+
Adafruit NeoPixel Products <http://www.adafruit.com/category/168>
30+
31+
.. toctree::
32+
:caption: Other Links
33+
34+
Download <https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel/releases/latest>
35+
Adafruit NeoPixel Überguide <https://learn.adafruit.com/adafruit-neopixel-uberguide>
36+
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io>
37+
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60>
38+
Discord Chat <https://adafru.it/discord>
39+
Adafruit Learning System <https://learn.adafruit.com>
40+
Adafruit Blog <https://blog.adafruit.com>
41+
Adafruit Store <https://www.adafruit.com>
42+
43+
Indices and tables
44+
==================
45+
46+
* :ref:`genindex`
47+
* :ref:`modindex`
48+
* :ref:`search`

0 commit comments

Comments
 (0)