Skip to content

Commit d53a868

Browse files
committed
Use index with an include to include the README but not all of the toc stuff that GitHub doesn't render.
1 parent 96fcb89 commit d53a868

File tree

4 files changed

+54
-52
lines changed

4 files changed

+54
-52
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ script:
2828
- pylint adafruit_pcf8523.py
2929
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py)
3030
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-pcf8523 --library_location .
31-
- sphinx-build -E -W -c docs -b html . _build/html
31+
- cd docs && sphinx-build -E -W -b html . _build/html

README.rst

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ temperature compensated alternative, please check out the
2727
If you need a DS1307 for compatibility reasons, check out our
2828
`DS1307 RTC breakout <https://www.adafruit.com/products/3296>`_.
2929

30-
.. image:: docs/_static/3295-00.jpg
30+
.. image:: _static/3295-00.jpg
31+
:alt: PCF8523 Breakout Board
3132

3233
Dependencies
3334
=============
@@ -114,52 +115,3 @@ After the RTC is set, you retrieve the alarm status by reading the
114115
if rtc.alarm_status:
115116
print("wake up!")
116117
rtc.alarm_status = False
117-
118-
Table of Contents
119-
=================
120-
121-
.. toctree::
122-
:maxdepth: 4
123-
124-
self
125-
126-
.. toctree::
127-
:caption: Examples
128-
129-
docs/examples
130-
131-
.. toctree::
132-
:caption: API Reference
133-
:maxdepth: 3
134-
135-
docs/api
136-
137-
138-
.. toctree::
139-
:caption: Tutorials
140-
141-
Adafruit PCF8523 Real Time Clock <https://learn.adafruit.com/adafruit-pcf8523-real-time-clock?view=all>
142-
Adafruit Adalogger FeatherWing <https://learn.adafruit.com/adafruit-adalogger-featherwing?view=all>
143-
144-
.. toctree::
145-
:caption: Related Products
146-
147-
Adafruit PCF8523 Real Time Clock Breakout <https://www.adafruit.com/product/3295>
148-
Adafruit Adalogger FeatherWing - RTC + SD <https://www.adafruit.com/product/2922>
149-
150-
.. toctree::
151-
:caption: Other Links
152-
153-
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io>
154-
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60>
155-
Discord Chat <https://adafru.it/discord>
156-
Adafruit Learning System <https://learn.adafruit.com>
157-
Adafruit Blog <https://blog.adafruit.com>
158-
Adafruit Store <https://www.adafruit.com>
159-
160-
Indices and tables
161-
==================
162-
163-
* :ref:`genindex`
164-
* :ref:`modindex`
165-
* :ref:`search`

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# source_encoding = 'utf-8-sig'
5656

5757
# The master toctree document.
58-
master_doc = 'README'
58+
master_doc = 'index'
5959

6060
# General information about the project.
6161
project = u'Adafruit\'s PCF8523 RTC Library'

docs/index.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.. include:: ../README.rst
2+
3+
Table of Contents
4+
=================
5+
6+
.. toctree::
7+
:maxdepth: 4
8+
9+
self
10+
11+
.. toctree::
12+
:caption: Examples
13+
14+
examples
15+
16+
.. toctree::
17+
:caption: API Reference
18+
:maxdepth: 3
19+
20+
api
21+
22+
23+
.. toctree::
24+
:caption: Tutorials
25+
26+
Adafruit PCF8523 Real Time Clock <https://learn.adafruit.com/adafruit-pcf8523-real-time-clock?view=all>
27+
Adafruit Adalogger FeatherWing <https://learn.adafruit.com/adafruit-adalogger-featherwing?view=all>
28+
29+
.. toctree::
30+
:caption: Related Products
31+
32+
Adafruit PCF8523 Real Time Clock Breakout <https://www.adafruit.com/product/3295>
33+
Adafruit Adalogger FeatherWing - RTC + SD <https://www.adafruit.com/product/2922>
34+
35+
.. toctree::
36+
:caption: Other Links
37+
38+
CircuitPython Reference Documentation <https://circuitpython.readthedocs.io>
39+
CircuitPython Support Forum <https://forums.adafruit.com/viewforum.php?f=60>
40+
Discord Chat <https://adafru.it/discord>
41+
Adafruit Learning System <https://learn.adafruit.com>
42+
Adafruit Blog <https://blog.adafruit.com>
43+
Adafruit Store <https://www.adafruit.com>
44+
45+
Indices and tables
46+
==================
47+
48+
* :ref:`genindex`
49+
* :ref:`modindex`
50+
* :ref:`search`

0 commit comments

Comments
 (0)