Skip to content

docs: add custom header and footer component documentation#3478

Merged
chdeskur merged 5 commits into
mainfrom
fern/custom-header-footer-docs
Feb 5, 2026
Merged

docs: add custom header and footer component documentation#3478
chdeskur merged 5 commits into
mainfrom
fern/custom-header-footer-docs

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Feb 5, 2026

Summary

Documents the new server-side rendered custom header and footer feature from fern-platform#6741.

Changes:

  • Added "Custom header and footer" section to the custom React components page with setup instructions
  • Added header and footer property documentation to the site-level settings page
  • Added changelog entry for the new feature

Updates since last revision

Per feedback, moved the documentation from the custom CSS/JS page to the custom React components page, which is a better fit. Also:

  • Condensed the "Benefits over client-side injection" and "Component requirements" sections into a brief intro paragraph
  • Updated the dark mode styling example to explicitly show Tailwind syntax (e.g., dark:bg-gray-900, dark:text-gray-400)
  • Updated changelog link to point to the new location
  • Removed client-side header/footer examples from the custom CSS/JS page (per user request to deprecate that approach)
  • Added a pointer from the custom CSS/JS page to the custom React components page

Review & Testing Checklist for Human

  • Verify the header and footer docs.yml configuration syntax matches the actual implementation in fern-platform#6741
  • Confirm that experimental.mdx-components is required for the header/footer feature to work
  • Test the anchor link in the changelog (#custom-header-and-footer) resolves correctly on the preview
  • Verify the links from site-level-settings.mdx and custom-css-js.mdx to the custom React components page work
  • Confirm removal of client-side header/footer examples is intentional (deprecating that approach in favor of SSR)

Recommended test plan: Deploy the preview and navigate to /learn/docs/writing-content/custom-react-components#custom-header-and-footer to verify the new section renders correctly. Also check /learn/docs/customization/custom-css-js to confirm the old examples are removed and the link to React components works.

Notes

Link to Devin run: https://app.devin.ai/sessions/16ddeaa65e924471bb3c20b4afa08c9e
Requested by: Fern Support (info@buildwithfern.com)

@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 5, 2026

Assignee Required

This PR was opened by Devin AI but the requester's email (info@buildwithfern.com) is not in the username mapping. Please add an assignee manually.

<Steps>
### Create a component file

Create a TSX or JSX file with a default export that returns your component:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'TSX' has no definition.

Custom header and footer components must meet these requirements:

- The file must have a **default export** returning a React component
- Use standard React and JSX syntax (TSX or JSX files)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'TSX' has no definition.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 5, 2026

🌿 Preview your docs: https://fern-preview-900d30e6-6dcd-4421-ad1b-2d3025cba053.docs.buildwithfern.com/learn

Visual changes detected:

fern/products/docs/pages/changelog/2026-02-05.mdx

Page: learn/docs/changelog/2026/2/5 | Change: 92.83890779794744%

fern/products/docs/pages/changelog/2026-02-05.mdx comparison

fern/products/docs/pages/component-library/custom-components/custom-css-js.mdx

Page: learn/docs/customization/custom-css-js | Change: 74.51654009304872%

fern/products/docs/pages/component-library/custom-components/custom-css-js.mdx comparison

fern/products/docs/pages/component-library/custom-components/custom-css-js.mdx

Page: learn/docs/customization/custom-css-js | Change: 0.7816465144051351%

fern/products/docs/pages/component-library/custom-components/custom-css-js.mdx comparison

fern/products/docs/pages/component-library/custom-components/custom-react-components.mdx

Page: learn/docs/writing-content/custom-react-components | Change: 70.4665622177055%

fern/products/docs/pages/component-library/custom-components/custom-react-components.mdx comparison

fern/products/docs/pages/component-library/custom-components/custom-react-components.mdx

Page: learn/docs/writing-content/custom-react-components | Change: 1.4190379403794038%

fern/products/docs/pages/component-library/custom-components/custom-react-components.mdx comparison

fern/products/docs/pages/customization/site-level-settings.mdx

Page: learn/docs/configuration/site-level-settings | Change: 75.78535609064376%

Comparison image available in workflow artifacts

fern/products/docs/pages/customization/site-level-settings.mdx

Page: learn/docs/configuration/site-level-settings | Change: 0.17301338179415165%

fern/products/docs/pages/customization/site-level-settings.mdx comparison

- ./components
```

Create a TSX or JSX file with a default export:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'TSX' has no definition.

}
```

## Custom components in MDX
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'Custom components in MDX' should use sentence-style capitalization.

</ParamField>

<ParamField path="header" type="string" required={false} toc={true}>
Path to a custom React component file (TSX or JSX) to replace Fern's default header. The component must have a default export. Learn more about [custom header and footer components](/learn/docs/writing-content/custom-react-components#custom-header-and-footer).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'TSX' has no definition.

</ParamField>

<ParamField path="footer" type="string" required={false} toc={true}>
Path to a custom React component file (TSX or JSX) to replace Fern's default footer. The component must have a default export. Learn more about [custom header and footer components](/learn/docs/writing-content/custom-react-components#custom-header-and-footer).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'TSX' has no definition.

- Insert scripts and widgets

## Custom components
## Custom React components
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'Custom React components' should use sentence-style capitalization.

@chdeskur chdeskur merged commit 09c3a6d into main Feb 5, 2026
2 checks passed
@chdeskur chdeskur deleted the fern/custom-header-footer-docs branch February 5, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants