improved reference docs and doc structure

This commit is contained in:
brentru 2018-02-21 14:00:12 -05:00
parent d6704ebabd
commit 79745a3596
7 changed files with 66 additions and 10 deletions

3
.readthedocs.yml Normal file
View file

@ -0,0 +1,3 @@
python:
version: 3
requirements_file: requirements.txt

View file

@ -65,13 +65,6 @@ Pixels can be then be read by doing:
print(amg.pixels)
API Reference
=============
.. toctree::
:maxdepth: 2
api
Contributing
============

BIN
docs/_static/favicon.ico vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View file

@ -18,7 +18,7 @@
#
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
# -- General configuration ------------------------------------------------
@ -54,7 +54,7 @@ source_suffix = '.rst'
# source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'README'
master_doc = 'index'
# General information about the project.
project = u'Adafruit AMG88xx Library'
@ -89,7 +89,7 @@ language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md']
# The reST default role (used for this markup: `text`) to use for all
# documents.
@ -113,6 +113,12 @@ default_role = "any"
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
# If this is True, todo emits a warning for each TODO entries. The default is False.
todo_emit_warnings = True
# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []

8
docs/examples.rst Normal file
View file

@ -0,0 +1,8 @@
Pixel test
------------
Ensure your device works with this test:
.. literalinclude:: ../examples/pixel_test.py.py
:caption: examples/pixel_test.py.py
:linenos:

46
docs/index.rst Normal file
View file

@ -0,0 +1,46 @@
.. include:: ../README.rst
Table of Contents
=================
.. toctree::
:maxdepth: 4
:hidden:
self
.. toctree::
:caption: Examples
examples
.. toctree::
:caption: API Reference
:maxdepth: 3
api
.. toctree::
:caption: Tutorials
.. toctree::
:caption: Related Products
.. toctree::
:caption: Other Links
Download <https://github.com/adafruit/Adafruit_CircuitPython_AMG88xx/releases/latest>
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io>
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60>
Discord Chat <https://adafru.it/discord>
Adafruit Learning System <https://learn.adafruit.com>
Adafruit Blog <https://blog.adafruit.com>
Adafruit Store <https://www.adafruit.com>
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`