Skip to content

Commit

Permalink
add sphinx-tabs for better documention shell integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Gal committed Dec 14, 2021
1 parent b8bdad0 commit f2644de
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
"sphinxcontrib.spelling",
"sphinx_tabs.tabs",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
24 changes: 19 additions & 5 deletions docs/how-to-guides/shell-integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,30 @@ detailed information about how to setup the tab completion for these shells, ple
read the `shell completion <https://click.palletsprojects.com/en/8.0.x/shell-completion/>`_
documentation of click.

For example to activate tab completion for Zsh run the following command after installing
To activate tab completion for your supported shell run the following command after installing
Renku CLI:

.. code-block:: console
.. tabs::
.. tab:: bash

.. code-block:: console
$ eval "$(_RENKU_COMPLETE=bash_source renku)"
.. tab:: fish

.. code-block:: console
$ eval (env _RENKU_COMPLETE=fish_source renku)
.. tab:: zsh

$ eval "$(_RENKU_COMPLETE=zsh_source renku)"
.. code-block:: console
$ eval "$(_RENKU_COMPLETE=zsh_source renku)"
After this not only sub-commands of `renku` will be auto-completed using tab, but for example
in case of `renku workflow execute` the available ``Plans`` are going to be listed.
After this not only sub-commands of ``renku`` will be auto-completed using tab, but for example
in case of ``renku workflow execute`` the available ``Plans`` are going to be listed.

.. code-block:: console
Expand Down
Loading

0 comments on commit f2644de

Please sign in to comment.