Skip to content

Commit 0cfffff

Browse files
committed
updates
1 parent 4eca732 commit 0cfffff

4 files changed

Lines changed: 29 additions & 22 deletions

File tree

assets/css/main.src.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,6 +2865,11 @@ html.dark .design-codeblock code {
28652865
display: none !important;
28662866
}
28672867

2868+
.design-choice--code .design-codeblock-wrap,
2869+
.design-choice--code .design-codeblock {
2870+
margin: 0;
2871+
}
2872+
28682873
.design-choice--code .design-codeblock-wrap {
28692874
display: block;
28702875
height: auto;

docs/quickstarts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ layout: radar
131131
</li>
132132
<li>
133133
<a class="design-link" href="/docs/uv">uv</a>
134-
<span class="design-list-meta">dotenvx run -- uv run</span>
134+
<span class="design-list-meta">uv add python-dotenvx</span>
135135
</li>
136136
{% endcapture %}
137137

docs/sdk/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ load_dotenv()
4646
{% endcapture %}
4747
{% include components/design-codeblock.html value=sdk_python_usage copy=false %}
4848

49-
<p class="design-paragraph">See the <a class="design-link" href="/docs/python/">Python</a> or <a class="design-link" href="/docs/flask/">Flask</a> quickstart for a full walkthrough.</p>
49+
<p class="design-paragraph">See the <a class="design-link" href="/docs/python/">Python</a>, <a class="design-link" href="/docs/flask/">Flask</a>, or <a class="design-link" href="/docs/uv/">uv</a> quickstart for a full walkthrough.</p>
5050
{% endcapture %}
5151
{% include components/design-step.html content=step_content %}
5252
</section>

docs/uv.md

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: docs-quickstart
33
title: "uv"
44
social_title: "Encrypt a .env file in uv"
5-
description: "Encrypt a .env file in a Python uv project with dotenvx, commit it safely, and inject its secrets at runtime."
5+
description: "Encrypt a .env file in a Python uv project with the Dotenvx SDK, commit it safely, and load its secrets at runtime."
66
icon: uv
77
permalink: /docs/uv/
88
redirect_from:
@@ -13,39 +13,41 @@ prerequisite_links:
1313
- label: Install uv
1414
href: https://github.com/astral-sh/uv#installation
1515
setup_title: "0. Setup"
16-
setup_lede: "Create uv project."
16+
setup_lede: "Create a uv project."
1717
setup_copy: |
1818
uv init hello-world
1919
cd hello-world
2020
setup: |
2121
$ uv init hello-world
2222
$ cd hello-world
23-
install_copy: "curl -sfS https://dotenvx.sh | sh"
24-
install: |
25-
$ curl -sfS https://dotenvx.sh | sh
23+
install_lede: "Get the Dotenvx Python SDK."
24+
install_after_lede: "And the CLI to encrypt files."
25+
inject_lede: "Then inject your encrypted secrets at runtime."
26+
install_copy: "uv add python-dotenvx"
27+
install_after_copy: "curl -sfS https://dotenvx.sh | sh"
2628
encrypt_copy: "dotenvx encrypt"
27-
encrypt: |
28-
$ dotenvx encrypt
29-
inject_lede: "Then inject your encrypted secrets at runtime with `dotenvx run` into a uv project."
3029
inject_copy: |
3130
import os
31+
from dotenvx import load_dotenv
3232
33-
def main():
34-
print(f"Hello {os.getenv('HELLO')}")
35-
33+
load_dotenv()
3634
37-
if __name__ == "__main__":
38-
main()
35+
print(f"HELLO: {os.getenv('HELLO')}")
36+
install: |
37+
$ uv add python-dotenvx
38+
install_after: |
39+
$ curl -sfS https://dotenvx.sh | sh
40+
encrypt: |
41+
$ dotenvx encrypt
3942
inject: |
4043
import os
44+
from dotenvx import load_dotenv
4145
42-
def main():
43-
print(f"Hello {os.getenv('HELLO')}")
44-
46+
load_dotenv()
4547
46-
if __name__ == "__main__":
47-
main()
48-
inject_after_copy: "dotenvx run -- uv run main.py"
48+
print(f"HELLO: {os.getenv('HELLO')}")
49+
inject_after_lede: "Run it with uv."
50+
inject_after_copy: "uv run main.py"
4951
inject_after: |
50-
$ dotenvx run -- uv run main.py
52+
$ uv run main.py
5153
---

0 commit comments

Comments
 (0)