DataDesigner/docs/css/style.css

245 lines
5.5 KiB
CSS
Raw Permalink Normal View History

.nvidia-green {
color: #76B900; /* NVIDIA green */
}
/* Style "NeMo" in the site name with pure CSS */
.md-header__topic:first-child .md-ellipsis {
visibility: hidden;
position: relative;
}
/* Make "NeMo" green using a gradient background trick */
.md-header__topic:first-child .md-ellipsis::after {
content: "NeMo Data Designer";
visibility: visible;
position: absolute;
left: 0;
top: 0;
background: linear-gradient(90deg, #76B900 0%, #76B900 4.8ch, currentColor 4.8ch, currentColor 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Prevent selection of prompt and output markers */
.highlight .gp,
.highlight .go {
user-select: none;
}
/* Reduce space between logo and site name */
.md-header__button.md-logo {
margin-right: -1rem;
}
/* Remove background from Jupyter notebook outputs */
.jp-RenderedText pre,
.jp-OutputArea-output pre,
.output_stderr,
.output_stdout,
.output_stream,
div.output_area pre,
div.output_subarea pre,
.jupyter-wrapper .output_stream,
.jupyter-wrapper .output_stdout,
.jupyter-wrapper .output_stderr,
.jp-RenderedText[data-mime-type="application/vnd.jupyter.stderr"],
.jp-RenderedText[data-mime-type="application/vnd.jupyter.stderr"] pre,
.jp-OutputArea-output[data-mime-type="application/vnd.jupyter.stderr"],
.jp-OutputArea-output[data-mime-type="application/vnd.jupyter.stderr"] pre {
background-color: transparent !important;
}
/* Override stderr-specific styling */
.highlight .err {
background-color: transparent !important;
border: none !important;
}
/* Make notebook cells grow with window size */
.md-content__inner {
max-width: none !important;
}
.md-content__inner:has(.jp-Notebook) {
padding-left: 0rem !important;
padding-right: 0.5rem !important;
}
/* Rich output with horizontal scroll and compact tables */
.jp-RenderedText pre,
.jp-OutputArea-output pre,
.jp-RenderedHTMLCommon pre,
.jp-RenderedHTML pre {
white-space: pre !important;
overflow-x: auto !important;
font-size: 0.6rem !important;
line-height: 1.1 !important;
padding: 0.25rem !important;
margin: 0.25rem 0 !important;
}
/* Narrow sidebar */
.md-sidebar--primary,
.md-sidebar--primary .md-sidebar__scrollwrap {
width: 10rem !important;
}
/* Hide right sidebar (TOC) by default, JavaScript will show it on Concepts and Plugins pages */
.md-sidebar.md-sidebar--secondary {
display: none !important;
}
/* Show TOC on selected pages (controlled by JavaScript) */
body.show-toc .md-sidebar.md-sidebar--secondary {
display: block !important;
}
/* Add color to TOC links on Concepts pages */
body.show-toc .md-sidebar--secondary .md-nav__link {
transition: color 0.2s ease;
}
body.show-toc .md-sidebar--secondary .md-nav__link:hover {
color: #76B900 !important;
}
body.show-toc .md-sidebar--secondary .md-nav__link--active {
color: #76B900 !important;
font-weight: 500;
}
/* Move repo and palette icons to the right */
.md-header__inner {
padding-right: 0rem !important;
}
/* Reduce space between h1 headings and content below */
h1 {
margin-bottom: 0.5rem !important;
}
h2 {
margin-top: 0.2rem !important;
margin-bottom: 0.2rem !important;
}
.md-typeset .devnote-dek {
border-left: 0.18rem solid #76B900;
color: var(--md-default-fg-color);
font-size: 1.05rem;
font-weight: 500;
line-height: 1.45;
margin: 0.6rem 0 1rem;
padding-left: 0.8rem;
}
.md-typeset img.devnote-float-right,
.md-typeset img.devnote-section-graphic {
background: var(--md-default-bg-color);
border: 0.05rem solid var(--md-default-fg-color--lightest);
border-radius: 0.3rem;
box-shadow: 0 0.25rem 0.8rem rgb(0 0 0 / 18%);
}
.md-typeset img.devnote-float-right {
float: right;
width: min(42%, 28rem);
max-width: 100%;
height: auto;
margin: 0 0 0.7rem 1rem;
}
.md-typeset img.devnote-section-graphic {
float: right;
width: min(38%, 24rem);
max-width: 100%;
height: auto;
margin: 0.1rem 0 0.7rem 1rem;
}
.md-typeset .devnote-clear {
clear: right;
}
.md-post--excerpt .devnote-hide-in-index {
display: none;
}
@media screen and (max-width: 60em) {
.md-typeset img.devnote-float-right,
.md-typeset img.devnote-section-graphic {
float: none;
display: block;
width: 100%;
margin: 1rem 0;
}
}
/* Define the company grid layout */
#grid-container {
width: 100%;
text-align: center;
}
#company-grid {
display: inline-block;
margin: 0 auto;
gap: 10px;
align-content: center;
justify-content: center;
grid-auto-flow: column;
}
[data-md-color-scheme="slate"] #company-grid {
background-color: #ffffff;
border-radius: .5rem;
color: black;
}
.tile {
display: inline-block;
text-align: center;
width: 120px;
height: 120px;
margin: 10px;
padding: 5px;
border-radius: .5rem;
}
.tile img {
width: 100px;
}
.md-typeset__table > table {
max-height: 60vh;
docs: graduate plugins out of experimental mode (#603) * chore: add __init__.py to engine namespace subpackages Griffe (used by mkdocstrings) skips directories without __init__.py when resolving module paths, which prevented the new plugins code reference from rendering SeedReader, FileSystemSeedReader, and Processor. Adding empty __init__.py files in engine/resources/, engine/processing/, and engine/processing/processors/ aligns with the convention already used in engine/mcp/, engine/models/, etc. * docs: flesh out docstrings on plugin extension-point classes Plugin authors now see meaningful descriptions for every field and method on the bases rendered in the plugins code reference: - Plugin and PluginType: class docstrings + Attributes tables for fields and enum members; fix typo in config_qualified_name field description. - SingleColumnConfig: document allow_resize. - ProcessorConfig: document processor_type discriminator. - SeedSource: document seed_type discriminator. - FileSystemSeedSource: add class docstring + Attributes table for path / file_pattern / recursive. - ColumnGeneratorFullColumn and ColumnGeneratorCellByCell: add class docstrings explaining when to use each base, plus method docstrings on the abstract generate() implementations. * docs: graduate plugins out of experimental mode Restructures plugin documentation around the now-stable extension points (column generator, seed reader, processor) and treats plugins as a first-class story for customizing Data Designer. - Add code_reference/plugins.md: single-stop reference for the Plugin object and the config + implementation base classes used by all three plugin types. - Add code_reference/generators.md: column generator implementation base classes, separated from column configs. - Surface SingleColumnConfig in code_reference/column_configs.md. - Add plugins/implement.md ("Build Your Own"): per-type implementation instructions across column generators, seed readers, and processors. - Add plugins/processor.md: complete processor plugin package example. - Rewrite plugins/overview.md: open with why plugins exist, drop the internal-helpers note (PluginRegistry / PluginManager), and focus the guide on what plugin builders need. - Refresh plugins/available.md (Catalog) and plugins/filesystem_seed_reader.md to match the new structure. - Delete plugins/example.md (replaced by per-type guides). - Reorder Code Reference nav alphabetically and add the new pages. - Minor link / wording fixes in concepts/processors.md and concepts/deployment-options.md. * docs: simplify plugin docs structure Replace the overview's how-to walkthrough and the per-type plugin guides with a single Build Your Own page that covers all three plugin types side-by-side. Add a dedicated Using Models in Plugins guide and a seed_readers code reference, and trim the overview down to what the plugin types are, how to use one, and how discovery works. - Rename plugins/implement.md to plugins/build_your_own.md. - Delete plugins/filesystem_seed_reader.md and plugins/processor.md (their content is now in build_your_own.md and the per-type code references). - Add plugins/models.md for model-backed column generator authoring. - Add code_reference/seed_readers.md for seed reader implementation base classes. - Rewrite plugins/overview.md: shorter intro, type bullets link to the relevant code reference, drop the multi-step "How do you create plugins" walkthrough in favor of a single Build a Plugin pointer, tighten Discovery troubleshooting. - Refresh plugins/available.md (Available Plugins): point to the DataDesignerPlugins catalog and explain how to request a community listing. - Update cross-page links in concepts/processors.md, concepts/seed-datasets.md, recipes/plugin_development/markdown_seed_reader.md, code_reference/plugins.md, and code_reference/generators.md to match the new structure. - Update mkdocs.yml nav: rename to Build Your Own, add Using Models, add seed_readers code reference. * docs: scroll wide tables horizontally instead of wrapping Code-heavy reference tables (plugin bases, column generators, etc.) were wrapping aggressively on narrow viewports, breaking long identifiers across multiple lines. Switch the table container to horizontal overflow and prevent code cells from wrapping so identifiers stay readable. * docs: address PR #603 review feedback - Add an Implementation base section to code_reference/processors.md rendering the engine-side Processor class. This justifies the engine/processing/__init__.py files added earlier and gives processor plugin authors an auto-rendered API reference, matching the pattern used by code_reference/generators.md and seed_readers.md. - build_your_own.md: replace the placeholder "x" emoji on the IndexMultiplier example with the actual multiplication sign. - build_your_own.md: drop the manual `re.compile + apply(lambda)` pattern in the regex-filter processor in favor of the idiomatic `Series.str.contains(..., regex=True)`. - build_your_own.md: add a kernel-restart caveat after the editable install instructions — PluginRegistry caches discovery on first import, so notebooks need a fresh kernel to pick up freshly installed plugins. - build_your_own.md: state explicitly what `assert_valid_plugin` checks (config base + plugin-type-appropriate impl base). - code_reference/plugins.md: link out to the processors code reference alongside generators and seed_readers. * docs: split code reference by package * docs: add interface code reference * docs: add code reference overviews * docs: refine code reference pages * docs: improve code reference tables * docs: correct reference docstrings * docs: embed plugin catalog table * docs: note plugin discovery restart caveat * docs: explain generator base class choice * docs: mention async cell generator examples * docs: clarify plugin model usage * docs: clarify plugin model aliases * docs: address plugin review feedback * docs: update available plugins page
2026-05-06 22:12:44 +00:00
min-width: 100%;
width: max-content;
}
.md-typeset__table {
display: block;
overflow-x: auto;
}
.md-typeset__table code {
white-space: nowrap;
word-break: normal;
overflow-wrap: normal;
}
.md-typeset__table > table thead {
position: sticky;
top: 0;
background-color: var(--md-default-bg-color);
}
.md-typeset__table > table th {
border-bottom: .05rem solid var(--md-typeset-table-color);
}
.md-typeset__table > table tr:first-child td {
border-top: none;
}