mirror of https://github.com/Nonannet/pyhoff.git
Code style fixed
This commit is contained in:
parent
3771cfad05
commit
3de52ae748
|
@ -40,7 +40,7 @@ def write_dochtree(f: TextIOWrapper, title: str, items: list[str]):
|
|||
f.write('```{toctree}\n')
|
||||
f.write(':maxdepth: 1\n')
|
||||
f.write(f':caption: {title}:\n')
|
||||
#f.write(':hidden:\n')
|
||||
# f.write(':hidden:\n')
|
||||
for text in items:
|
||||
if not text.startswith('_'):
|
||||
f.write(f"{text}\n")
|
||||
|
@ -55,11 +55,11 @@ if __name__ == "__main__":
|
|||
f.write('# Classes and Modules\n\n')
|
||||
|
||||
write_classes(f, ['BK*', 'WAGO_750_352'], 'pyhoff.devices', title='Bus coupler',
|
||||
description='These classes are bus couplers and are used to connect the IO bus terminals to a Ethernet interface.')
|
||||
description='These classes are bus couplers and are used to connect the IO bus terminals to a Ethernet interface.')
|
||||
write_classes(f, ['KL*'], 'pyhoff.devices', title='Beckhoff bus terminals')
|
||||
write_classes(f, ['WAGO*'], 'pyhoff.devices', title='WAGO bus terminals', exclude=['WAGO_750_352'])
|
||||
write_classes(f, ['*Terminal*'], 'pyhoff.devices', title='Generic bus terminals')
|
||||
write_classes(f, ['*'], 'pyhoff', title='Base classes',
|
||||
description='These classes are base classes for devices and are typically not used directly.')
|
||||
description='These classes are base classes for devices and are typically not used directly.')
|
||||
write_classes(f, ['*'], 'pyhoff.modbus', title='Modbus',
|
||||
description='This modbus implementation is used internally.')
|
||||
description='This modbus implementation is used internally.')
|
||||
|
|
Loading…
Reference in New Issue