SIGN IN SIGN UP

Reduce usage of automodule in Layout docs section

Using automodule multiple times adds the same module docstring multiple
times, bugging out the TOC tree and links. Module docstring for
prompt_toolkit.layout should also be put in the leading section, not
under "The layout class itself".

This commit fixes the above by replacing the usage of `.. automodule::`
with `.. autoclass::`. The `..automodule::` clause is used only in the
leading section, where the module introduction text should land.
B
Blazej Michalik committed
28a82e630128bb80da3ce89182a480103dc366c7
Parent: 0d52661
Committed by Jonathan Slenders <jonathan@slenders.be> on 2/7/2021, 11:12:13 AM