Skip to content

Commit 69e1dbd

Browse files
committed
setup docs folder
1 parent d2cedce commit 69e1dbd

File tree

5 files changed

+67
-3
lines changed

5 files changed

+67
-3
lines changed

Diff for: docs/_static/favicon.ico

4.31 KB
Binary file not shown.

Diff for: api.rst renamed to docs/api.rst

File renamed without changes.

Diff for: 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

@@ -23,7 +23,7 @@
2323
source_suffix = '.rst'
2424

2525
# The master toctree document.
26-
master_doc = 'README'
26+
master_doc = 'index'
2727

2828
# General information about the project.
2929
project = u'Adafruit IRREMOTE Library'
@@ -49,7 +49,7 @@
4949
# List of patterns, relative to source directory, that match files and
5050
# directories to ignore when looking for source files.
5151
# This patterns also effect to html_static_path and html_extra_path
52-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
52+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env', 'CODE_OF_CONDUCT.md']
5353

5454
# The reST default role (used for this markup: `text`) to use for all
5555
# documents.
@@ -66,6 +66,9 @@
6666
# If true, `todo` and `todoList` produce output, else they produce nothing.
6767
todo_include_todos = False
6868

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

7073
# -- Options for HTML output ----------------------------------------------
7174

@@ -90,6 +93,12 @@
9093
# so a file named "default.css" will overwrite the builtin "default.css".
9194
html_static_path = ['_static']
9295

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

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

Diff for: 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+
CircuitPlayground Express <https://www.adafruit.com/product/3333>
30+
31+
.. toctree::
32+
:caption: Other Links
33+
34+
Download <https://github.com/adafruit/Adafruit_CircuitPython_IRRemote/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)