diff --git a/src/components/Render.astro b/src/components/Render.astro index 8583134d2de073b..7242e29a659ef04 100644 --- a/src/components/Render.astro +++ b/src/components/Render.astro @@ -6,26 +6,14 @@ type Props = z.infer; const props = z.object({ file: z.string(), - product: z.string().optional(), + product: z.string(), params: z.record(z.string(), z.any()).optional(), }); let { file, product, params } = props.parse(Astro.props); -if (!product) { - const fromSlug = Astro.params.slug?.split("/")[0]; - - if (!fromSlug) { - throw new Error( - `[Render] Unable to infer which folder ${file} is in, please provide a "product" input with your "file" input.`, - ); - } - - product = fromSlug; -} - const id = `${product}/${file}`; -const partial = await getEntry("partials", id); +let partial = await getEntry("partials", id); if (!partial) { throw new Error( diff --git a/src/content/docs/cloudflare-for-platforms/cloudflare-for-saas/saas-customers/provider-guides/webflow.mdx b/src/content/docs/cloudflare-for-platforms/cloudflare-for-saas/saas-customers/provider-guides/webflow.mdx index 498770ca3cf4919..641e24b1c6c2341 100644 --- a/src/content/docs/cloudflare-for-platforms/cloudflare-for-saas/saas-customers/provider-guides/webflow.mdx +++ b/src/content/docs/cloudflare-for-platforms/cloudflare-for-saas/saas-customers/provider-guides/webflow.mdx @@ -9,7 +9,11 @@ description: Learn how to configure your Enterprise zone with Webflow. import { Render } from "~/components"; - + ## Benefits @@ -38,7 +42,11 @@ To enable O2O on your account, [create](/dns/manage-dns-records/how-to/create-dn ## Additional support - + ### DNS CAA records diff --git a/src/content/docs/cloudflare-one/applications/casb/casb-integrations/microsoft-365/sharepoint.mdx b/src/content/docs/cloudflare-one/applications/casb/casb-integrations/microsoft-365/sharepoint.mdx index 2b7b3cd1b32b51f..21b03a5ce01521c 100644 --- a/src/content/docs/cloudflare-one/applications/casb/casb-integrations/microsoft-365/sharepoint.mdx +++ b/src/content/docs/cloudflare-one/applications/casb/casb-integrations/microsoft-365/sharepoint.mdx @@ -10,6 +10,7 @@ import { Render } from "~/components"; +The continent of the user making the request. ### Source Country -The country of the user making the request. +The country of the user making the request. ### Source Internal IP diff --git a/src/content/docs/cloudflare-one/policies/gateway/network-policies/index.mdx b/src/content/docs/cloudflare-one/policies/gateway/network-policies/index.mdx index 734011f9573af0e..0ce456b9b904244 100644 --- a/src/content/docs/cloudflare-one/policies/gateway/network-policies/index.mdx +++ b/src/content/docs/cloudflare-one/policies/gateway/network-policies/index.mdx @@ -355,11 +355,11 @@ By default, this selector only applies to HTTPS traffic on port `443`. To inspec ### Source Continent -The continent of the user making the request. +The continent of the user making the request. ### Source Country -The country of the user making the request. +The country of the user making the request. ### Source Internal IP diff --git a/src/content/docs/rules/transform/managed-transforms/reference.mdx b/src/content/docs/rules/transform/managed-transforms/reference.mdx index 429f33b1790e41c..9411146498f889f 100644 --- a/src/content/docs/rules/transform/managed-transforms/reference.mdx +++ b/src/content/docs/rules/transform/managed-transforms/reference.mdx @@ -12,6 +12,7 @@ This page lists the available Managed Transforms. They can modify HTTP request h diff --git a/src/content/docs/style-guide/components/render.mdx b/src/content/docs/style-guide/components/render.mdx index c325a43b2e09f36..4c7279d7e235f5d 100644 --- a/src/content/docs/style-guide/components/render.mdx +++ b/src/content/docs/style-guide/components/render.mdx @@ -30,24 +30,9 @@ import { Render } from "~/components"; This should be the name of the partial, without the containing directory or file extension. For example, `/partials/style-guide/hello.mdx` would be `file="hello"`. -- `product` +- `product` - By default, it will look for partials in the same product folder as the current page. You can use this to specify a different product. - - :::caution - - When using the `Render` component inside partials, the original `product` is lost. - - For example, if there are three files: - 1. `docs/fundamentals/index.mdx` - 2. `partials/dns/thing.mdx` - 3. `partials/dns/thing2.mdx` - - `docs/fundamentals/index.mdx` uses `` - - `partials/dns/thing.mdx` must use `` as `product` cannot be inferred. - - ::: + This should be the folder within `src/partials`. - `params` diff --git a/src/content/partials/cloudflare-one/casb/google/integrations/gmail.mdx b/src/content/partials/cloudflare-one/casb/google/integrations/gmail.mdx index 28ec8754cdce6e9..3ebca44723d4ab7 100644 --- a/src/content/partials/cloudflare-one/casb/google/integrations/gmail.mdx +++ b/src/content/partials/cloudflare-one/casb/google/integrations/gmail.mdx @@ -9,6 +9,7 @@ import { Render } from "~/components"; @@ -30,6 +32,7 @@ import { GlossaryTooltip, Render } from "~/components"; @@ -30,6 +32,7 @@ import { Render } from "~/components"; @@ -30,6 +32,7 @@ import { Render } from "~/components"; @@ -30,6 +32,7 @@ import { Render } from "~/components"; ## Integration prerequisites @@ -34,7 +38,11 @@ These permissions follow the principle of least privilege to ensure that only th ### File sharing diff --git a/src/content/partials/cloudflare-one/casb/servicenow-integration.mdx b/src/content/partials/cloudflare-one/casb/servicenow-integration.mdx index d3a890db21ea3a2..35e59ffb064ca81 100644 --- a/src/content/partials/cloudflare-one/casb/servicenow-integration.mdx +++ b/src/content/partials/cloudflare-one/casb/servicenow-integration.mdx @@ -9,6 +9,7 @@ import { Render } from "~/components"; diff --git a/src/content/partials/cloudflare-one/gateway/selectors/host.mdx b/src/content/partials/cloudflare-one/gateway/selectors/host.mdx index e929c322a6ae67b..0dc831a4607023b 100644 --- a/src/content/partials/cloudflare-one/gateway/selectors/host.mdx +++ b/src/content/partials/cloudflare-one/gateway/selectors/host.mdx @@ -13,6 +13,7 @@ Use this selector to match against only the hostname specified. For example, you