Skip to content

Commit

Permalink
Indent pre- and post-install shell scripts in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
blacklight committed Oct 23, 2023
1 parent 6d694f0 commit cea3055
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/source/_ext/add_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def add_actions(source: list[str], manifest: Integration, idx: int) -> int:

@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(
Expand Down
5 changes: 3 additions & 2 deletions platypush/plugins/assistant/google/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down

0 comments on commit cea3055

Please sign in to comment.