diff --git a/docs/conf.py b/docs/conf.py index 1a00ac736683..49d8ea30ac25 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,6 +47,7 @@ "sphinx.ext.linkcode", "cryptography-docs", "sphinx_rtd_theme", + "sphinx_inline_tabs", ] if spelling is not None: diff --git a/docs/index.rst b/docs/index.rst index 7086f80ee6e3..75a77f57c975 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -24,11 +24,21 @@ Challenges`_. Installation ------------ -You can install ``cryptography`` with ``pip``: -.. code-block:: console +To install ``cryptography``: + +.. tab:: ``pip`` + + .. code-block:: console + + $ pip install cryptography + +.. tab:: ``uv`` + + .. code-block:: console + + $ uv add cryptography - $ pip install cryptography See :doc:`Installation ` for more information. diff --git a/pyproject.toml b/pyproject.toml index 0378e78815e3..0a7e3e458309 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,7 +74,7 @@ test = [ "certifi >=2024", ] test-randomorder = ["pytest-randomly"] -docs = ["sphinx >=5.3.0", "sphinx-rtd-theme >=3.0.0; python_version >= '3.8'"] +docs = ["sphinx >=5.3.0", "sphinx-rtd-theme >=3.0.0; python_version >= '3.8'", "sphinx-inline-tabs"] docstest = ["pyenchant >=3", "readme-renderer >=30.0", "sphinxcontrib-spelling >=7.3.1"] sdist = ["build >=1.0.0"] # `click` included because its needed to type check `release.py`