Skip to content

Commit 739fcb5

Browse files
committed
update
1 parent 360227d commit 739fcb5

5 files changed

Lines changed: 34 additions & 37 deletions

File tree

docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ layout: radar
141141
<div class="docs-intro-cards">
142142
<p class="design-list-title">SDKs</p>
143143
<div class="design-settings-grid">
144-
{% include components/design-settings-tile.html href="/docs/sdk/nodejs" label="Node" icon="nodejs" %}
144+
{% include components/design-settings-tile.html href="/docs/sdk/nodejs" label="Node.js" icon="nodejs" %}
145145
{% include components/design-settings-tile.html href="/docs/sdk/python" label="Python" icon="python" %}
146146
{% include components/design-settings-tile.html href="/docs/sdk/ruby" label="Ruby" icon="ruby" %}
147147
{% include components/design-settings-tile.html href="/docs/sdk/rust" label="Rust" icon="rust" %}

docs/python.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,38 @@
22
layout: docs-quickstart
33
title: "Python"
44
social_title: "Encrypt a .env file in Python"
5-
description: "Encrypt a .env file in Python with dotenvx, commit it safely, and inject its secrets at runtime."
5+
description: "Encrypt a .env file in Python with the Dotenvx SDK, commit it safely, and load its secrets at runtime."
66
icon: python
77
permalink: /docs/python/
88
redirect_from:
99
- /docs/languages/python
1010
- /docs/languages/python/
1111
- /docs/secrets-in-python/
1212
- /docs/secrets-in-python
13-
install_copy: "curl -sfS https://dotenvx.sh | sh"
13+
install_lede: "Get the Dotenvx Python SDK."
14+
install_after_lede: "And the CLI to encrypt files."
15+
inject_lede: "Then inject your encrypted secrets at runtime."
16+
install_copy: "pip install python-dotenvx"
17+
install_after_copy: "curl -sfS https://dotenvx.sh | sh"
1418
encrypt_copy: "dotenvx encrypt"
15-
install: |
16-
$ curl -sfS https://dotenvx.sh | sh
17-
encrypt: |
18-
$ dotenvx encrypt
19-
inject_lede: |
20-
Then inject your encrypted secrets at runtime with `dotenvx run`.
2119
inject_copy: |
2220
import os
21+
from dotenvx import load_dotenv
22+
23+
load_dotenv()
2324
2425
print(f"HELLO: {os.getenv('HELLO')}")
26+
install: |
27+
$ pip install python-dotenvx
28+
install_after: |
29+
$ curl -sfS https://dotenvx.sh | sh
30+
encrypt: |
31+
$ dotenvx encrypt
2532
inject: |
2633
import os
34+
from dotenvx import load_dotenv
35+
36+
load_dotenv()
2737
2838
print(f"HELLO: {os.getenv('HELLO')}")
29-
inject_after_copy: |
30-
dotenvx run -- python main.py
31-
inject_after: |
32-
$ dotenvx run -- python main.py
3339
---
34-

docs/sdk/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ layout: radar
2323
<div class="docs-cli-cards">
2424
<p class="design-list-title">Languages</p>
2525
<div class="design-settings-grid">
26-
{% include components/design-settings-tile.html href="/docs/sdk/nodejs" label="Node" icon="nodejs" %}
26+
{% include components/design-settings-tile.html href="/docs/sdk/nodejs" label="Node.js" icon="nodejs" %}
2727
{% include components/design-settings-tile.html href="/docs/sdk/python" label="Python" icon="python" %}
2828
{% include components/design-settings-tile.html href="/docs/sdk/ruby" label="Ruby" icon="ruby" %}
2929
{% include components/design-settings-tile.html href="/docs/sdk/rust" label="Rust" icon="rust" %}

docs/sdk/nodejs.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Node
2+
title: Node.js
33
description: Load and manage encrypted env from Node.js.
44
permalink: /docs/sdk/nodejs/
55
layout: radar
@@ -8,7 +8,7 @@ layout: radar
88
{% include components/docs-hero.html
99
eyebrow="SDKs"
1010
eyebrow_href="/docs/sdk"
11-
title="Node"
11+
title="Node.js"
1212
description="Load and manage encrypted env from Node.js."
1313
icon="nodejs"
1414
%}
@@ -45,6 +45,17 @@ $ npm install @dotenvx/dotenvx
4545
{% endcapture %}
4646
{% include components/design-step.html content=step_content %}
4747

48+
{% capture step_content %}
49+
<h2 class="design-page-title design-page-title--flush">Usage</h2>
50+
{% capture sdk_node_usage %}
51+
require('@dotenvx/dotenvx').config()
52+
{% endcapture %}
53+
{% include components/design-codeblock.html value=sdk_node_usage copy_text="require('@dotenvx/dotenvx').config()" %}
54+
55+
<p class="design-paragraph">See the <a class="design-link" href="/docs/nodejs/">Node.js quickstart</a> for a full walkthrough.</p>
56+
{% endcapture %}
57+
{% include components/design-step.html content=step_content %}
58+
4859
{% capture step_content %}
4960
{% capture sdk_methods_items %}
5061
<li><a class="design-link" href="/docs/sdk/nodejs/config/">config</a></li>
@@ -58,24 +69,5 @@ $ npm install @dotenvx/dotenvx
5869
%}
5970
{% endcapture %}
6071
{% include components/design-step.html content=step_content %}
61-
62-
{% capture step_content %}
63-
<h2 class="design-page-title design-page-title--flush">next-env</h2>
64-
<p class="design-paragraph"><a class="design-link" href="https://www.npmjs.com/package/@dotenvx/next-env" target="_blank" rel="noopener noreferrer"><code class="design-code">@dotenvx/next-env</code></a> is a drop-in replacement for Next.js <code class="design-code">@next/env</code>, so encrypted dotenvx files load during Next’s own environment step.</p>
65-
66-
{% capture sdk_next_env %}
67-
{
68-
"dependencies": {
69-
"@dotenvx/next-env": "^2.0.0",
70-
"next": "^16.0.0"
71-
},
72-
"overrides": {
73-
"@next/env": "npm:@dotenvx/next-env"
74-
}
75-
}
76-
{% endcapture %}
77-
{% include components/design-codeblock.html value=sdk_next_env copy=false %}
78-
{% endcapture %}
79-
{% include components/design-step.html content=step_content %}
8072
</section>
8173
</div>

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 quickstart</a> for encrypting and running with the CLI.</p>
49+
<p class="design-paragraph">See the <a class="design-link" href="/docs/python/">Python quickstart</a> for a full walkthrough.</p>
5050
{% endcapture %}
5151
{% include components/design-step.html content=step_content %}
5252
</section>

0 commit comments

Comments
 (0)