Skip to content

Commit

Permalink
Adopt sphinx-inline-tabs
Browse files Browse the repository at this point in the history
Use it in one demo place to show how to install us with multiple installers
  • Loading branch information
alex committed Dec 6, 2024
1 parent 7a20576 commit b60d983
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 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.linkcode",
"cryptography-docs",
"sphinx_rtd_theme",
"sphinx_inline_tabs",
]

if spelling is not None:
Expand Down
16 changes: 13 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <installation>` for more information.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit b60d983

Please sign in to comment.