Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/angular/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ export default createDocsSite({
})),
packages: Object.values(IGDOCS_PLATFORMS)
.filter(p => p.lang === docsLang)
.map(({ label, key, base: b }) => ({
.map(({ label, key, base, root }) => ({
label,
value: key,
href: mode === 'production' ? `${PROD_HOST}${b}/` : `${STAGING_HOST}${b}/`,
href: mode === 'production' ? `${PROD_HOST}${base}${root}` : `${STAGING_HOST}${base}${root}`,
})),
selectedPackage: 'angular',
source: {
Expand Down
4 changes: 2 additions & 2 deletions docs/xplat/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ export default createDocsSite({
})),
packages: Object.values(PLATFORMS)
.filter(p => p.lang === lang)
.map(({ label, key, base: b }) => ({
.map(({ label, key, base, root }) => ({
label,
value: key,
href: mode === 'production' ? `${PROD_HOST}${b}/` : `${STAGING_HOST}${b}/`,
href: mode === 'production' ? `${PROD_HOST}${base}${root}` : `${STAGING_HOST}${base}${root}`,
})),
selectedPackage: p.key,
head: [
Expand Down
9 changes: 9 additions & 0 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface PlatformMeta {
title: string; description: string;
key: PlatformKey; devPort: number;
base: string; label: string;
root: string;
lang: NavLang;
}

Expand Down Expand Up @@ -183,24 +184,28 @@ export const IGDOCS_PLATFORMS: Record<string, PlatformMeta> = {
Angular: {
lang: 'en', label: 'Angular', key: 'angular', devPort: 4331,
base: '/products/ignite-ui-angular/angular/components',
root: '/general/getting-started',
title: 'Ignite UI for Angular',
description: 'Component documentation for Ignite UI for Angular.',
Comment thread
ChronosSF marked this conversation as resolved.
},
React: {
lang: 'en', label: 'React', key: 'react', devPort: 4332,
base: '/products/ignite-ui-react/react/components',
root: '/general-getting-started',
title: 'Ignite UI for React',
description: 'Component documentation for Ignite UI for React.',
},
WebComponents: {
lang: 'en', label: 'Web Components', key: 'web-components', devPort: 4333,
base: '/products/ignite-ui-web-components/web-components/components',
root: '/general-getting-started',
title: 'Ignite UI for Web Components',
description: 'Component documentation for Ignite UI for Web Components.',
},
Blazor: {
lang: 'en', label: 'Blazor', key: 'blazor', devPort: 4334,
base: '/products/ignite-ui-blazor/blazor/components',
root: '/general-getting-started',
title: 'Ignite UI for Blazor',
description: 'Component documentation for Ignite UI for Blazor.',
},
Expand All @@ -209,24 +214,28 @@ export const IGDOCS_PLATFORMS: Record<string, PlatformMeta> = {
AngularJP: {
lang: 'jp', label: 'Angular', key: 'angular', devPort: 4341,
base: '/products/ignite-ui-angular/angular/components',
root: '/general/getting-started',
title: 'Ignite UI for Angular',
description: 'Component documentation for Ignite UI for Angular.',
Comment thread
ChronosSF marked this conversation as resolved.
},
ReactJP: {
lang: 'jp', label: 'React', key: 'react', devPort: 4342,
base: '/products/ignite-ui-react/react/components',
root: '/general-getting-started',
title: 'Ignite UI for React',
description: 'Component documentation for Ignite UI for React.',
},
WebComponentsJP: {
lang: 'jp', label: 'Web Components', key: 'web-components', devPort: 4343,
base: '/products/ignite-ui-web-components/web-components/components',
root: '/general-getting-started',
title: 'Ignite UI for Web Components',
description: 'Component documentation for Ignite UI for Web Components.',
},
BlazorJP: {
lang: 'jp', label: 'Blazor', key: 'blazor', devPort: 4344,
base: '/products/ignite-ui-blazor/blazor/components',
root: '/general-getting-started',
title: 'Ignite UI for Blazor',
description: 'Component documentation for Ignite UI for Blazor.',
},
Expand Down
Loading