Skip to content

chore(docs): add design md file - #195

Merged
coryrylan merged 1 commit into
mainfrom
topic-design-md
Jul 28, 2026
Merged

chore(docs): add design md file#195
coryrylan merged 1 commit into
mainfrom
topic-design-md

Conversation

@coryrylan

@coryrylan coryrylan commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator
  • Create DESIGN.md with structured content for design tokens and guidelines.
  • Update .vale.ini to include DESIGN.md for style checks.
  • Modify package.json and pnpm-workspace.yaml to include design project paths.
  • Implement build scripts and ESLint configuration for the design project.
  • Enhance site navigation and metadata to link to DESIGN.md.

Summary by CodeRabbit

  • New Features
    • Added an official DESIGN.md for NVIDIA Elements, covering design tokens, UI/component guidance, accessibility, and layout/elevation conventions.
    • Published a new site landing page for DESIGN.md, including download and repository links.
    • Integrated DESIGN.md into navigation, sitemap indexing, and page-specific Markdown alternate link handling.
  • Documentation
    • Linked the official DESIGN.md from the README.
  • Tests
    • Added automated generation and verification to ensure the published DESIGN.md matches the generator output.

@coryrylan
coryrylan requested a review from johnyanarella July 28, 2026 18:39
@coryrylan coryrylan self-assigned this Jul 28, 2026
Copilot AI review requested due to automatic review settings July 28, 2026 18:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added scope(ci) scope(internals) scope(docs) dependencies Pull requests that update a dependency file labels Jul 28, 2026
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds a generated NVIDIA Elements DESIGN.md, packages its generation and validation in a private workspace, wires it into the site build, and exposes it through documentation navigation, metadata, sitemap indexing, and homepage links.

Changes

DESIGN.md delivery

Layer / File(s) Summary
Generate and validate DESIGN.md
projects/internals/design/..., DESIGN.md
Theme tokens are resolved into DESIGN.md front matter and documentation, with generation scripts, package commands, lint configuration, synchronization tests, and checked-in output.
Wire workspace and site build
package.json, pnpm-workspace.yaml, projects/site/package.json, projects/site/eleventy.config.js, projects/site/src/_11ty/plugins/design-md.js
The design workspace is registered in repository tooling, built as a site dependency, and copied into the public site output during Eleventy builds.
Expose and index DESIGN.md
.vale.ini, README.md, projects/site/src/docs/design-md/index.md, projects/site/src/_11ty/layouts/*, projects/site/src/_11ty/plugins/sitemap-xml*, projects/site/src/index.md
The documentation route, navigation, alternate Markdown metadata, homepage link, Vale scope, and sitemap entry are added and tested.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant DesignPackage
  participant Eleventy
  participant designMdPlugin
  participant PublicSite
  DesignPackage->>DesignPackage: build dist/DESIGN.md
  Eleventy->>designMdPlugin: run eleventy.before hook
  designMdPlugin->>PublicSite: copy DESIGN.md to public output
Loading

Suggested labels: scope(code), scope(markdown)

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding a new DESIGN.md document.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch topic-design-md

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

projects/site/eleventy.config.js

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.

projects/site/package.json

ESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox.

projects/site/src/_11ty/layouts/common.js

ESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox.

  • 4 others

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@projects/internals/design/package.json`:
- Around line 51-59: Update the sync:root task’s output declaration to
../../../DESIGN.md so it matches the artifact written by its command, while
leaving the existing command and inputs unchanged.

In `@projects/internals/design/src/design-md.js`:
- Line 203: Update the Markdown sentence near the llms.txt link to use the
complete phrasing “All APIs are available in [llms.txt](...)”, preserving the
existing link target and technical writing style.
- Around line 65-88: Update resolveTokenValue’s scale-expression branch to add
the current tokenName to resolving before recursively resolving product[1], then
remove it after resolution while preserving the existing circular-reference
error behavior. Ensure cycles involving scale expressions are detected without
affecting non-cyclic token resolution.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 6ee985f5-ce59-4a8f-9faf-78382cecfe61

📥 Commits

Reviewing files that changed from the base of the PR and between 29211a7 and 635493b.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (20)
  • .vale.ini
  • DESIGN.md
  • README.md
  • package.json
  • pnpm-workspace.yaml
  • projects/internals/design/README.md
  • projects/internals/design/eslint.config.js
  • projects/internals/design/package.json
  • projects/internals/design/scripts/write-design-md.js
  • projects/internals/design/src/design-md.js
  • projects/internals/design/src/design-md.test.js
  • projects/site/eleventy.config.js
  • projects/site/package.json
  • projects/site/src/_11ty/layouts/common.js
  • projects/site/src/_11ty/layouts/metadata.test.ts
  • projects/site/src/_11ty/plugins/design-md.js
  • projects/site/src/_11ty/plugins/sitemap-xml.js
  • projects/site/src/_11ty/plugins/sitemap-xml.test.ts
  • projects/site/src/docs/design-md/index.md
  • projects/site/src/index.md

Comment thread projects/internals/design/package.json
Comment thread projects/internals/design/src/design-md.js
Comment thread projects/internals/design/src/design-md.js
- Create DESIGN.md with structured content for design tokens and guidelines.
- Update .vale.ini to include DESIGN.md for style checks.
- Modify package.json and pnpm-workspace.yaml to include design project paths.
- Implement build scripts and ESLint configuration for the design project.
- Enhance site navigation and metadata to link to DESIGN.md.

Signed-off-by: Cory Rylan <crylan@nvidia.com>
Copilot AI review requested due to automatic review settings July 28, 2026 21:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.vale.ini:
- Around line 24-26: Update the [DESIGN.md] Vale configuration to remove the
empty BasedOnStyles override, restoring inherited Vale styles and repository
writing checks; only retain an override if DESIGN.md is generated and the
configuration documents a justified exception with dedicated validation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 7ef000e8-9ba0-4578-8100-ce04ce7dc4b7

📥 Commits

Reviewing files that changed from the base of the PR and between 635493b and 5fe2142.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (20)
  • .vale.ini
  • DESIGN.md
  • README.md
  • package.json
  • pnpm-workspace.yaml
  • projects/internals/design/README.md
  • projects/internals/design/eslint.config.js
  • projects/internals/design/package.json
  • projects/internals/design/scripts/write-design-md.js
  • projects/internals/design/src/design-md.js
  • projects/internals/design/src/design-md.test.js
  • projects/site/eleventy.config.js
  • projects/site/package.json
  • projects/site/src/_11ty/layouts/common.js
  • projects/site/src/_11ty/layouts/metadata.test.ts
  • projects/site/src/_11ty/plugins/design-md.js
  • projects/site/src/_11ty/plugins/sitemap-xml.js
  • projects/site/src/_11ty/plugins/sitemap-xml.test.ts
  • projects/site/src/docs/design-md/index.md
  • projects/site/src/index.md

Comment thread .vale.ini
@coryrylan
coryrylan merged commit 5c63566 into main Jul 28, 2026
15 checks passed
@coryrylan
coryrylan deleted the topic-design-md branch July 28, 2026 21:43
@coderabbitai coderabbitai Bot mentioned this pull request Jul 28, 2026
@coryrylan

Copy link
Copy Markdown
Collaborator Author

🎉 This issue has been resolved in version 2.1.8 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator Author

🎉 This issue has been resolved in version 2.2.2 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator Author

🎉 This issue has been resolved in version 2.1.2 🎉

Changelog

@coryrylan

Copy link
Copy Markdown
Collaborator Author

🎉 This issue has been resolved in version 2.3.0 🎉

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants