Skip to content

Commit

Permalink
fix(docs): handle composed names for zeroheight links
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and dpellier committed Jul 29, 2024
1 parent 87350ef commit 7377f0b
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsBadge from '@ovhcloud/ods-components/src/components/badge/d
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as BadgeStories from './badge.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ BadgeStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Badge show concise metadata or the current status for an item, in a compact form

<Canvas of={ BadgeStories.Default } sourceState='none' />

<DocNavigator of={ BadgeStories } />
<DocNavigator of={ BadgeStories } linkId={ LINK_ID.BADGE } />

<Markdown>{ SpecificationsBadge }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsBreadcrumb from '@ovhcloud/ods-components/src/components/br
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as BreadcrumbStories from './breadcrumb.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ BreadcrumbStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ A list of links showing the current page location in the navigational hierarchy:

<Canvas of={ BreadcrumbStories.Default } sourceState='none' />

<DocNavigator of={ BreadcrumbStories } />
<DocNavigator of={ BreadcrumbStories } linkId={ LINK_ID.BREADCRUMB } />

<Markdown>{ SpecificationsBreadcrumb }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsButton from '@ovhcloud/ods-components/src/components/button
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as ButtonStories from './button.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ ButtonStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Button component aims to initiate an action. Its text indicates the related inte

<Canvas of={ ButtonStories.Default } sourceState='none' />

<DocNavigator of={ ButtonStories } />
<DocNavigator of={ ButtonStories } linkId={ LINK_ID.BUTTON } />

<Markdown>{ SpecificationsButton }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsClipboard from '@ovhcloud/ods-components/src/components/cli
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as ClipboardStories from './clipboard.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ ClipboardStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Clipboard component allows user to preview and copy crucial information to its c

<Canvas of={ ClipboardStories.Default } sourceState='none' />

<DocNavigator of={ ClipboardStories } />
<DocNavigator of={ ClipboardStories } linkId={ LINK_ID.CLIPBOARD } />

<Markdown>{ SpecificationsClipboard }</Markdown>

Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/stories/components/code/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsCode from '@ovhcloud/ods-components/src/components/code/doc
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as CodeStories from './code.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ CodeStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Code component highlights strings or small blocks of code so it makes them easie

<Canvas of={ CodeStories.Default } sourceState='none' />

<DocNavigator of={ CodeStories } />
<DocNavigator of={ CodeStories } linkId={ LINK_ID.CODE } />

<Markdown>{ SpecificationsCode }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsDivider from '@ovhcloud/ods-components/src/components/divid
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as DividerStories from './divider.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ DividerStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ The divider is a spacer dedicated to represent the empty space. it displays a si

<Canvas of={ DividerStories.Default } sourceState='none' />

<DocNavigator of={ DividerStories } />
<DocNavigator of={ DividerStories } linkId={ LINK_ID.DIVIDER } />

<Markdown>{ SpecificationsDivider }</Markdown>

Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/stories/components/icon/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsIcon from '@ovhcloud/ods-components/src/components/icon/doc
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as IconStories from './icon.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ IconStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Icon is a visual context used to represent a command, navigation, status or comm

<Canvas of={ IconStories.Default } sourceState='none' />

<DocNavigator of={ IconStories } />
<DocNavigator of={ IconStories } linkId={ LINK_ID.ICON } />

<Markdown>{ SpecificationsIcon }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsInput from '@ovhcloud/ods-components/src/components/input/d
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as InputStories from './input.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ InputStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Input component is an input field where users can type into:

<Canvas of={ InputStories.Default } sourceState='none' />

<DocNavigator of={ InputStories } />
<DocNavigator of={ InputStories } linkId={ LINK_ID.INPUT } />

<Markdown> { SpecificationsInput } </Markdown>

Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/stories/components/link/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsLink from '@ovhcloud/ods-components/src/components/link/doc
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as LinkStories from './link.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ LinkStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Link is a component that enables redirection to a new page, section, website or

<Canvas of={ LinkStories.Default } sourceState='none' />

<DocNavigator of={ LinkStories } />
<DocNavigator of={ LinkStories } linkId={ LINK_ID.LINK } />

<Markdown>{ SpecificationsLink }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsMedium from '@ovhcloud/ods-components/src/components/medium
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as MediumStories from './medium.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ MediumStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Medium is a wrapper for displaying assets such as images:

<Canvas of={ MediumStories.Default } sourceState='none' />

<DocNavigator of={ MediumStories } />
<DocNavigator of={ MediumStories } linkId={ LINK_ID.MEDIUM } />

<Markdown>{ SpecificationsMedium }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsPassword from '@ovhcloud/ods-components/src/components/pass
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as PasswordStories from './password.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ PasswordStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Password component is an input field for entering a password that can be hidden

<Canvas of={ PasswordStories.Default } sourceState='none' />

<DocNavigator of={ PasswordStories } />
<DocNavigator of={ PasswordStories } linkId={ LINK_ID.PASSWORD } />

