Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Docs - move SDK timeouts & logging to separate pages

Vasek Mlejnsky55323b13dbad
diff --git a/apps/docs/src/app/getting-started/advanced/page.mdx b/apps/docs/src/app/getting-started/sdk-logging/page.mdx
similarity index 59%
rename from apps/docs/src/app/getting-started/advanced/page.mdx
rename to apps/docs/src/app/getting-started/sdk-logging/page.mdx
index 0a04e6cdb..738a53025 100644
--- a/apps/docs/src/app/getting-started/advanced/page.mdx
+++ b/apps/docs/src/app/getting-started/sdk-logging/page.mdx
@@ -1,28 +1,9 @@
export const metadata = {
title: 'E2B Documentation',
- description: 'SDK Advanced Usage',
+ description: 'SDK Logging',
}
-# Advanced Usage
-
-## Timeouts
-
-The SDK has a number of timeouts that can be configured to control how long the SDK will wait for a response from the E2B API. The default is 60 seconds.
-There are some examples:
-
-### Timeout creating session
-
-<CodeGroupAutoload path="timeout/timeout_session" />
-
-
-### Timeout process
-<CodeGroupAutoload path="timeout/timeout_process" />
-
-### Timeout filesystem operations
-
-<CodeGroupAutoload path="timeout/timeout_filesystem" />
-
-## Logging
+# Logging
<LanguageSpecificText>
```js {{ language: 'js', text: "E2B package logs only warnings & errors to the console by default. Below is an example of how to fully customize the logging levels.\n\nFeel free to override the logger with your own implementation with debug, info, warn, and error methods." }}
diff --git a/apps/docs/src/app/getting-started/sdk-timeouts/page.mdx b/apps/docs/src/app/getting-started/sdk-timeouts/page.mdx
new file mode 100644
index 000000000..87b971950
--- /dev/null
+++ b/apps/docs/src/app/getting-started/sdk-timeouts/page.mdx
@@ -0,0 +1,20 @@
+export const metadata = {
+ title: 'E2B Documentation',
+ description: 'SDK Timeouts',
+}
+
+# Timeouts
+
+The SDK has a number of timeouts that can be configured to control how long the SDK will wait for a response from the E2B API. **The default is 60 seconds.**
+
+### Timeout creating session
+
+<CodeGroupAutoload path="timeout/timeout_session" />
+
+
+### Timeout process
+<CodeGroupAutoload path="timeout/timeout_process" />
+
+### Timeout filesystem operations
+
+<CodeGroupAutoload path="timeout/timeout_filesystem" />
\ No newline at end of file
diff --git a/apps/docs/src/components/Navigation.tsx b/apps/docs/src/components/Navigation.tsx
index 0e98586f9..507257042 100644
--- a/apps/docs/src/components/Navigation.tsx
+++ b/apps/docs/src/components/Navigation.tsx
@@ -245,7 +245,8 @@ export const navigation = [
{ title: 'Installation', href: '/getting-started/installation' },
{ title: 'API Key', href: '/getting-started/api-key' },
{ title: 'SDK Basics', href: '/getting-started/basics' },
- { title: 'Advanced SDK Usage', href: '/getting-started/advanced' },
+ { title: 'SDK Timeouts', href: '/getting-started/sdk-timeouts' },
+ { title: 'SDK Logging', href: '/getting-started/sdk-logging' },
],
},
{