From bb6a8ac9cac896a2a54aaa3b12e80be4ac8f9404 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 4 Dec 2025 15:05:35 +0000 Subject: [PATCH 1/4] docs: add hide-page-actions frontmatter option Co-Authored-By: Catherine Deskur --- .../docs/pages/changelog/2025-12-04.mdx | 12 ++++++++++++ .../docs/pages/customization/frontmatter.mdx | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 fern/products/docs/pages/changelog/2025-12-04.mdx diff --git a/fern/products/docs/pages/changelog/2025-12-04.mdx b/fern/products/docs/pages/changelog/2025-12-04.mdx new file mode 100644 index 000000000..ae4c82e83 --- /dev/null +++ b/fern/products/docs/pages/changelog/2025-12-04.mdx @@ -0,0 +1,12 @@ +## Hide page actions with frontmatter + +You can now hide page action buttons (such as Copy Page, View as Markdown, and Ask AI) on individual pages using the `hide-page-actions` frontmatter option. Set it to `true` to hide page actions for that page. + +```mdx +--- +title: Landing Page +hide-page-actions: true +--- +``` + +[Learn more](/learn/docs/configuration/page-level-settings#page-actions) about page-level configuration options. diff --git a/fern/products/docs/pages/customization/frontmatter.mdx b/fern/products/docs/pages/customization/frontmatter.mdx index 621d6b4bf..d25b1a752 100644 --- a/fern/products/docs/pages/customization/frontmatter.mdx +++ b/fern/products/docs/pages/customization/frontmatter.mdx @@ -4,7 +4,7 @@ subtitle: Set titles, add meta descriptions, and more description: Use frontmatter to set a variety of page properties and metadata. --- -You can optionally use frontmatter to set each page's title, full slug override, meta description, a URL to suggest edits to the page, and its OpenGraph image. You can also use frontmatter to disable certain page elements like the table of contents and on-page feedback. For advanced styling and functionality customizations beyond frontmatter options, see [custom CSS and JavaScript](/docs/customization/custom-css-js). +You can optionally use frontmatter to set each page's title, full slug override, meta description, a URL to suggest edits to the page, and its OpenGraph image. You can also use frontmatter to disable certain page elements like the table of contents, on-page feedback, and page actions. For advanced styling and functionality customizations beyond frontmatter options, see [custom CSS and JavaScript](/docs/customization/custom-css-js). Frontmatter must be added to the top of a `.md` or `.mdx` file, before the rest of the content. Use sets of three dashes to indicate the beginning and end of your frontmatter, as shown: @@ -235,6 +235,22 @@ hide-feedback: true Leave feedback feature +## Page actions + + Controls the conditional rendering of the page action buttons (such as Copy Page, View as Markdown, and Ask AI) on the page. Set to true to hide page actions for that page. + + Page actions can be configured globally in the [global configuration](/learn/docs/configuration/site-level-settings#page-actions-configuration). + + + +```mdx +--- +title: Landing Page +hide-page-actions: true +--- +``` + + ## Page logo Override the site-wide logo for a page. Specify different logos for light and dark modes using absolute URLs. From 21abb5dfb4afaabf5d8dbc56d193bccfaefd128d Mon Sep 17 00:00:00 2001 From: chdeskur Date: Thu, 4 Dec 2025 10:12:39 -0500 Subject: [PATCH 2/4] remove changelog --- fern/products/docs/pages/changelog/2025-12-04.mdx | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 fern/products/docs/pages/changelog/2025-12-04.mdx diff --git a/fern/products/docs/pages/changelog/2025-12-04.mdx b/fern/products/docs/pages/changelog/2025-12-04.mdx deleted file mode 100644 index ae4c82e83..000000000 --- a/fern/products/docs/pages/changelog/2025-12-04.mdx +++ /dev/null @@ -1,12 +0,0 @@ -## Hide page actions with frontmatter - -You can now hide page action buttons (such as Copy Page, View as Markdown, and Ask AI) on individual pages using the `hide-page-actions` frontmatter option. Set it to `true` to hide page actions for that page. - -```mdx ---- -title: Landing Page -hide-page-actions: true ---- -``` - -[Learn more](/learn/docs/configuration/page-level-settings#page-actions) about page-level configuration options. From 24d411c0e4dc5d493cf56572a506e25fc571731b Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Thu, 4 Dec 2025 12:37:47 -0500 Subject: [PATCH 3/4] adjust wording --- fern/products/docs/pages/customization/frontmatter.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fern/products/docs/pages/customization/frontmatter.mdx b/fern/products/docs/pages/customization/frontmatter.mdx index d25b1a752..43d0f903c 100644 --- a/fern/products/docs/pages/customization/frontmatter.mdx +++ b/fern/products/docs/pages/customization/frontmatter.mdx @@ -237,15 +237,15 @@ hide-feedback: true ## Page actions - Controls the conditional rendering of the page action buttons (such as Copy Page, View as Markdown, and Ask AI) on the page. Set to true to hide page actions for that page. - - Page actions can be configured globally in the [global configuration](/learn/docs/configuration/site-level-settings#page-actions-configuration). + Controls the conditional rendering of page action buttons (Copy Page, View as Markdown, Ask AI). Set to true to turn off page actions for an individual page. + + Alternatively, configure page actions [for your entire site](/learn/docs/configuration/site-level-settings#page-actions-configuration) in your `docs.yml` file. ```mdx --- -title: Landing Page +title: Product Roadmap hide-page-actions: true --- ``` From 9c76e32bbb5e1d3dba5e0592b9ae00dc5e72e13f Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Thu, 4 Dec 2025 12:39:21 -0500 Subject: [PATCH 4/4] fix example title --- fern/products/docs/pages/customization/frontmatter.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fern/products/docs/pages/customization/frontmatter.mdx b/fern/products/docs/pages/customization/frontmatter.mdx index 43d0f903c..c88293692 100644 --- a/fern/products/docs/pages/customization/frontmatter.mdx +++ b/fern/products/docs/pages/customization/frontmatter.mdx @@ -242,10 +242,10 @@ hide-feedback: true Alternatively, configure page actions [for your entire site](/learn/docs/configuration/site-level-settings#page-actions-configuration) in your `docs.yml` file. - + ```mdx --- -title: Product Roadmap +title: Overview hide-page-actions: true --- ```