From ef1ee413f9e26a9c88d0cddb71a5aac9b0bf2758 Mon Sep 17 00:00:00 2001 From: Zach Kirsch Date: Wed, 27 Nov 2024 10:27:26 -0500 Subject: [PATCH 1/2] feat(cli): use `code` view instead of `preview` in "edit this page" links --- packages/cli/docs-resolver/src/DocsDefinitionResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts b/packages/cli/docs-resolver/src/DocsDefinitionResolver.ts index b746fb5f25c..9391a47aefa 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( From f7512a188b644a167404e6accd90c033f5724c21 Mon Sep 17 00:00:00 2001 From: Zach Kirsch Date: Wed, 27 Nov 2024 10:29:39 -0500 Subject: [PATCH 2/2] Update welcome.mdx --- fern/pages/welcome.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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