Skip to content

Commit 3d40f99

Browse files
committed
setup docs folder
1 parent a14bd1f commit 3d40f99

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

+12-3
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

@@ -26,7 +26,7 @@
2626
source_suffix = '.rst'
2727

2828
# The master toctree document.
29-
master_doc = 'README'
29+
master_doc = 'index'
3030

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

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

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

7376
# -- Options for HTML output ----------------------------------------------
7477

@@ -93,6 +96,12 @@
9396
# so a file named "default.css" will overwrite the builtin "default.css".
9497
html_static_path = ['_static']
9598

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

docs/examples.rst

+8
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/dotstar_simpletest.py
7+
:caption: examples/dotstar_simpletest.py
8+
:linenos:

docs/index.rst

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 DotStar <https://www.adafruit.com/category/885>
30+
31+
.. toctree::
32+
:caption: Other Links
33+
34+
Download <https://github.com/adafruit/Adafruit_CircuitPython_DotStar/releases/latest>
35+
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io>
36+
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60>
37+
Discord Chat <https://adafru.it/discord>
38+
Adafruit Learning System <https://learn.adafruit.com>
39+
Adafruit Blog <https://blog.adafruit.com>
40+
Adafruit Store <https://www.adafruit.com>
41+
42+
Indices and tables
43+
==================
44+
45+
* :ref:`genindex`
46+
* :ref:`modindex`
47+
* :ref:`search`

0 commit comments

Comments
 (0)