Skip to content

Commit

Permalink
NodeJS & Python SDK examples and doc links (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobzilladev authored Oct 19, 2023
1 parent 573093f commit 6275f51
Show file tree
Hide file tree
Showing 114 changed files with 1,902 additions and 330 deletions.
8 changes: 8 additions & 0 deletions docs/agent-sdks/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

import RandomGoSdkExample from "/examples/go-sdk/http-random.mdx";
import RandomNodejsSdkExample from "/examples/nodejs-sdk/http-random.mdx";
import RandomPythonSdkExample from "/examples/python-sdk/http-random.mdx";
import RandomRustSdkExample from "/examples/rust-sdk/http-random.mdx";

# Agent SDKs
Expand All @@ -25,6 +27,12 @@ ngrok's edge just as if you opened a socket to listen on a port.
<TabItem value="go-sdk" label="Go SDK">
<RandomGoSdkExample />
</TabItem>
<TabItem value="nodejs-sdk" label="NodeJS SDK">
<RandomNodejsSdkExample />
</TabItem>
<TabItem value="python-sdk" label="Python SDK">
<RandomPythonSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust SDK">
<RandomRustSdkExample />
</TabItem>
Expand Down
12 changes: 10 additions & 2 deletions docs/agent/ingress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import CustomIngressAgentCliExample from "/examples/agent-cli/custom-agent-ingre
import CustomIngressAgentConfigExample from "/examples/agent-config/custom-agent-ingress.mdx";
import CustomIngressSshExample from "/examples/ssh/custom-agent-ingress.mdx";
import CustomIngressGoSdkExample from "/examples/go-sdk/custom-agent-ingress.mdx";
import CustomIngressNodejsSdkExample from "/examples/nodejs-sdk/custom-agent-ingress.mdx";
import CustomIngressPythonSdkExample from "/examples/python-sdk/custom-agent-ingress.mdx";
import CustomIngressRustSdkExample from "/examples/rust-sdk/custom-agent-ingress.mdx";

# Agent Ingress Address
Expand Down Expand Up @@ -69,10 +71,16 @@ configuration file:
<TabItem value="ssh" label="SSH" default>
<CustomIngressSshExample />
</TabItem>
<TabItem value="go-sdk" label="Go SDK">
<TabItem value="go-sdk" label="Go">
<CustomIngressGoSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust SDK">
<TabItem value="nodejs-sdk" label="NodeJS">
<CustomIngressNodejsSdkExample />
</TabItem>
<TabItem value="python-sdk" label="Python">
<CustomIngressPythonSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust">
<CustomIngressRustSdkExample />
</TabItem>
<TabItem value="k8s" label="Kubernetes Controller">
Expand Down
185 changes: 0 additions & 185 deletions docs/cloud-edge/modules/user-agent-filter.md

This file was deleted.

14 changes: 11 additions & 3 deletions docs/http/basic-auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import AgentCliExample from "/examples/agent-cli/http-basic-auth.mdx";
import AgentConfigExample from "/examples/agent-config/http-basic-auth.mdx";
import SshExample from "/examples/ssh/http-basic-auth.mdx";
import GoSdkExample from "/examples/go-sdk/http-basic-auth.mdx";
import NodejsSdkExample from "/examples/nodejs-sdk/http-basic-auth.mdx";
import PythonSdkExample from "/examples/python-sdk/http-basic-auth.mdx";
import RustSdkExample from "/examples/rust-sdk/http-basic-auth.mdx";

# Basic Auth
Expand All @@ -25,16 +27,22 @@ Allow requests from two different users, each with a different password.
<TabItem value="agent-cli" label="Agent CLI" default>
<AgentCliExample />
</TabItem>
<TabItem value="agent-config" label="Agent Config File">
<TabItem value="agent-config" label="Agent Config">
<AgentConfigExample />
</TabItem>
<TabItem value="ssh" label="SSH">
<SshExample />
</TabItem>
<TabItem value="go-sdk" label="Go SDK">
<TabItem value="go-sdk" label="Go">
<GoSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust SDK">
<TabItem value="nodejs-sdk" label="NodeJS">
<NodejsSdkExample />
</TabItem>
<TabItem value="python-sdk" label="Python">
<PythonSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust">
<RustSdkExample />
</TabItem>
<TabItem value="k8s" label="Kubernetes Controller">
Expand Down
14 changes: 11 additions & 3 deletions docs/http/circuit-breaker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import AgentCliExample from "/examples/agent-cli/http-circuit-breaker.mdx";
import AgentConfigExample from "/examples/agent-config/http-circuit-breaker.mdx";
import SshExample from "/examples/ssh/http-circuit-breaker.mdx";
import GoSdkExample from "/examples/go-sdk/http-circuit-breaker.mdx";
import NodejsSdkExample from "/examples/nodejs-sdk/http-circuit-breaker.mdx";
import PythonSdkExample from "/examples/python-sdk/http-circuit-breaker.mdx";
import RustSdkExample from "/examples/rust-sdk/http-circuit-breaker.mdx";

# Circuit Breaker
Expand Down Expand Up @@ -37,16 +39,22 @@ responses have 5XX status codes.
<TabItem value="agent-cli" label="Agent CLI" default>
<AgentCliExample />
</TabItem>
<TabItem value="agent-config" label="Agent Config File">
<TabItem value="agent-config" label="Agent Config">
<AgentConfigExample />
</TabItem>
<TabItem value="ssh" label="SSH">
<SshExample />
</TabItem>
<TabItem value="go-sdk" label="Go SDK">
<TabItem value="go-sdk" label="Go">
<GoSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust SDK">
<TabItem value="nodejs-sdk" label="NodeJS">
<NodejsSdkExample />
</TabItem>
<TabItem value="python-sdk" label="Python">
<PythonSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust">
<RustSdkExample />
</TabItem>
<TabItem value="k8s" label="Kubernetes Controller">
Expand Down
14 changes: 11 additions & 3 deletions docs/http/compression.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import AgentCliExample from "/examples/agent-cli/http-compression.mdx";
import AgentConfigExample from "/examples/agent-config/http-compression.mdx";
import SshExample from "/examples/ssh/http-compression.mdx";
import GoSdkExample from "/examples/go-sdk/http-compression.mdx";
import NodejsSdkExample from "/examples/nodejs-sdk/http-compression.mdx";
import PythonSdkExample from "/examples/python-sdk/http-compression.mdx";
import RustSdkExample from "/examples/rust-sdk/http-compression.mdx";

# Compression
Expand All @@ -27,16 +29,22 @@ takes no action.
<TabItem value="agent-cli" label="Agent CLI" default>
<AgentCliExample />
</TabItem>
<TabItem value="agent-config" label="Agent Config File">
<TabItem value="agent-config" label="Agent Config">
<AgentConfigExample />
</TabItem>
<TabItem value="ssh" label="SSH">
<SshExample />
</TabItem>
<TabItem value="go-sdk" label="Go SDK">
<TabItem value="go-sdk" label="Go">
<GoSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust SDK">
<TabItem value="nodejs-sdk" label="NodeJS">
<NodejsSdkExample />
</TabItem>
<TabItem value="python-sdk" label="Python">
<PythonSdkExample />
</TabItem>
<TabItem value="rust-sdk" label="Rust">
<RustSdkExample />
</TabItem>
<TabItem value="k8s" label="Kubernetes Controller">
Expand Down
Loading

1 comment on commit 6275f51

@vercel
Copy link

@vercel vercel bot commented on 6275f51 Oct 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ngrok-docs – ./

ngrok-docs.vercel.app
ngrok-docs-git-main-ngrok-dev.vercel.app
ngrok-docs-ngrok-dev.vercel.app

Please sign in to comment.