Skip to content

Commit

Permalink
updating crossplatform urls to use 'cross' instead of 'crossplatform'
Browse files Browse the repository at this point in the history
  • Loading branch information
sopranopillow committed Oct 30, 2022
1 parent 8c950e1 commit 5386d68
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { INavPage, LoadingComponent } from '@fluentui/react-docsite-components/l
export const controlsPagesCrossPlatform: INavPage[] = [
{
title: 'Controls',
url: '#/controls/crossplatform',
url: '#/controls/cross',
isHiddenFromMainNav: true,
component: () => <LoadingComponent title="Controls" />,
getComponent: cb =>
Expand All @@ -18,14 +18,14 @@ export const controlsPagesCrossPlatform: INavPage[] = [
pages: [
{
title: 'Button',
url: '#/controls/crossplatform/button',
url: '#/controls/cross/button',
component: () => <LoadingComponent title="Button" />,
getComponent: cb =>
require.ensure([], require => cb(require<any>('../../../pages/Controls/ButtonPage/ButtonPage').ButtonPage)),
},
{
title: 'Link',
url: '#/controls/crossplatform/link',
url: '#/controls/cross/link',
component: () => <LoadingComponent title="Link" />,
getComponent: cb =>
require.ensure([], require => cb(require<any>('../../../pages/Controls/LinkPage/LinkPage').LinkPage)),
Expand All @@ -38,7 +38,7 @@ export const controlsPagesCrossPlatform: INavPage[] = [
pages: [
{
title: 'Persona',
url: '#/controls/crossplatform/persona',
url: '#/controls/cross/persona',
component: () => <LoadingComponent title="Persona" />,
getComponent: cb =>
require.ensure([], require =>
Expand All @@ -53,14 +53,14 @@ export const controlsPagesCrossPlatform: INavPage[] = [
pages: [
{
title: 'Text',
url: '#/controls/crossplatform/text',
url: '#/controls/cross/text',
component: () => <LoadingComponent title="Text" />,
getComponent: cb =>
require.ensure([], require => cb(require<any>('../../../pages/Controls/TextPage/TextPage').TextPage)),
},
{
title: 'Separator',
url: '#/controls/crossplatform/separator',
url: '#/controls/cross/separator',
component: () => <LoadingComponent title="Separator" />,
getComponent: cb =>
require.ensure([], require =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const GetStartedPages: INavPage = {
cross: [
{
title: 'Get started',
url: '#/get-started/crossplatform',
url: '#/get-started/cross',
isHiddenFromMainNav: true,
component: () => <LoadingComponent title="Get started" />,
getComponent: cb =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const related: ISideRailLink[] = [
{ text: 'iOS Button', url: '#/controls/ios/button' },
{ text: 'Android Button', url: '#/controls/android/button' },
{ text: 'macOS Button', url: '#/controls/mac/button' },
{ text: 'Cross-platform Button', url: '#/controls/crossplatform/button' },
{ text: 'Cross-platform Button', url: '#/controls/cross/button' },
];
const componentUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Controls/ButtonPage';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ISideRailLink } from '@fluentui/react-docsite-components/lib/index2';
const related: ISideRailLink[] = [
{ text: 'Web Link', url: '#/controls/web/link' },
{ text: 'macOS Link', url: '#/controls/mac/link' },
{ text: 'Cross-platform Link', url: '#/controls/crossplatform/link' },
{ text: 'Cross-platform Link', url: '#/controls/cross/link' },
];
const componentUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Controls/LinkPage';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const related: ISideRailLink[] = [
{ text: 'iOS Persona', url: '#/controls/ios/persona' },
{ text: 'Android Persona', url: '#/controls/android/persona' },
{ text: 'macOS Avatar', url: '#/controls/mac/avatar' },
{ text: 'Cross-platform Persona', url: '#/controls/crossplatform/persona' },
{ text: 'Cross-platform Persona', url: '#/controls/cross/persona' },
];
const componentUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Controls/PersonaPage';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const related: ISideRailLink[] = [
{ text: 'Android Separator', url: '#/controls/android/separator' },
{ text: 'Android ListItemDivider', url: '#/controls/android/listcells' },
{ text: 'macOS Separator', url: '#/controls/mac/separator' },
{ text: 'Cross-platform Separator', url: '#/controls/crossplatform/separator' },
{ text: 'Cross-platform Separator', url: '#/controls/cross/separator' },
];
const componentUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Controls/SeparatorPage';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const related: ISideRailLink[] = [
{ text: 'Web Text', url: '#/controls/web/text' },
{ text: 'iOS Text', url: '#/controls/ios/text' },
{ text: 'Android Text', url: '#/controls/android/text' },
{ text: 'Cross-platform Text', url: '#/controls/crossplatform/text' },
{ text: 'Cross-platform Text', url: '#/controls/cross/text' },
];
const componentUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Controls/TextPage';
Expand Down
4 changes: 2 additions & 2 deletions apps/public-docsite/src/pages/HomePage/HomePage.base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ export class HomePageBase extends React.Component<IHomePageProps, IHomePageState
</TitleStack>
<ul className={classNames.cardList}>
<li className={classNames.cardListItem}>
{this._renderLink('#/controls/crossplatform', 'Controls', { ariaLabel: 'Controls: Cross-platform' })}
{this._renderLink('#/controls/cross', 'Controls', { ariaLabel: 'Controls: Cross-platform' })}
</li>
<li className={classNames.cardListItem}>
{this._renderLink('#/get-started/crossplatform', 'Get started', {
{this._renderLink('#/get-started/cross', 'Get started', {
ariaLabel: 'Get started: Cross-platform',
})}
</li>
Expand Down

0 comments on commit 5386d68

Please sign in to comment.