Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 3, 2025

Remove embed component docs and create separate Download page

Summary

This PR completely removes the <embed> component documentation page and creates a new standalone <Download> component page. It also updates the markdown content guide to discourage using <embed> for images, PDFs, and videos, recommending alternatives like <iframe>, <video>, and <img> instead.

Key changes:

  • Deleted embed.mdx entirely and removed it from navigation
  • Created new download.mdx page documenting the <Download> component
  • Updated markdown.mdx to add warnings against using <embed> for images, videos, and PDFs
  • Recommended <iframe> for PDFs instead of <embed>
  • Restructured video documentation to make YouTube/Loom embedding a subsection

Review & Testing Checklist for Human

⚠️ CRITICAL - Scope verification:

  • Confirm this aligns with product direction - The original request was to discourage embed usage, but this PR completely removes the embed documentation page. This means users who are currently using <embed> will have no reference docs. Is this the intended behavior or should we keep the page with strong warnings instead?
  • Check for broken links - Removing embed.mdx means any links to /learn/docs/writing-content/components/embed will now 404. Search the docs for references to this path and verify they're all updated or redirected.
  • Test iframe for PDFs - Verify that <iframe src="path/to/pdf.pdf"> actually works well across browsers (especially Safari desktop/mobile) and is better than <embed>. I haven't tested this recommendation.
  • Review the self-referential redirect - Line 306-307 in fern/docs.yml adds a redirect from /learn/docs/writing-content/components/download to itself. This seems like an error - should it redirect from the old embed path?
  • Consider user impact - Users following old documentation or tutorials may be confused when they can't find embed docs. Consider if we need a "migration guide" or if the Download page should mention legacy embed usage.

Notes

  • This is a much more aggressive change than the original Safari warning request - it completely removes embed documentation rather than just discouraging its use
  • The Download component was previously documented as a subsection of the embed page; now it's a standalone page
  • No redirect was added for the removed /learn/docs/writing-content/components/embed path
  • Link to Devin run: https://app.devin.ai/sessions/386ffce1ebeb43c78aa0301b9ed738fb
  • Requested by: Colton Berry (@coltondotio)

- Add warning to embed component page about Safari compatibility issues
- Recommend using <video> component instead for embedding videos
- Update markdown content page with same Safari warning
- Emphasize better cross-browser support with <video> component

Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
@devin-ai-integration
Copy link
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

- `<Download src="..." />` - read more about it [below](#downloadable-assets).

<Warning>
The `<embed>` component is not well-supported on Safari and may cause compatibility issues. For embedding videos, use the `<video>` component instead, which provides better cross-browser support and more control over playback.
Copy link
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 🐶
[Microsoft.Contractions] Use 'isn't' instead of 'is not'.

<embed src="./embed-fern-waving.mp4" type="video/mp4" width="640px" height="360px" />

<Warning>
The `<embed>` component is not well-supported on Safari and may cause compatibility issues. For embedding videos, use the `<video>` component instead (see below), which provides better cross-browser support and more control over playback.
Copy link
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 🐶
[Microsoft.Contractions] Use 'isn't' instead of 'is not'.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

devalog and others added 2 commits November 4, 2025 13:23
- Update warnings to discourage embed for all asset types (not just videos)
- Recommend video component for videos, Download component for PDFs, img tag for images
- Fix broken link from /learn/docs/content/write-markdown to /learn/docs/writing-content/markdown
- Add notes to PDF and video sections with recommended alternatives
- Update markdown.mdx to be consistent with embed.mdx warnings

Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

@devalog
Copy link
Collaborator

devalog commented Nov 5, 2025

can you update the PR title and description to reflect changed content?

@devin-ai-integration devin-ai-integration bot changed the title Add Safari compatibility warnings for embed component Discourage embed component usage for all asset types Nov 5, 2025
@devin-ai-integration
Copy link
Contributor Author

I've updated the PR title to "Discourage embed component usage for all asset types" to reflect the current scope.

The PR description was also auto-regenerated and now accurately describes the changes, including:

  • Complete removal of the embed.mdx documentation page
  • Creation of a new standalone download.mdx page for the Download component
  • Updates to markdown.mdx to discourage embed usage and recommend alternatives

The description also includes important review notes about the scope change (from adding warnings to completely removing the embed docs) and potential impacts like broken links that may need redirects.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 5, 2025

@devalog devalog merged commit e88ff3f into main Nov 5, 2025
2 checks passed
@devalog devalog deleted the devin/1762193894-embed-safari-warning branch November 5, 2025 22:50
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