Skip to content

Commit d9f75d0

Browse files
committed
chore(docs): fix base url paths
- Changed internal links in documentation to use root-relative paths for consistency. - Added a new transform for site URLs to ensure correct linking in different environments. - Updated various files to reflect these changes, including configuration and layout files. - Added tests to verify that all internal links are correctly formatted. Signed-off-by: Cory Rylan <crylan@nvidia.com>
1 parent d01f774 commit d9f75d0

89 files changed

Lines changed: 1443 additions & 690 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pnpm-lock.yaml

Lines changed: 46 additions & 128 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ packages:
2323
- projects/cli
2424
- projects/code
2525
- projects/lint
26-
- projects/snippets
2726
- projects/markdown
2827
- projects/media
2928
- projects/monaco
@@ -47,6 +46,7 @@ overrides:
4746
eslint: 'catalog:'
4847
fast-uri: 3.1.2
4948
liquidjs: 10.26.0
49+
shell-quote: 1.8.4
5050
tmp: 0.2.6
5151

5252
# version ranges for published package dependencies

projects/core/src/chat-message/chat-message.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import globalStyles from './chat-message.global.css?inline';
2626
* @cssprop --line-height
2727
* @cssprop --overflow
2828
* @cssprop --top-offset - Vertical offset for aligning message with avatar
29-
3029
* @aria https://www.w3.org/WAI/ARIA/apg/patterns/alert/
31-
* @stable false
3230
*/
3331
export class ChatMessage extends LitElement {
3432
static styles = useStyles([styles, colorStateStyles]);

projects/core/src/dropdown-group/dropdown-group.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import globalStyles from './dropdown-group.global.css?inline';
2626
* @cssprop --nve-dropdown-group-transition
2727
* @cssprop --arrow-transform - Transform applied to the popover arrow
2828
* @aria https://www.w3.org/WAI/ARIA/apg/patterns/menubar/
29-
* @stable false
3029
*/
3130
@audit()
3231
export class DropdownGroup extends LitElement {

projects/core/src/dropzone/dropzone.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import { fileTypeValidator, fileSizeValidator, getFileTypeSpecifiers } from './d
3333
* @slot content - default slot for content
3434
* @csspart icon - The upload icon element
3535
* @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file
36-
* @stable false
3736
*/
3837
@scopedRegistry()
3938
export class Dropzone extends FormControlMixin<typeof LitElement, File[]>(LitElement) {

projects/core/src/format-datetime/format-datetime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import styles from './format-datetime.css?inline';
1313
* @since 0.0.0
1414
* @entrypoint \@nvidia-elements/core/format-datetime
1515
* @slot - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.
16+
* @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time
1617
*/
1718
@typeSSR()
1819
export class FormatDatetime extends LitElement {

projects/core/src/format-number/format-number.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const NUMBER_KEYS: [keyof FormatNumber, string][] = [
3838
* @since 0.0.0
3939
* @entrypoint \@nvidia-elements/core/format-number
4040
* @slot - Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration.
41+
* @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data
4142
*/
4243
@typeSSR()
4344
export class FormatNumber extends LitElement {

projects/core/src/format-relative-time/format-relative-time.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const THRESHOLDS: { unit: TimeUnitOption; max: number }[] = [
3535
* @since 0.0.0
3636
* @entrypoint \@nvidia-elements/core/format-relative-time
3737
* @slot - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.
38+
* @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time
3839
*/
3940
@typeSSR()
4041
export class FormatRelativeTime extends LitElement {

projects/core/src/tabs/tabs.examples.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ export const Links = {
145145
render: () => html`
146146
<nve-tabs>
147147
<nve-tabs-item selected>
148-
<a href="./docs/elements/tabs/#links">Tab 1</a>
148+
<a href="#links">Tab 1</a>
149149
</nve-tabs-item>
150150
<nve-tabs-item>
151-
<a href="./docs/elements/tabs/#links">Tab 2</a>
151+
<a href="#links">Tab 2</a>
152152
</nve-tabs-item>
153153
<nve-tabs-item>
154-
<a href="/docs/elements/tabs/#links">Tab 3</a>
154+
<a href="#links">Tab 3</a>
155155
</nve-tabs-item>
156156
</nve-tabs>`
157157
};

projects/core/src/toggletip/toggletip-footer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import styles from './toggletip-footer.css?inline';
1414
* @cssprop --border-top
1515
* @cssprop --padding
1616
* @cssprop --gap
17-
*
17+
* @aria https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
1818
*/
1919
@audit()
2020
export class ToggletipFooter extends LitElement {

0 commit comments

Comments
 (0)