From 7a61e2e71bfd74c0c4f2ca0df706b95a64be8d14 Mon Sep 17 00:00:00 2001 From: Zach Kirsch Date: Thu, 28 Nov 2024 11:48:23 -0500 Subject: [PATCH 1/2] fix(docs): broken link on /sdks/capabilities/discriminated-unions (#5298) --- fern/pages/sdks/capabilities/discriminated-unions.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fern/pages/sdks/capabilities/discriminated-unions.mdx b/fern/pages/sdks/capabilities/discriminated-unions.mdx index 812962e22e1..16f156fedf2 100644 --- a/fern/pages/sdks/capabilities/discriminated-unions.mdx +++ b/fern/pages/sdks/capabilities/discriminated-unions.mdx @@ -3,7 +3,7 @@ title: Discriminated Unions description: Fern SDKs include idiomatic support for discriminated unions --- -The SDKs natively support discriminated [unions](../../api-definition/fern/types#unions) for both OpenAPI and Fern APIs. +The SDKs natively support [discriminated unions](../../api-definition/fern/types#discriminated-unions) for both OpenAPI and Fern APIs. @@ -224,4 +224,4 @@ func ComputeArea(shape *Shape) float64 { ``` - \ No newline at end of file + From 3286b1f76e20cad457be35aa99f5dfe296f79217 Mon Sep 17 00:00:00 2001 From: Zach Kirsch Date: Thu, 28 Nov 2024 15:23:21 -0500 Subject: [PATCH 2/2] feat(cli): use `code` view instead of `preview` in "edit this page" links (#5290) * feat(cli): use `code` view instead of `preview` in "edit this page" links * Update welcome.mdx --- fern/pages/welcome.mdx | 2 +- packages/cli/docs-resolver/src/DocsDefinitionResolver.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fern/pages/welcome.mdx b/fern/pages/welcome.mdx index 2fbf0d5b1b9..cce37eda4c9 100644 --- a/fern/pages/welcome.mdx +++ b/fern/pages/welcome.mdx @@ -6,7 +6,7 @@ layout: overview hide-toc: true --- -Our entire docs website (the one you're looking at right now!) is built using Fern. [See the source Markdown.](https://github.com/fern-api/fern/blob/main/fern/pages/welcome.mdx) +Our entire docs website (the one you're looking at right now!) is built using Fern. [See the source Markdown.](https://github.com/fern-api/fern/blob/main/fern/pages/welcome.mdx?plain=1) ## Products diff --git a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts index 29764555078..3d3ec9e138d 100644 --- a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts +++ b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts @@ -911,7 +911,7 @@ function createEditThisPageUrl( const { owner, repo, branch = "main", host = "https://github.com" } = editThisPage.github; - return `${wrapWithHttps(host)}/${owner}/${repo}/blob/${branch}/fern/${pageFilepath}`; + return `${wrapWithHttps(host)}/${owner}/${repo}/blob/${branch}/fern/${pageFilepath}?plain=1`; } function convertAvailability(