From d9dd80bf2a860c806b97e6b1528f4d40ecc6c0c4 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:02:40 +0000 Subject: [PATCH 1/3] docs: add documentation for edit-this-page launch property Co-Authored-By: bot_apk --- fern/apis/docs-yml/definition/docs.yml | 11 +++++++++++ .../customization/site-level-settings.mdx | 19 ++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/fern/apis/docs-yml/definition/docs.yml b/fern/apis/docs-yml/definition/docs.yml index 51a88fe4c..f2984c01c 100644 --- a/fern/apis/docs-yml/definition/docs.yml +++ b/fern/apis/docs-yml/definition/docs.yml @@ -238,6 +238,17 @@ types: EditThisPageConfig: properties: github: optional + launch: + type: optional + docs: | + Controls where the "Edit this page" link directs users. + When set to `dashboard`, the link opens the page in the Fern dashboard editor instead of GitHub. + Defaults to `github`. + + EditThisPageLaunchTarget: + enum: + - github + - dashboard GithubEditThisPageConfig: properties: diff --git a/fern/products/docs/pages/customization/site-level-settings.mdx b/fern/products/docs/pages/customization/site-level-settings.mdx index 92966fac1..b82edcbd9 100644 --- a/fern/products/docs/pages/customization/site-level-settings.mdx +++ b/fern/products/docs/pages/customization/site-level-settings.mdx @@ -146,7 +146,7 @@ instances: - If specified, adds an "Edit this page" link to the bottom of each page that links to the given public GitHub repository. Learn more about the [`edit-this-page` configuration](#github-configuration). + If specified, adds an "Edit this page" link to the bottom of each page that links to the given public GitHub repository. You can optionally set a `launch` target to control where the link directs users. Learn more about the [`edit-this-page` configuration](#github-configuration). @@ -884,6 +884,23 @@ The GitHub repository must be **public** for the "Edit this page" feature to wor The branch of the repository you would like the GitHub editor to open a PR to. Default is `main`. + + Controls where the "Edit this page" link directs users. When set to `dashboard`, the link opens the page in the Fern dashboard editor instead of GitHub. Defaults to `github`. + + +### Example with `launch: dashboard` + +```yaml docs.yml +instances: + - url: plantstore.docs.buildwithfern.com + edit-this-page: + github: + owner: fern + repo: plant-store-docs + branch: main + launch: dashboard +``` + ## Landing page configuration ```yaml docs.yml From 6739105ab0efa6681407b81f1e1af977ad7d6282 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:04:39 +0000 Subject: [PATCH 2/3] fix: use single quotes in ParamField type to fix MDX parsing Co-Authored-By: bot_apk --- fern/products/docs/pages/customization/site-level-settings.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fern/products/docs/pages/customization/site-level-settings.mdx b/fern/products/docs/pages/customization/site-level-settings.mdx index b82edcbd9..a9251e253 100644 --- a/fern/products/docs/pages/customization/site-level-settings.mdx +++ b/fern/products/docs/pages/customization/site-level-settings.mdx @@ -884,7 +884,7 @@ The GitHub repository must be **public** for the "Edit this page" feature to wor The branch of the repository you would like the GitHub editor to open a PR to. Default is `main`. - + Controls where the "Edit this page" link directs users. When set to `dashboard`, the link opens the page in the Fern dashboard editor instead of GitHub. Defaults to `github`. From 40684a9278c2f4b36b8e7d296de7da21c75a2c5d Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 28 Feb 2026 00:27:49 +0000 Subject: [PATCH 3/3] refactor: move launch: dashboard into existing GitHub configuration example Co-Authored-By: bot_apk --- .../pages/customization/site-level-settings.mdx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/fern/products/docs/pages/customization/site-level-settings.mdx b/fern/products/docs/pages/customization/site-level-settings.mdx index a9251e253..74f98886c 100644 --- a/fern/products/docs/pages/customization/site-level-settings.mdx +++ b/fern/products/docs/pages/customization/site-level-settings.mdx @@ -844,6 +844,7 @@ instances: owner: fern repo: plant-store-docs branch: main + launch: dashboard ``` @@ -888,19 +889,6 @@ The GitHub repository must be **public** for the "Edit this page" feature to wor Controls where the "Edit this page" link directs users. When set to `dashboard`, the link opens the page in the Fern dashboard editor instead of GitHub. Defaults to `github`. -### Example with `launch: dashboard` - -```yaml docs.yml -instances: - - url: plantstore.docs.buildwithfern.com - edit-this-page: - github: - owner: fern - repo: plant-store-docs - branch: main - launch: dashboard -``` - ## Landing page configuration ```yaml docs.yml