From c662de8d1491a7cda49599c293b2c8fd449cc182 Mon Sep 17 00:00:00 2001 From: Cory Rylan Date: Tue, 23 Jun 2026 15:19:25 -0500 Subject: [PATCH] chore(docs): fix url asset paths Signed-off-by: Cory Rylan --- projects/core/src/avatar/avatar.examples.ts | 4 ++-- projects/core/src/card/card.examples.ts | 4 ++-- projects/core/src/page/page.examples.ts | 2 +- .../progressive-filter-chip.examples.ts | 2 +- .../internals/patterns/src/templates.examples.ts | 2 +- projects/site/src/_11ty/layouts/links.test.ts | 13 +++++++++---- .../src/_internal/theme-preview/theme-preview.ts | 2 +- projects/site/src/docs/about/contributions.md | 4 ++-- projects/site/src/docs/about/requests.md | 2 +- projects/site/src/docs/about/support.md | 4 ++-- .../site/src/docs/foundations/themes/index.11ty.js | 10 ---------- projects/site/src/docs/integrations/angular.md | 2 +- 12 files changed, 23 insertions(+), 28 deletions(-) diff --git a/projects/core/src/avatar/avatar.examples.ts b/projects/core/src/avatar/avatar.examples.ts index 879cb1369..0e0f73532 100644 --- a/projects/core/src/avatar/avatar.examples.ts +++ b/projects/core/src/avatar/avatar.examples.ts @@ -24,7 +24,7 @@ export const Default = { export const Image = { render: () => html` - User Avatar + User Avatar `}; @@ -100,4 +100,4 @@ export const Color = { AV ` -} \ No newline at end of file +} diff --git a/projects/core/src/card/card.examples.ts b/projects/core/src/card/card.examples.ts index abb192f9b..d4a18c879 100644 --- a/projects/core/src/card/card.examples.ts +++ b/projects/core/src/card/card.examples.ts @@ -65,13 +65,13 @@ export const MediaCard = { render: () => html`
- example visualization for media card demo + example visualization for media card demo

card content

- example visualization for media card demo + example visualization for media card demo

card content

diff --git a/projects/core/src/page/page.examples.ts b/projects/core/src/page/page.examples.ts index 1e09031bc..af40e7ec4 100644 --- a/projects/core/src/page/page.examples.ts +++ b/projects/core/src/page/page.examples.ts @@ -946,7 +946,7 @@ export const LayoutCardGrid = {
${new Array(24).fill('').map(() => html` - example visualization for media card demo + example visualization for media card demo

•︎•︎•︎ •︎•︎•︎ •︎•︎•︎

diff --git a/projects/core/src/progressive-filter-chip/progressive-filter-chip.examples.ts b/projects/core/src/progressive-filter-chip/progressive-filter-chip.examples.ts index 69b6f7d5a..888a6cf2b 100644 --- a/projects/core/src/progressive-filter-chip/progressive-filter-chip.examples.ts +++ b/projects/core/src/progressive-filter-chip/progressive-filter-chip.examples.ts @@ -171,7 +171,7 @@ export const Custom = { - non-interactive demo map + non-interactive demo map ` } diff --git a/projects/internals/patterns/src/templates.examples.ts b/projects/internals/patterns/src/templates.examples.ts index 2b6c65ced..b7425e56d 100644 --- a/projects/internals/patterns/src/templates.examples.ts +++ b/projects/internals/patterns/src/templates.examples.ts @@ -584,7 +584,7 @@ export const MediaListView = { { id: 'av-2833', route: 'Mountain pass', vehicle: 'av-prototype-041', duration: '5h 06m', distance: '312 km' }, ].map(d => html` - route preview for ${d.route} + route preview for ${d.route}

${d.route}

diff --git a/projects/site/src/_11ty/layouts/links.test.ts b/projects/site/src/_11ty/layouts/links.test.ts index c8b789179..2e49d7653 100644 --- a/projects/site/src/_11ty/layouts/links.test.ts +++ b/projects/site/src/_11ty/layouts/links.test.ts @@ -3,10 +3,15 @@ import { relative } from 'node:path'; import { fileURLToPath } from 'node:url'; import { describe, expect, it } from 'vitest'; -const RELATIVE_INTERNAL_LINK_PATTERN = /(?:href=["']|]\()(?:\.\/)?(?:docs|examples|starters)\//; -const BASE_PREFIXED_INTERNAL_LINK_PATTERN = /(?:href=["']|]\()\/elements\/(?:docs|examples|starters)\//; -const JS_RELATIVE_INTERNAL_LINK_PATTERN = /\bhref:\s*['"](?:\.\/)?(?:docs|examples|starters)\//; -const JS_BASE_PREFIXED_INTERNAL_LINK_PATTERN = /\bhref:\s*['"]\/elements\/(?:docs|examples|starters)\//; +const AUTHORED_SITE_SEGMENTS = '(?:docs|examples|starters|static)'; +const RELATIVE_INTERNAL_LINK_PATTERN = new RegExp(`(?:href=["']|src=["']|]\\()(?:\\.\\/)?${AUTHORED_SITE_SEGMENTS}\\/`); +const BASE_PREFIXED_INTERNAL_LINK_PATTERN = new RegExp( + `(?:href=["']|src=["']|]\\()\\/elements\\/${AUTHORED_SITE_SEGMENTS}\\/` +); +const JS_RELATIVE_INTERNAL_LINK_PATTERN = new RegExp(`\\b(?:href|src):\\s*['"](?:\\.\\/)?${AUTHORED_SITE_SEGMENTS}\\/`); +const JS_BASE_PREFIXED_INTERNAL_LINK_PATTERN = new RegExp( + `\\b(?:href|src):\\s*['"]\\/elements\\/${AUTHORED_SITE_SEGMENTS}\\/` +); async function getAuthoredFiles(dir: URL): Promise { const entries = await readdir(dir, { withFileTypes: true }); diff --git a/projects/site/src/_internal/theme-preview/theme-preview.ts b/projects/site/src/_internal/theme-preview/theme-preview.ts index fef3018e7..ddbce6c42 100644 --- a/projects/site/src/_internal/theme-preview/theme-preview.ts +++ b/projects/site/src/_internal/theme-preview/theme-preview.ts @@ -215,7 +215,7 @@ export class ThemePreview extends LitElement {
example visualization for media card demo diff --git a/projects/site/src/docs/about/contributions.md b/projects/site/src/docs/about/contributions.md index 92b6a0941..c80fce934 100644 --- a/projects/site/src/docs/about/contributions.md +++ b/projects/site/src/docs/about/contributions.md @@ -13,7 +13,7 @@ This guide facilitates and streamlines your contribution process and helps ensur The team may not accept all contributions or may need more time before implementation. Take into account that a design system component or pattern requires a significant amount of time. Each use case, many apps, frameworks, API design, and guidelines applicable to all must be carefully considered. The main focus is to enable you to deliver value to your users. -Flowchart for evaluating a potential Elements contribution against existing features, similar patterns, and whether to use, request, or build custom functionality. +Flowchart for evaluating a potential Elements contribution against existing features, similar patterns, and whether to use, request, or build custom functionality. ## Types of Contributions @@ -37,7 +37,7 @@ The main focus is to enable you to deliver value to your users. ## Bug Reporting -1. **Create a new issue** using the [bug template]({{ELEMENTS_REPO_BASE_URL}}/-/issues/new?issuable_template=default), providing as much detail as you can about the problem and how to reproduce it. Use the [Elements Playground]({{ELEMENTS_PLAYGROUND_BASE_URL}}/ui/elements-playground) to provide a minimal reproducible example if possible. +1. **Create a new issue** using the [bug template]({{ELEMENTS_REPO_BASE_URL}}/-/issues/new?issuable_template=default), providing as much detail as you can about the problem and how to reproduce it. Use the [Elements Playground]({{ELEMENTS_PLAYGROUND_BASE_URL}}/ui/elements-playground/browse.html) to provide a minimal reproducible example if possible. ## Feature Requests diff --git a/projects/site/src/docs/about/requests.md b/projects/site/src/docs/about/requests.md index b24b9da65..204d2eacc 100644 --- a/projects/site/src/docs/about/requests.md +++ b/projects/site/src/docs/about/requests.md @@ -8,4 +8,4 @@ # {{ title }} -Flowchart for reviewing Elements requests across feature, support, and bug paths, including backlog, implementation, workaround, fix, and release decisions. +Flowchart for reviewing Elements requests across feature, support, and bug paths, including backlog, implementation, workaround, fix, and release decisions. diff --git a/projects/site/src/docs/about/support.md b/projects/site/src/docs/about/support.md index 46a79be29..8208edc72 100644 --- a/projects/site/src/docs/about/support.md +++ b/projects/site/src/docs/about/support.md @@ -21,7 +21,7 @@ ## Frameworks -Elements [supports a wide variety](https://custom-elements-everywhere.com) of JavaScript frameworks and libraries as well as vanilla JS. Read more at the [installation](/docs/about/installation/) page. +Elements [supports a wide variety](https://custom-elements-everywhere.com) of JavaScript frameworks and libraries as well as vanilla JS. Read more at the [installation](/docs/integrations/installation/) page.
@@ -49,7 +49,7 @@ Elements [supports a wide variety](https://custom-elements-everywhere.com) of Ja {% svg-logo 'solidjs' '18' %} SolidJS - {% svg-logo 'javascript' '18' %} JavaScript + {% svg-logo 'javascript' '18' %} JavaScript
diff --git a/projects/site/src/docs/foundations/themes/index.11ty.js b/projects/site/src/docs/foundations/themes/index.11ty.js index fab9fdf5c..e7c9bb265 100644 --- a/projects/site/src/docs/foundations/themes/index.11ty.js +++ b/projects/site/src/docs/foundations/themes/index.11ty.js @@ -81,16 +81,6 @@ ${getThemeDemo('debug')} \`\`\` ${getThemeDemo('high-contrast')} - -## Brand - -The \`brand\` theme is a set of themes that are designed to be used with the \`@nvidia-elements/brand\` package. -[Learn more](/docs/labs/brand/). - -\`\`\`css -\`\`\` - -${getThemeDemo('brand-dark')} `, 'md' ); diff --git a/projects/site/src/docs/integrations/angular.md b/projects/site/src/docs/integrations/angular.md index 1aa1d3200..13c6915a7 100644 --- a/projects/site/src/docs/integrations/angular.md +++ b/projects/site/src/docs/integrations/angular.md @@ -47,7 +47,7 @@ Properties and events then work via the standard Angular template syntax. Elements provides a suite of form components that leverage standard HTML input types. This enables frameworks to take advantage of built in framework features like [Angular Reactive Forms](https://angular.io/guide/reactive-forms) for managing form validation and state. -To integrate custom form control types into Elements checkout the custom control documentation. +To integrate custom form control types into Elements checkout the custom control documentation. ```html