Indent pre- and post-install shell scripts in docs.

This commit is contained in:
Fabio Manganiello 2023-10-23 17:48:29 +02:00
parent 6d694f02b4
commit cea3055369
2 changed files with 9 additions and 3 deletions
docs/source/_ext

View file

@ -55,7 +55,12 @@ class IntegrationEnricher:
@staticmethod
def _shellify(title: str, cmd: str) -> str:
return f'**{title}**\n\n' + '.. code-block:: bash\n\n\t' + cmd + '\n\n'
return (
f'**{title}**\n\n'
+ '.. code-block:: bash\n\n'
+ tw.indent(cmd, '\t')
+ '\n\n'
)
@classmethod
def add_install_deps(