-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Algolia Search Visual Papercuts #1712
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
const markdownTree = getMarkdownSectionTree(rawMarkdown, title); | ||
const description = truncateToBytes( | ||
frontmatter.description ?? frontmatter.subtitle ?? markdownTree.content ?? content, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is going to delete the content and prefer the frontmatter instead. you probably want to concat all of these instead. see: https://github.com/fern-api/fern-platform/blob/main/packages/ui/fern-docs-search-server/src/algolia/records/generateMarkdownRecords.ts#L32-L53
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually mean to truncate -- since there are section records, the page no longer needs these. Customer suggested we use the frontmatter description or subtitle, here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description field
Fixes FER-3414
Short description of the changes made
Addresses:
To be done:
What was the motivation & context behind this PR?
How has this PR been tested?
Screen.Recording.2024-10-24.at.7.10.01.PM.mov