diff --git a/docs/index.md b/docs/index.md index 35cf0f0b..e458adfa 100644 --- a/docs/index.md +++ b/docs/index.md @@ -57,50 +57,53 @@ Click, formatted with Rich, with minimal customisation required. ## Installation === "pip" - ```{.shell, .copy} + ```shell pip install rich-click ``` === "uv" - ```{.shell, .copy} + ```shell uv pip install rich-click ``` === "Rye" - ```{.shell, .copy} + ```shell rye add rich-click rye sync ``` === "Poetry" - ```{.shell, .copy} + ```shell poetry add rich-click ``` === "Pipenv" - ```{.shell, .copy} + ```shell pipenv install rich-click ``` === "conda" - [**rich-click**](https://anaconda.org/conda-forge/rich-click) is available via the conda-forge channel (see [docs](https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge)). - ```{.shell, .copy} + ```shell conda install rich-click ``` + !!! note + [**rich-click** is available](https://anaconda.org/conda-forge/rich-click) via the conda-forge channel (see [docs](https://conda-forge.org/docs/user/introduction.html#how-can-i-install-packages-from-conda-forge)). === "MacPorts" - This installation method is deprecated. - ```{.shell, .copy} + ```shell sudo port install py-rich-click ``` + !!! danger "Depreciated" + This installation method is deprecated. + ## Examples ### Simple example To use rich-click in your code, replace `import click` with `import rich_click as click` in your existing click CLI: -```{ .python .copy } +```python import rich_click as click @click.command() diff --git a/mkdocs.yml b/mkdocs.yml index 9b135a51..f5baf53d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,7 @@ theme: repo: fontawesome/brands/github features: - content.tabs.link + - content.code.copy - navigation.tabs - navigation.expand # - navigation.indexes