Add ToCs for doc pages (#380)

This commit is contained in:
Teemu R 2022-10-18 19:08:10 +02:00 committed by GitHub
parent f493fa1dca
commit 2eecf39bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 10 deletions

View File

@ -1,7 +1,7 @@
Command-line usage
==================
The package is shipped with a console tool named kasa, please refer to ``kasa --help`` for detailed usage.
The package is shipped with a console tool named ``kasa``, refer to ``kasa --help`` for detailed usage.
The device to which the commands are sent is chosen by ``KASA_HOST`` environment variable or passing ``--host <address>`` as an option.
To see what is being sent to and received from the device, specify option ``--debug``.

View File

@ -9,6 +9,9 @@ This page aims to provide some details on the design and internals of this libra
You might be interested in this if you want to improve this library,
or if you are just looking to access some information that is not currently exposed.
.. contents:: Contents
:local:
.. _update_cycle:
Update Cycle

View File

@ -1,16 +1,11 @@
Discovering devices
===================
.. code-block::
import asyncio
from kasa import Discover
devices = asyncio.run(Discover.discover())
for addr, dev in devices.items():
asyncio.run(dev.update())
print(f"{addr} >> {dev}")
.. contents:: Contents
:local:
API documentation
*****************
.. autoclass:: kasa.Discover
:members:

View File

@ -1,6 +1,9 @@
Bulbs
===========
.. contents:: Contents
:local:
Supported features
******************

View File

@ -3,6 +3,12 @@
Common API
==========
.. contents:: Contents
:local:
SmartDevice class
*****************
The basic functionalities of all supported devices are accessible using the common :class:`SmartDevice` base class.
The property accesses use the data obtained before by awaiting :func:`SmartDevice.update()`.

View File

@ -1,6 +1,10 @@
Dimmers
=======
.. contents:: Contents
:local:
.. note::
Feel free to open a pull request to improve the documentation!

View File

@ -1,6 +1,9 @@
Light strips
============
.. contents:: Contents
:local:
.. note::
Feel free to open a pull request to improve the documentation!

View File

@ -1,6 +1,9 @@
Plugs
=====
.. contents:: Contents
:local:
.. note::
Feel free to open a pull request to improve the documentation!

View File

@ -1,6 +1,9 @@
Smart strips
============
.. contents:: Contents
:local:
.. note::
Feel free to open a pull request to improve the documentation!