Skip to content

Commit 38f1dc1

Browse files
committed
Updated documentation to resolve warnings introduced with the longer names
Updated requirements-docs.txt to include missing modules
1 parent b8c968c commit 38f1dc1

17 files changed

+79
-46
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ Version 1.5.1
3636
* Added REPR statements for all syncchronous clients
3737
* Added `isError` method to exceptions, Any response received can be tested for success before proceeding.
3838

39-
```
39+
"""
40+
4041
res = client.read_holding_registers(...)
4142
if not res.isError():
43+
4244
# proceed
45+
4346
else:
4447
# handle error or raise
45-
```
48+
49+
"""
50+
4651
* Add examples for MEI read device information request
4752

4853
Version 1.5.0

doc/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# Add any Sphinx extension module names here, as strings. They can be
4242
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4343
# ones.
44-
extensions = ['sphinx.ext.autodoc']
44+
extensions = ['sphinx.ext.autodoc', 'm2r']
4545

4646
# Add any paths that contain templates here, relative to this directory.
4747
templates_path = ['_templates']
@@ -104,7 +104,8 @@
104104
# Add any paths that contain custom static files (such as style sheets) here,
105105
# relative to this directory. They are copied after the builtin static files,
106106
# so a file named "default.css" will overwrite the builtin "default.css".
107-
html_static_path = ['_static']
107+
# html_static_path = ['_static']
108+
html_static_path = []
108109

109110
# Custom sidebar templates, must be a dictionary that maps document names
110111
# to template names.

doc/source/library/pymodbus.client.asynchronous.asyncio.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pymodbus\.client\.async\.asyncio package
2-
========================================
1+
pymodbus\.client\.asynchronous\.asyncio package
2+
===============================================
33

44
.. automodule:: pymodbus.client.asynchronous.asyncio
55
:members:

doc/source/library/pymodbus.client.asynchronous.factory.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pymodbus\.client\.async\.factory package
2-
========================================
1+
pymodbus\.client\.asynchronous\.factory package
2+
===============================================
33

44
.. automodule:: pymodbus.client.asynchronous.factory
55
:members:
@@ -9,24 +9,24 @@ pymodbus\.client\.async\.factory package
99
Submodules
1010
----------
1111

12-
pymodbus\.client\.async\.factory\.serial module
13-
-----------------------------------------------
12+
pymodbus\.client\.asynchronous\.factory\.serial module
13+
------------------------------------------------------
1414

1515
.. automodule:: pymodbus.client.asynchronous.factory.serial
1616
:members:
1717
:undoc-members:
1818
:show-inheritance:
1919

20-
pymodbus\.client\.async\.factory\.tcp module
21-
--------------------------------------------
20+
pymodbus\.client\.asynchronous\.factory\.tcp module
21+
---------------------------------------------------
2222

2323
.. automodule:: pymodbus.client.asynchronous.factory.tcp
2424
:members:
2525
:undoc-members:
2626
:show-inheritance:
2727

28-
pymodbus\.client\.async\.factory\.udp module
29-
--------------------------------------------
28+
pymodbus\.client\.asynchronous\.factory\.udp module
29+
---------------------------------------------------
3030

3131
.. automodule:: pymodbus.client.asynchronous.factory.udp
3232
:members:

doc/source/library/pymodbus.client.asynchronous.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pymodbus\.client\.asynchronous package
2-
===============================
2+
======================================
33

44
.. automodule:: pymodbus.client.asynchronous
55
:members:
@@ -20,32 +20,32 @@ Subpackages
2020
Submodules
2121
----------
2222

23-
pymodbus\.client\.async\.serial module
24-
--------------------------------------
23+
pymodbus\.client\.asynchronous\.serial module
24+
---------------------------------------------
2525

2626
.. automodule:: pymodbus.client.asynchronous.serial
2727
:members:
2828
:undoc-members:
2929
:show-inheritance:
3030

31-
pymodbus\.client\.async\.tcp module
32-
-----------------------------------
31+
pymodbus\.client\.asynchronous\.tcp module
32+
------------------------------------------
3333

3434
.. automodule:: pymodbus.client.asynchronous.tcp
3535
:members:
3636
:undoc-members:
3737
:show-inheritance:
3838

39-
pymodbus\.client\.async\.thread module
40-
--------------------------------------
39+
pymodbus\.client\.asynchronous\.thread module
40+
---------------------------------------------
4141

4242
.. automodule:: pymodbus.client.asynchronous.thread
4343
:members:
4444
:undoc-members:
4545
:show-inheritance:
4646

47-
pymodbus\.client\.async\.udp module
48-
-----------------------------------
47+
pymodbus\.client\.asynchronous\.udp module
48+
------------------------------------------
4949

5050
.. automodule:: pymodbus.client.asynchronous.udp
5151
:members:

doc/source/library/pymodbus.client.asynchronous.schedulers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pymodbus\.client\.async\.schedulers package
2-
===========================================
1+
pymodbus\.client\.asynchronous\.schedulers package
2+
==================================================
33

44
.. automodule:: pymodbus.client.asynchronous.schedulers
55
:members:

doc/source/library/pymodbus.client.asynchronous.tornado.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pymodbus\.client\.async\.tornado package
2-
========================================
1+
pymodbus\.client\.asynchronous\.tornado package
2+
===============================================
33

44
.. automodule:: pymodbus.client.asynchronous.tornado
55
:members:

doc/source/library/pymodbus.client.asynchronous.twisted.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
pymodbus\.client\.async\.twisted package
2-
========================================
1+
pymodbus\.client\.asynchronous\.twisted package
2+
===============================================
33

44
.. automodule:: pymodbus.client.asynchronous.twisted
55
:members:

doc/source/library/pymodbus.server.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Submodules
1010
----------
1111

1212
pymodbus\.server\.asynchronous module
13-
------------------------------
13+
-------------------------------------
1414

1515
.. automodule:: pymodbus.server.asynchronous
1616
:members:

pymodbus/framer/ascii_framer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def processIncomingPacket(self, data, callback, unit, **kwargs):
163163
:param data: The new packet data
164164
:param callback: The function to send results to
165165
:param unit: Process if unit id matches, ignore otherwise (could be a
166-
list of unit ids (server) or single unit id(client/server))
166+
list of unit ids (server) or single unit id(client/server))
167167
:param single: True or False (If True, ignore unit address validation)
168168
169169
"""

0 commit comments

Comments
 (0)