Skip to content

Commit

Permalink
generate .json tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Jul 24, 2024
1 parent 1320b8b commit ab05b2c
Show file tree
Hide file tree
Showing 16 changed files with 125 additions and 41 deletions.
2 changes: 1 addition & 1 deletion content/d1/build-with-d1/local-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ In this example, the Worker has access to local-only D1 database. The correspond

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[[d1_databases]]
binding = "DB"
Expand Down
2 changes: 1 addition & 1 deletion content/hyperdrive/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ To enable Node.js compatibility, add the `nodejs_compat` compatibility flag in y

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
compatibility_flags = [ "nodejs_compat" ]
```
Expand Down
2 changes: 1 addition & 1 deletion content/kv/reference/kv-namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
kv_namespaces = [
{ binding = "<TEST_NAMESPACE>", id = "<TEST_ID>" }
Expand Down
2 changes: 1 addition & 1 deletion content/queues/configuration/batching-retries.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Delays can also be configured in [`wrangler.toml`](/workers/wrangler/configurati

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[[queues.producers]]
binding = "<BINDING_NAME>"
Expand Down
4 changes: 2 additions & 2 deletions content/workers/configuration/compatibility-dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ A [growing subset](/workers/runtime-apis/nodejs/) of Node.js APIs are available

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
compatibility_flags = [ "nodejs_compat" ]
```
Expand All @@ -100,7 +100,7 @@ The Node.js `AsyncLocalStorage` API is a particularly useful feature for Workers

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
compatibility_flags = [ "nodejs_als" ]
```
Expand Down
2 changes: 1 addition & 1 deletion content/workers/runtime-apis/bindings/mTLS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Then, update your Worker project's `wrangler.toml` file to create an mTLS certif

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
mtls_certificates = [
{ binding = "MY_CERT", certificate_id = "<CERTIFICATE_ID>" }
Expand Down
2 changes: 1 addition & 1 deletion content/workers/runtime-apis/bindings/version-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use the version metadata binding, update your Worker's `wrangler.toml` file:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[version_metadata]
binding = "CF_VERSION_METADATA"
Expand Down
4 changes: 2 additions & 2 deletions content/workers/runtime-apis/nodejs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the [`nodejs_compat`](/workers/configuration/compatibility-dates/#nodejs-com

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
compatibility_flags = [ "nodejs_compat" ]
```
Expand Down Expand Up @@ -62,7 +62,7 @@ To enable the Node.js `AsyncLocalStorage` API only, use the `nodejs_als` compati

```toml
---
header:wrangler.toml
filename: wrangler.toml
---
compatibility_flags = [ "nodejs_als" ]
```
Expand Down
2 changes: 1 addition & 1 deletion content/workers/tutorials/postgres/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ If you choose to deploy, you will be asked to authenticate (if not logged in alr

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
node_compat = true
```
Expand Down
2 changes: 1 addition & 1 deletion content/workers/tutorials/store-data-with-fauna/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Next, go to your Worker project directory and update the `wrangler.toml` file to

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
name = "fauna-workers"
```
Expand Down
54 changes: 27 additions & 27 deletions content/workers/wrangler/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
route = { pattern = "example.com", custom_domain = true }

Expand Down Expand Up @@ -264,7 +264,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
routes = [
{ pattern = "subdomain.example.com/*", zone_id = "<YOUR_ZONE_ID>" }
Expand All @@ -289,7 +289,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
routes = [
{ pattern = "subdomain.example.com/*", zone_name = "example.com" }
Expand All @@ -304,7 +304,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
route = "example.com/*"
```
Expand All @@ -323,7 +323,7 @@ Cloudflare Workers accounts come with a `workers.dev` subdomain that is configur

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
workers_dev = false
```
Expand All @@ -346,7 +346,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[triggers]
crons = ["* * * * *"]
Expand Down Expand Up @@ -376,7 +376,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[build]
command = "npm run build"
Expand Down Expand Up @@ -404,7 +404,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[limits]
cpu_ms = 100
Expand All @@ -430,7 +430,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
browser = { binding = "<BINDING_NAME>" }

Expand Down Expand Up @@ -478,7 +478,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
d1_databases = [
{ binding = "<BINDING_NAME>", database_name = "<DATABASE_NAME>", database_id = "<DATABASE_ID>" }
Expand Down Expand Up @@ -516,7 +516,7 @@ Dispatch namespace bindings allow for communication between a [dynamic dispatch

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[[dispatch_namespaces]]
binding = "<BINDING_NAME>"
Expand Down Expand Up @@ -555,7 +555,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
durable_objects.bindings = [
{ name = "<BINDING_NAME>", class_name = "<CLASS_NAME>" }
Expand Down Expand Up @@ -597,7 +597,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[[migrations]]
tag = "v1" # Should be unique for each entry
Expand Down Expand Up @@ -660,7 +660,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---

node_compat = true # required for database drivers to function
Expand Down Expand Up @@ -703,7 +703,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
kv_namespaces = [
{ binding = "<BINDING_NAME1>", id = "<NAMESPACE_ID1>" },
Expand Down Expand Up @@ -747,7 +747,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[[queues.producers]]
binding = "<BINDING_NAME>"
Expand Down Expand Up @@ -796,7 +796,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[[queues.consumers]]
queue = "my-queue"
Expand Down Expand Up @@ -844,7 +844,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
r2_buckets = [
{ binding = "<BINDING_NAME1>", bucket_name = "<BUCKET_NAME1>"},
Expand Down Expand Up @@ -884,7 +884,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
vectorize = [
{ binding = "<BINDING_NAME>", index_name = "<INDEX_NAME>"}
Expand Down Expand Up @@ -922,7 +922,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
services = [
{ binding = "<BINDING_NAME>", service = "<WORKER_NAME>", entrypoint = "<ENTRYPOINT_NAME>" }
Expand Down Expand Up @@ -991,7 +991,7 @@ Example of a `wrangler.toml` configuration that includes an mTLS certificate bin

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
mtls_certificates = [
{ binding = "<BINDING_NAME1>", certificate_id = "<CERTIFICATE_ID1>" },
Expand Down Expand Up @@ -1066,7 +1066,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
rules = [
{ type = "Text", globs = ["**/*.md"], fallthrough = true }
Expand Down Expand Up @@ -1123,7 +1123,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[dev]
ip = "192.168.1.1"
Expand All @@ -1147,7 +1147,7 @@ A [growing subset of Node.js APIs](/workers/runtime-apis/nodejs/) are available

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
compatibility_flags = [ "nodejs_compat" ]
```
Expand All @@ -1158,7 +1158,7 @@ Add polyfills for a subset of Node.js APIs to your Worker by adding the `node_co

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
node_compat = true
```
Expand All @@ -1184,7 +1184,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
upload_source_maps = true

Expand Down Expand Up @@ -1218,7 +1218,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[site]
bucket = "./public"
Expand Down
2 changes: 1 addition & 1 deletion content/workers/wrangler/custom-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Example:

```toml
---
header: wrangler.toml
filename: wrangler.toml
---
[build]
command = "npm run build"
Expand Down
Loading

0 comments on commit ab05b2c

Please sign in to comment.