Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update docs

Vasek Mlejnsky91eee6b258a8
diff --git a/apps/web/src/app/(docs)/docs/quickstart/support/page.mdx b/apps/web/src/app/(docs)/docs/quickstart/support/page.mdx
deleted file mode 100644
index 25a2f15ef..000000000
--- a/apps/web/src/app/(docs)/docs/quickstart/support/page.mdx
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Support
-
-
diff --git a/apps/web/src/app/(docs)/docs/support/Support.tsx b/apps/web/src/app/(docs)/docs/support/Support.tsx
new file mode 100644
index 000000000..1438920d9
--- /dev/null
+++ b/apps/web/src/app/(docs)/docs/support/Support.tsx
@@ -0,0 +1,41 @@
+import Link from 'next/link'
+import {
+ ArrowRight,
+ Mail,
+} from 'lucide-react'
+
+export function Support() {
+ return (
+ <div className="flex flex-col lg:flex-row gap-4 lg:gap-2 items-center lg:items-start justify-center xl:max-w-none">
+ <div className="w-full lg:flex-1 h-[150px] bg-white/2.5 rounded transition-colors hover:bg-white/5 border border-white/5 group transition hover:border-white/10">
+ <Link
+ href="https://discord.com"
+ className="no-underline flex flex-col justify-center items-center gap-2 h-full w-full"
+ >
+ <ArrowRight strokeWidth={1.5} className="h-6 w-6 text-zinc-300 group-hover:text-white transition-colors" />
+ <span className="text-zinc-300 transition-colors group-hover:text-white">Join our Discord community</span>
+ </Link>
+ </div>
+
+ <div className="w-full lg:flex-1 h-[150px] bg-white/2.5 rounded transition-colors hover:bg-white/5 border border-white/5 group transition hover:border-white/10">
+ <Link
+ href="https://github.com/e2b-dev/e2b"
+ className="no-underline flex flex-col justify-center items-center gap-2 h-full w-full"
+ >
+ <ArrowRight strokeWidth={1.5} className="h-6 w-6 text-zinc-300 group-hover:text-white transition-colors" />
+ <span className="text-zinc-300 transition-colors group-hover:text-white">Visit our GitHub</span>
+ </Link>
+ </div>
+
+ <div className="w-full lg:flex-1 h-[150px] bg-white/2.5 rounded transition-colors hover:bg-white/5 border border-white/5 group transition hover:border-white/10">
+ <Link
+ href="mailto:[email protected]"
+ className="no-underline flex flex-col justify-center items-center gap-2 h-full w-full"
+ >
+ <Mail strokeWidth={1.5} className="h-6 w-6 text-zinc-300 group-hover:text-white transition-colors" />
+ <span className="text-zinc-300 transition-colors group-hover:text-white">Contact us</span>
+ </Link>
+ </div>
+ </div>
+ )
+}
\ No newline at end of file
diff --git a/apps/web/src/app/(docs)/docs/support/page.mdx b/apps/web/src/app/(docs)/docs/support/page.mdx
new file mode 100644
index 000000000..c1ceb108b
--- /dev/null
+++ b/apps/web/src/app/(docs)/docs/support/page.mdx
@@ -0,0 +1,8 @@
+import { Support } from './Support'
+
+# Need help?
+
+Join our Discord community, open GitHub issues, or send us an email if you have any questions or request.
+
+<Support />
+
diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx
index 6fef05e4c..f16556055 100644
--- a/apps/web/src/app/layout.tsx
+++ b/apps/web/src/app/layout.tsx
@@ -60,7 +60,7 @@ export default async function RootLayout({ children }) {
<head>
<Canonical />
</head>
- <body className="flex min-h-full bg-white antialiased dark:bg-zinc-900">
+ <body className="flex min-h-full antialiased bg-zinc-900">
<Providers>
<Layout allSections={allSections}>
<Header />
diff --git a/apps/web/src/components/CodeInterpreting.tsx b/apps/web/src/components/CodeInterpreting.tsx
index 78e964e7d..1862951af 100644
--- a/apps/web/src/components/CodeInterpreting.tsx
+++ b/apps/web/src/components/CodeInterpreting.tsx
@@ -31,7 +31,7 @@ const items: BoxItem[] = [
},
{
href: '/docs/code-interpreting/todo',
- title: 'Parsing code execution result',
+ title: 'Parsing code execution results',
description: 'TODO: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ut purus eget sapien. Sed ut purus eget sapien.',
icon: <Braces strokeWidth={1.5} className="h-5 w-5 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
},
diff --git a/apps/web/src/components/Concepts.tsx b/apps/web/src/components/Concepts.tsx
index 61cd8ed28..0ae9f9c33 100644
--- a/apps/web/src/components/Concepts.tsx
+++ b/apps/web/src/components/Concepts.tsx
@@ -15,25 +15,25 @@ const concepts: BoxItem[] = [
href: '/docs/sandbox/lifecycle',
title: 'Sandbox lifecycle',
description: 'Learn about how to start the sandbox, manage its lifecycle, and interact with it.',
- icon: <Hourglass strokeWidth={1.5} className="h-5 w-5 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
+ icon: <Hourglass strokeWidth={1.5} className="h-6 w-6 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
},
{
href: '/docs/code-execution',
title: 'AI code execution',
description: 'E2B Sandboxex offer built-in support for running AI-generated Python, JS, TS, and R. You can customize sandbox to run almost any language.',
- icon: <Binary strokeWidth={1.5} className="h-5 w-5 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
+ icon: <Binary strokeWidth={1.5} className="h-6 w-6 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
},
{
href: '/docs/filesystem',
title: 'Filesystem',
description: 'Each sandbox has its own isolated filesystem that you can use to create, read, write, and delete files.',
- icon: <FolderTree strokeWidth={1.5} className="h-5 w-5 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
+ icon: <FolderTree strokeWidth={1.5} className="h-6 w-6 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
},
{
href: '/docs/commands',
title: 'Commands',
description: 'You can run terminal commands inside the Sandbox. This allows you to start any process inside the Sandbox.',
- icon: <Terminal strokeWidth={1.5} className="h-5 w-5 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
+ icon: <Terminal strokeWidth={1.5} className="h-6 w-6 transition-colors duration-300 fill-white/10 stroke-zinc-400 group-hover:fill-brand-300/10 group-hover:stroke-brand-400" />,
}
]
diff --git a/apps/web/src/components/Layout.tsx b/apps/web/src/components/Layout.tsx
index f937be4e0..1af32d527 100644
--- a/apps/web/src/components/Layout.tsx
+++ b/apps/web/src/components/Layout.tsx
@@ -64,9 +64,10 @@ export function Layout({
"
>
<main className="
- flex-auto
- ">
- {children}</main>
+ flex-auto
+ ">
+ {children}
+ </main>
<Footer />
</div>
)}
diff --git a/apps/web/src/components/Navigation/routes.tsx b/apps/web/src/components/Navigation/routes.tsx
index 5c8d3265d..cb18fb34f 100644
--- a/apps/web/src/components/Navigation/routes.tsx
+++ b/apps/web/src/components/Navigation/routes.tsx
@@ -86,7 +86,7 @@ export const routes: NavGroup[] = [
],
},
{
- title: '* Support',
+ title: '* Need help?',
href: '/docs/support',
icon: <MessagesSquare size={16} />,
},
@@ -192,7 +192,7 @@ export const routes: NavGroup[] = [
]
},
{
- title: '* Parsing code execution result',
+ title: '* Parsing code execution results',
href: '/docs/code-interpreting/todo',
},
]