-
Notifications
You must be signed in to change notification settings - Fork 178
docs(devnotes): add Nemotron-Personas dev note #611
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
Merged
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
60a995b
udpate map
3mei 8f27a19
docs(devnotes): add Nemotron-Personas colab notebook
3mei c2e1bdb
docs(devnotes): polish Nemotron-Personas notebook and dev note
3mei 826f120
Merge remote-tracking branch 'origin/main' into yev/nemotron_personasβ¦
3mei 7f318e1
docs(devnotes): fix typo, align dev note prompts with notebook
3mei 1fe3993
docs(devnotes): wire Nemotron-Personas dev note into MkDocs and Fern β¦
3mei acaebde
docs(devnotes): address reviewer feedback on Nemotron-Personas dev note
3mei 8f03e38
Merge remote-tracking branch 'origin/main' into yev/nemotron_personasβ¦
3mei 7bfacae
docs(devnotes): move Nemotron-Personas to top of Dev Notes nav
3mei 81b8d74
docs(devnotes): polish Nemotron-Personas figure captions, blog card, β¦
3mei 7bee91a
docs(devnotes): update personas publish date
3mei c1f9dce
docs(devnotes): fix duplicate title and 404 routing on retriever-sdg-β¦
3mei aa54c7e
Merge remote-tracking branch 'origin/main' into yev/nemotron_personasβ¦
3mei 352fe90
Merge remote-tracking branch 'origin/main' into yev/nemotron_personasβ¦
3mei 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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+71.5 KB
docs/devnotes/posts/assets/nemotron-personas/nemotron-personas-world-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+118 KB
docs/devnotes/posts/assets/nemotron-personas/nemotron_persona_via_ndd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+214 KB
docs/devnotes/posts/assets/nemotron-personas/nemotron_persona_via_ndd_step_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+266 KB
docs/devnotes/posts/assets/nemotron-personas/nemotron_persona_via_ndd_step_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,62 @@ | ||
| /** | ||
| * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| /** | ||
| * Figure - Centered image with an optional NVIDIA-green italic caption. | ||
| * | ||
| * NOTE: Fern's custom component pipeline uses the automatic JSX runtime. | ||
| * | ||
| * Usage in MDX: | ||
| * import { Figure } from "@/components/Figure"; | ||
| * | ||
| * <Figure src="/assets/foo.png" alt="..." width={600}> | ||
| * Caption text with **inline markdown** if helpful. | ||
| * </Figure> | ||
| */ | ||
|
|
||
| /** | ||
| * Figure styles, injected by the component rather than loaded via docs.yml `css:`. | ||
| * `css` is theme-owned, so under `global-theme: nvidia` a local `css:` list is | ||
| * dropped at publish β styling has to ship with the component. See fern/docs.yml | ||
| * and the same pattern in Authors.tsx. | ||
| */ | ||
| const FIGURE_CSS = ` | ||
| .devnote-figure { | ||
| text-align: center; | ||
| margin: 1.25rem 0; | ||
| } | ||
| .devnote-figure__img { | ||
| max-width: 100%; | ||
| height: auto; | ||
| } | ||
| .devnote-figure__caption { | ||
| display: block; | ||
| margin-top: 0.5rem; | ||
| color: #76B900; | ||
| font-size: 0.85em; | ||
| font-style: italic; | ||
| line-height: 1.4; | ||
| } | ||
| `; | ||
|
|
||
| export interface FigureProps { | ||
| /** Image source path (e.g. "/assets/<slug>/foo.png"). */ | ||
| src: string; | ||
| /** Alt text for accessibility. */ | ||
| alt: string; | ||
| /** Optional explicit width in pixels (or any CSS length). */ | ||
| width?: number | string; | ||
| /** Caption content; rendered only if children are provided. */ | ||
| children?: React.ReactNode; | ||
| } | ||
|
|
||
| export const Figure = ({ src, alt, width, children }: FigureProps) => ( | ||
| <div className="devnote-figure"> | ||
| {/* static CSS string literal (no user input) β safe to inject as raw HTML */} | ||
| <style dangerouslySetInnerHTML={{ __html: FIGURE_CSS }} /> | ||
| <img className="devnote-figure__img" src={src} alt={alt} width={width} /> | ||
| {children && <em className="devnote-figure__caption">{children}</em>} | ||
| </div> | ||
| ); |
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.
Uh oh!
There was an error while loading. Please reload this page.