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

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(

View File

@ -56,8 +56,9 @@ class AssistantGooglePlugin(AssistantPlugin, RunnablePlugin):
.. note:: Since the Google Assistant library hasn't been updated in several
years, some of its dependencies are quite old and may break more recent
Python installations. Please refer to the comments in the [manifest
file](https://git.platypush.tech/platypush/platypush/src/branch/master/platypush/plugins/assistant/google/manifest.yaml)
Python installations. Please refer to the comments in the `manifest
file
<https://git.platypush.tech/platypush/platypush/src/branch/master/platypush/plugins/assistant/google/manifest.yaml>`_.
for more information on how to install the required dependencies, if
the automated ways fail.
"""