Skip to content

Commit 0554b5b

Browse files
authored
Merge pull request #5 from brentru/improved-ref-docs
Improved ref docs
2 parents d6704eb + 232d549 commit 0554b5b

File tree

8 files changed

+69
-11
lines changed

8 files changed

+69
-11
lines changed
File renamed without changes.

README.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Introduction
99
:target: https://discord.gg/nBQh6qu
1010
:alt: Discord
1111
12+
.. image:: https://travis-ci.org/adafruit/Adafruit_CircuitPython_AMG88xx.svg?branch=master
13+
:target: https://travis-ci.org/adafruit/Adafruit_CircuitPython_AMG88xx
14+
:alt: Build Status
15+
16+
1217
Adafruit CircuitPython module for the AMG88xx GRID-Eye IR 8x8 thermal camera.
1318

1419
Dependencies
@@ -65,13 +70,6 @@ Pixels can be then be read by doing:
6570
6671
print(amg.pixels)
6772
68-
API Reference
69-
=============
70-
71-
.. toctree::
72-
:maxdepth: 2
73-
74-
api
7573
7674
Contributing
7775
============

adafruit_amg88xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
"""
2424
`adafruit_amg88xx` - AMG88xx GRID-Eye IR 8x8 IR sensor
25-
====================================================
25+
======================================================
2626
This library supports the use of the AMG88xx in CircuitPython.
2727
2828
Author(s): Dean Miller, Scott Shawcroft for Adafruit Industries.

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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
import os
2020
import sys
21-
sys.path.insert(0, os.path.abspath('.'))
21+
sys.path.insert(0, os.path.abspath('..'))
2222

2323
# -- General configuration ------------------------------------------------
2424

@@ -54,7 +54,7 @@
5454
# source_encoding = 'utf-8-sig'
5555

5656
# The master toctree document.
57-
master_doc = 'README'
57+
master_doc = 'index'
5858

5959
# General information about the project.
6060
project = u'Adafruit AMG88xx Library'
@@ -89,7 +89,7 @@
8989
# List of patterns, relative to source directory, that match files and
9090
# directories to ignore when looking for source files.
9191
# This patterns also effect to html_static_path and html_extra_path
92-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
92+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md']
9393

9494
# The reST default role (used for this markup: `text`) to use for all
9595
# documents.
@@ -113,6 +113,12 @@
113113
# The name of the Pygments (syntax highlighting) style to use.
114114
pygments_style = 'sphinx'
115115

116+
# If true, `todo` and `todoList` produce output, else they produce nothing.
117+
todo_include_todos = False
118+
119+
# If this is True, todo emits a warning for each TODO entries. The default is False.
120+
todo_emit_warnings = True
121+
116122
# A list of ignored prefixes for module index sorting.
117123
# modindex_common_prefix = []
118124

docs/examples.rst

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

docs/index.rst

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

0 commit comments

Comments
 (0)