Skip to content

Commit 1cda122

Browse files
committed
chore(docs): fix url asset paths
Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent eddbd96 commit 1cda122

12 files changed

Lines changed: 23 additions & 28 deletions

File tree

‎projects/core/src/avatar/avatar.examples.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const Default = {
2424
exportconstImage={
2525
render: ()=>html`
2626
<nve-avatar>
27-
<imgsrc="static/images/test-image-1.svg" alt="User Avatar" />
27+
<imgsrc="/static/images/test-image-1.svg" alt="User Avatar" />
2828
</nve-avatar>
2929
`};
3030

@@ -100,4 +100,4 @@ export const Color = {
100100
<nve-avatarcolor="brand-green">AV</nve-avatar>
101101
</div>
102102
`
103-
}
103+
}

‎projects/core/src/card/card.examples.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ export const MediaCard = {
6565
render: ()=>html`
6666
<divnve-layout="grid gap:md span-items:6 align:stretch" style="max-width: 900px">
6767
<nve-cardstyle="height: 100%; width: 100%;">
68-
<imgsrc="static/images/test-image-1.svg" alt="example visualization for media card demo" loading="lazy" style="width: 100%; object-fit: cover;" />
68+
<imgsrc="/static/images/test-image-1.svg" alt="example visualization for media card demo" loading="lazy" style="width: 100%; object-fit: cover;" />
6969
<nve-card-content>
7070
<pnve-text="body" style="min-height: 24px">card content</p>
7171
</nve-card-content>
7272
</nve-card>
7373
<nve-cardstyle="height: 100%; width: 100%;">
74-
<imgsrc="static/images/test-image-1.svg" alt="example visualization for media card demo" loading="lazy" style="width: 100%; object-fit: cover;" />
74+
<imgsrc="/static/images/test-image-1.svg" alt="example visualization for media card demo" loading="lazy" style="width: 100%; object-fit: cover;" />
7575
<nve-card-content>
7676
<pnve-text="body" style="min-height: 24px">card content</p>
7777
</nve-card-content>

‎projects/core/src/page/page.examples.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export const LayoutCardGrid = {
946946
<sectionnve-layout="grid span-items:3 gap:md">
947947
${newArray(24).fill('').map(()=>html`
948948
<nve-cardstyle="height: 100%; width: 100%;">
949-
<imgsrc="static/images/test-image-1.svg" alt="example visualization for media card demo" loading="lazy" style="width: 100%; object-fit: cover;" />
949+
<imgsrc="/static/images/test-image-1.svg" alt="example visualization for media card demo" loading="lazy" style="width: 100%; object-fit: cover;" />
950950
<nve-card-content>
951951
<pnve-text="body">•︎•︎•︎ •︎•︎•︎ •︎•︎•︎</p>
952952
</nve-card-content>

‎projects/core/src/progressive-filter-chip/progressive-filter-chip.examples.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const Custom = {
171171
<nve-icon-buttonicon-name="map-pin" readonly></nve-icon-button>
172172
<inputvalue="37.3706254,-121.9671894" disabledaria-label="map coordinates" />
173173
</nve-input>
174-
<imgsrc="static/images/test-map-2.webp" width="300px" alt="non-interactive demo map" />
174+
<imgsrc="/static/images/test-map-2.webp" width="300px" alt="non-interactive demo map" />
175175
</nve-dropdown>
176176
`
177177
}

‎projects/internals/patterns/src/templates.examples.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ export const MediaListView = {
584584
{id: 'av-2833',route: 'Mountain pass',vehicle: 'av-prototype-041',duration: '5h 06m',distance: '312 km'},
585585
].map(d=>html`
586586
<nve-cardstyle="height: 100%; width: 100%;">
587-
<imgsrc="static/images/test-image-1.svg" alt="route preview for ${d.route}" loading="lazy" style="width: 100%; object-fit: cover; max-height: 200px;" />
587+
<imgsrc="/static/images/test-image-1.svg" alt="route preview for ${d.route}" loading="lazy" style="width: 100%; object-fit: cover; max-height: 200px;" />
588588
<nve-card-header>
589589
<h3nve-text="heading sm">${d.route}</h3>
590590
</nve-card-header>

‎projects/site/src/_11ty/layouts/links.test.ts‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ import { relative } from 'node:path';
33
import{fileURLToPath}from'node:url';
44
import{describe,expect,it}from'vitest';
55

6-
constRELATIVE_INTERNAL_LINK_PATTERN=/(?:href=["']|]\()(?:\.\/)?(?:docs|examples|starters)\//;
7-
constBASE_PREFIXED_INTERNAL_LINK_PATTERN=/(?:href=["']|]\()\/elements\/(?:docs|examples|starters)\//;
8-
constJS_RELATIVE_INTERNAL_LINK_PATTERN=/\bhref:\s*['"](?:\.\/)?(?:docs|examples|starters)\//;
9-
constJS_BASE_PREFIXED_INTERNAL_LINK_PATTERN=/\bhref:\s*['"]\/elements\/(?:docs|examples|starters)\//;
6+
constAUTHORED_SITE_SEGMENTS='(?:docs|examples|starters|static)';
7+
constRELATIVE_INTERNAL_LINK_PATTERN=newRegExp(`(?:href=["']|src=["']|]\\()(?:\\.\\/)?${AUTHORED_SITE_SEGMENTS}\\/`);
8+
constBASE_PREFIXED_INTERNAL_LINK_PATTERN=newRegExp(
9+
`(?:href=["']|src=["']|]\\()\\/elements\\/${AUTHORED_SITE_SEGMENTS}\\/`
10+
);
11+
constJS_RELATIVE_INTERNAL_LINK_PATTERN=newRegExp(`\\b(?:href|src):\\s*['"](?:\\.\\/)?${AUTHORED_SITE_SEGMENTS}\\/`);
12+
constJS_BASE_PREFIXED_INTERNAL_LINK_PATTERN=newRegExp(
13+
`\\b(?:href|src):\\s*['"]\\/elements\\/${AUTHORED_SITE_SEGMENTS}\\/`
14+
);
1015

1116
asyncfunctiongetAuthoredFiles(dir: URL): Promise<URL[]>{
1217
constentries=awaitreaddir(dir,{withFileTypes: true});

‎projects/site/src/_internal/theme-preview/theme-preview.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class ThemePreview extends LitElement {
215215
<divclass="bento-box-column">
216216
<nve-card>
217217
<img
218-
src="static/images/test-image-1.svg"
218+
src="/static/images/test-image-1.svg"
219219
alt="example visualization for media card demo"
220220
loading="lazy"
221221
style="width: calc(var(--nve-ref-scale-size) * 160px + var(--nve-ref-scale-text) * 160px); object-fit: cover; aspect-ratio: 16 / 9;" />

‎projects/site/src/docs/about/contributions.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This guide facilitates and streamlines your contribution process and helps ensur
1313
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.
1414
The main focus is to enable you to deliver value to your users.
1515

16-
<imgsrc="static/images/contributions.drawio.svg"alt="Flowchart for evaluating a potential Elements contribution against existing features, similar patterns, and whether to use, request, or build custom functionality."style="padding: 12px000" />
16+
<imgsrc="/static/images/contributions.drawio.svg"alt="Flowchart for evaluating a potential Elements contribution against existing features, similar patterns, and whether to use, request, or build custom functionality."style="padding: 12px000" />
1717

1818
## Types of Contributions
1919

@@ -37,7 +37,7 @@ The main focus is to enable you to deliver value to your users.
3737

3838
## Bug Reporting
3939

40-
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.
40+
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.
4141

4242
## Feature Requests
4343

‎projects/site/src/docs/about/requests.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
# {{ title }}
1010

11-
<imgsrc="static/images/requests.drawio.svg"alt="Flowchart for reviewing Elements requests across feature, support, and bug paths, including backlog, implementation, workaround, fix, and release decisions."class="full-width" />
11+
<imgsrc="/static/images/requests.drawio.svg"alt="Flowchart for reviewing Elements requests across feature, support, and bug paths, including backlog, implementation, workaround, fix, and release decisions."class="full-width" />

‎projects/site/src/docs/about/support.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
## Frameworks
2323

24-
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.
24+
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.
2525

2626
<sectionnve-layout="row gap:sm align:wrap">
2727
<nve-button>
@@ -49,7 +49,7 @@ Elements [supports a wide variety](https://custom-elements-everywhere.com) of Ja
4949
<a href="/docs/integrations/solidjs/">{% svg-logo 'solidjs' '18' %} SolidJS</a>
5050
</nve-button>
5151
<nve-button>
52-
<a href="/docs/about/installation/">{% svg-logo 'javascript' '18' %} JavaScript</a>
52+
<a href="/docs/integrations/installation/">{% svg-logo 'javascript' '18' %} JavaScript</a>
5353
</nve-button>
5454
</section>
5555

0 commit comments

Comments
 (0)