Skip to content

Commit 860e80e

Browse files
devin-ai-integration[bot]chdeskurdevalog
authored
docs: add hide-page-actions frontmatter option (#2511)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Catherine Deskur <catherine@buildwithfern.com> Co-authored-by: chdeskur <chdeskur@gmail.com> Co-authored-by: Devin Logan <devinannlogan@gmail.com>
1 parent 66f2c6f commit 860e80e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

fern/products/docs/pages/customization/frontmatter.mdx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ subtitle: Set titles, add meta descriptions, and more
44
description: Use frontmatter to set a variety of page properties and metadata.
55
---
66

7-
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).
7+
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).
88

99
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:
1010

@@ -235,6 +235,22 @@ hide-feedback: true
235235
<img src="./on-page-feedback.png" alt="Leave feedback feature" />
236236
</Frame>
237237

238+
## Page actions
239+
<ParamField path="hide-page-actions" type="boolean" required={false} default={false}>
240+
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.
241+
242+
Alternatively, configure page actions [for your entire site](/learn/docs/configuration/site-level-settings#page-actions-configuration) in your `docs.yml` file.
243+
</ParamField>
244+
245+
<CodeBlock title="docs/getting-started/overview.mdx">
246+
```mdx
247+
---
248+
title: Overview
249+
hide-page-actions: true
250+
---
251+
```
252+
</CodeBlock>
253+
238254
## Page logo
239255
<ParamField path="logo" type="object" required={false}>
240256
Override the site-wide logo for a page. Specify different logos for light and dark modes using absolute URLs.

0 commit comments

Comments
 (0)