From cea3055369b0234ba1e817d9d5e7dec4e5e545cd Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 23 Oct 2023 17:48:29 +0200 Subject: [PATCH] Indent pre- and post-install shell scripts in docs. --- docs/source/_ext/add_dependencies.py | 7 ++++++- platypush/plugins/assistant/google/__init__.py | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/source/_ext/add_dependencies.py b/docs/source/_ext/add_dependencies.py index 2a7b4891a4..6f0cf5f493 100644 --- a/docs/source/_ext/add_dependencies.py +++ b/docs/source/_ext/add_dependencies.py @@ -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( diff --git a/platypush/plugins/assistant/google/__init__.py b/platypush/plugins/assistant/google/__init__.py index 52758cb5cc..a5ce3b4afe 100644 --- a/platypush/plugins/assistant/google/__init__.py +++ b/platypush/plugins/assistant/google/__init__.py @@ -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 + `_. for more information on how to install the required dependencies, if the automated ways fail. """