<Markdown>{ SpecificationsPassword }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsPopover from '@ovhcloud/ods-components/src/components/popov
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as PopoverStories from './popover.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ PopoverStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Popover component is triggered by click and is used to provide additional inform

<Canvas of={ PopoverStories.Overview } sourceState='none' />

<DocNavigator of={ PopoverStories } />
<DocNavigator of={ PopoverStories } linkId={ LINK_ID.POPOVER } />

<Markdown>{ SpecificationsPopover }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsQuantity from '@ovhcloud/ods-components/src/components/quan
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as QuantityStories from './quantity.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ QuantityStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Quantity is a component used to enter and modify a numeric value in a responsive

<Canvas of={ QuantityStories.Default } sourceState='none' />

<DocNavigator of={ QuantityStories } />
<DocNavigator of={ QuantityStories } linkId={ LINK_ID.QUANTITY } />

<Markdown>{ SpecificationsQuantity }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsSkeleton from '@ovhcloud/ods-components/src/components/skel
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as SkeletonStories from './skeleton.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ SkeletonStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Skeleton component indicates that data is loading. It improves the perceived loa

<Canvas of={SkeletonStories.Default} sourceState='none' />

<DocNavigator of={ SkeletonStories } />
<DocNavigator of={ SkeletonStories } linkId={ LINK_ID.SKELETON } />

<Markdown> { SpecificationsSkeleton } </Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsSpinner from '@ovhcloud/ods-components/src/components/spinn
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as SpinnerStories from './spinner.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ SpinnerStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ A visual indicator that a process is happening in the background but the interfa

<Canvas of={ SpinnerStories.Default } sourceState='none' />

<DocNavigator of={ SpinnerStories } />
<DocNavigator of={ SpinnerStories } linkId={ LINK_ID.SPINNER } />

<Markdown>{ SpecificationsSpinner }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsTable from '@ovhcloud/ods-components/src/components/table/d
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as TableStories from './table.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ TableStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Table is a wrapper for displaying tables:

<Canvas of={ TableStories.Default } sourceState='none' />

<DocNavigator of={ TableStories } />
<DocNavigator of={ TableStories } linkId={ LINK_ID.TABLE } />

<Markdown>{ SpecificationsTable }</Markdown>

Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/stories/components/tag/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsTag from '@ovhcloud/ods-components/src/components/tag/docum
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as TagStories from './tag.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ TagStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Tag show concise metadata or the current status for an item, in a compact format

<Canvas of={ TagStories.Default } sourceState='none' />

<DocNavigator of={ TagStories } />
<DocNavigator of={ TagStories } linkId={ LINK_ID.TAG } />

<Markdown>{ SpecificationsTag }</Markdown>

Expand Down
3 changes: 2 additions & 1 deletion packages/storybook/stories/components/text/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsText from '@ovhcloud/ods-components/src/components/text/doc
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as TextStories from './text.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ TextStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ The text component is used to display text with a specific font & style.

<Canvas of={ TextStories.Default } sourceState='none' />

<DocNavigator of={ TextStories } />
<DocNavigator of={ TextStories } linkId={ LINK_ID.TEXT } />

<Markdown> { SpecificationsText } </Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsTextarea from '@ovhcloud/ods-components/src/components/text
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as TextareaStories from './textarea.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ TextareaStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Textarea component is used to type long content:

<Canvas of={ TextareaStories.Default } sourceState='none' />

<DocNavigator of={ TextareaStories } />
<DocNavigator of={ TextareaStories } linkId={ LINK_ID.TEXTAREA } />

<Markdown>{ SpecificationsTextarea }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsToggle from '@ovhcloud/ods-components/src/components/toggle
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as ToggleStories from './toggle.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ ToggleStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Toggle component is used to allow the user to switch between two states, on and

<Canvas of={ ToggleStories.Default } sourceState='none' />

<DocNavigator of={ ToggleStories } />
<DocNavigator of={ ToggleStories } linkId={ LINK_ID.TOGGLE } />

<Markdown>{ SpecificationsToggle }</Markdown>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SpecificationsTooltip from '@ovhcloud/ods-components/src/components/toolt
import { Banner } from '../../banner';
import { DocNavigator } from '../../doc-navigator';
import * as TooltipStories from './tooltip.stories';
import { LINK_ID } from '../../zeroheight';

<Meta of={ TooltipStories } name='Documentation' />

Expand All @@ -14,7 +15,7 @@ Tooltip component is used to display contextual information when the user hovers

<Canvas of={ TooltipStories.Overview } sourceState='none' />

<DocNavigator of={ TooltipStories } />
<DocNavigator of={ TooltipStories } linkId={ LINK_ID.TOOLTIP } />

<Markdown> { SpecificationsTooltip } </Markdown>

Expand Down
Loading

0 comments on commit 7377f0b

Please sign in to comment.