Skip to content

Commit 028ded4

Browse files
committed
add tabs for code examples in docs
1 parent e0725f5 commit 028ded4

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

docs/index.md

+18-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,24 @@ supports the following:
1919

2020
If you need only `modern-di` without integrations:
2121

22-
```shell
23-
pip install modern-di
24-
uv add modern-di
25-
poetry add modern-di
26-
```
22+
23+
=== "uv"
24+
25+
```bash
26+
uv add modern-di
27+
```
28+
29+
=== "pip"
30+
31+
```bash
32+
pip install modern-di
33+
```
34+
35+
=== "poetry"
36+
37+
```bash
38+
poetry add modern-di
39+
```
2740

2841
If you need to integrate with `fastapi` or `litestar`, then install `modern-di-fastapi` or `modern-di-litestar` accordingly.
2942

mkdocs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ markdown_extensions:
6969
anchor_linenums: true
7070
line_spans: __span
7171
pygments_lang_class: true
72+
- pymdownx.tabbed:
73+
alternate_style: true
7274
- pymdownx.inlinehilite
7375
- pymdownx.snippets
7476
- pymdownx.superfences

0 commit comments

Comments
 (0)