Code style fixed

This commit is contained in:
Nicolas 2025-06-06 16:36:55 +02:00
parent 3771cfad05
commit 3de52ae748
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ def write_dochtree(f: TextIOWrapper, title: str, items: list[str]):
f.write('```{toctree}\n') f.write('```{toctree}\n')
f.write(':maxdepth: 1\n') f.write(':maxdepth: 1\n')
f.write(f':caption: {title}:\n') f.write(f':caption: {title}:\n')
#f.write(':hidden:\n') # f.write(':hidden:\n')
for text in items: for text in items:
if not text.startswith('_'): if not text.startswith('_'):
f.write(f"{text}\n") f.write(f"{text}\n")
@ -55,11 +55,11 @@ if __name__ == "__main__":
f.write('# Classes and Modules\n\n') f.write('# Classes and Modules\n\n')
write_classes(f, ['BK*', 'WAGO_750_352'], 'pyhoff.devices', title='Bus coupler', 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, ['KL*'], 'pyhoff.devices', title='Beckhoff bus terminals')
write_classes(f, ['WAGO*'], 'pyhoff.devices', title='WAGO bus terminals', exclude=['WAGO_750_352']) 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, ['*Terminal*'], 'pyhoff.devices', title='Generic bus terminals')
write_classes(f, ['*'], 'pyhoff', title='Base classes', 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', write_classes(f, ['*'], 'pyhoff.modbus', title='Modbus',
description='This modbus implementation is used internally.') description='This modbus implementation is used internally.')