Skip to content

Commit 3d114da

Browse files
committed
Revert "docs: update ArkEnv import and add 'New' icon support"
This reverts commit fea6c58.
1 parent febf074 commit 3d114da

3 files changed

Lines changed: 3 additions & 18 deletions

File tree

ark/docs/content/docs/ecosystem/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Inspired by tools like [T3 Env](https://env.t3.gg) but tailored specifically for
1212

1313
```ts
1414
// @noErrors
15-
import arkenv from "arkenv"
15+
import { createEnv } from "arkenv"
1616

17-
const env = arkenv({
17+
const env = createEnv({
1818
HOST: "string.host",
1919
PORT: "number.port",
2020
NODE_ENV: "'development' | 'production' | 'test' = 'development'"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"title": "Ecosystem",
3-
"icon": "New",
43
"pages": ["[ArkEnv](/docs/ecosystem#arkenv)"]
54
}

ark/docs/lib/source.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createElement } from "react"
66
import { docs } from "../.source/index.ts"
77
import { Badge } from "../components/Badge.tsx"
88

9-
export type IconName = keyof typeof icons | "Advanced" | "New"
9+
export type IconName = keyof typeof icons | "Advanced"
1010

1111
export const source = loader({
1212
baseUrl: "/docs",
@@ -29,20 +29,6 @@ export const source = loader({
2929
</Badge>
3030
)
3131
}
32-
if (name === "New") {
33-
return (
34-
<Badge
35-
style={{
36-
height: "1rem",
37-
fontSize: 10,
38-
padding: "0 0.2rem",
39-
order: 1
40-
}}
41-
>
42-
new
43-
</Badge>
44-
)
45-
}
4632

4733
throw new Error(`${name} is not a valid icon`)
4834
}

0 commit comments

Comments
 (0)