-
-
Notifications
You must be signed in to change notification settings - Fork 17
feat: usage guide, pollution, docs cleanup (updated) #154
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
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e5ccf25
fix: player controls improvements
WINOFFRG 85691df
fix: player controls improvements
WINOFFRG 751fb20
feat: usage revamp and documentation update
WINOFFRG 5b67fde
fix: resolved AI comments
WINOFFRG 05eafeb
fix: missing block file
WINOFFRG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import { renderMermaidSVG } from "beautiful-mermaid" | ||
| import { CodeBlock, Pre } from "fumadocs-ui/components/codeblock" | ||
|
|
||
| export async function Mermaid({ chart }: { chart: string }) { | ||
| try { | ||
| const svg = renderMermaidSVG(chart, { | ||
| accent: "var(--color-fd-primary)", | ||
| bg: "transparent", | ||
| border: "color-mix(in oklab, var(--color-fd-border) 86%, transparent)", | ||
| fg: "var(--color-fd-foreground)", | ||
| font: "var(--font-sans), ui-sans-serif, system-ui, sans-serif", | ||
| interactive: true, | ||
| layerSpacing: 52, | ||
| line: "color-mix(in oklab, var(--color-fd-muted-foreground) 58%, transparent)", | ||
| muted: "var(--color-fd-muted-foreground)", | ||
| nodeSpacing: 36, | ||
| padding: 32, | ||
| surface: | ||
| "color-mix(in oklab, var(--color-fd-card) 92%, var(--color-fd-primary) 8%)", | ||
| transparent: true, | ||
| }) | ||
|
|
||
| return ( | ||
| <figure className="not-prose my-8 overflow-hidden rounded-2xl border bg-fd-card/70 shadow-sm ring-1 ring-fd-border/40"> | ||
| <div | ||
| className=" | ||
| overflow-x-auto p-4 | ||
| sm:p-6 | ||
| " | ||
| dangerouslySetInnerHTML={{ __html: svg }} | ||
| /> | ||
| </figure> | ||
| ) | ||
| } catch { | ||
| return ( | ||
| <CodeBlock title="Mermaid"> | ||
| <Pre>{chart}</Pre> | ||
| </CodeBlock> | ||
| ) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Block documentation links are using the wrong base path.
Both sites use
/blocks/video-playerinstead of the docs namespace, so navigation can break for readers.apps/www/app/layout.config.tsx#L53-L57: change the Blocks nav URL to/docs/blocks/video-player.apps/www/content/docs/quick-start.mdx#L26-L26: update the inline link target to/docs/blocks/video-player.📍 Affects 2 files
apps/www/app/layout.config.tsx#L53-L57(this comment)apps/www/content/docs/quick-start.mdx#L26-L26🤖 Prompt for AI Agents