From 18d38102df7a4451ea61befb66dcb32487b605ef Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Thu, 16 Dec 2021 11:35:07 -0800 Subject: [PATCH] Add component ids to component pages (#1744) * Add component ids to component pages * Update docs/content/StateLabel.md --- docs/content/AnchoredOverlay.mdx | 1 + docs/content/Autocomplete.mdx | 1 + docs/content/AvatarPair.mdx | 1 + docs/content/AvatarStack.mdx | 1 + docs/content/Box.mdx | 1 + docs/content/BranchName.mdx | 1 + docs/content/Breadcrumbs.mdx | 1 + docs/content/Buttons.md | 1 + docs/content/Checkbox.md | 1 + docs/content/CircleBadge.md | 1 + docs/content/CircleOcticon.md | 1 + docs/content/CounterLabel.md | 1 + docs/content/Details.md | 1 + docs/content/DropdownMenu.mdx | 1 + docs/content/FilterList.md | 1 + docs/content/FilteredSearch.md | 1 + docs/content/Flash.md | 1 + docs/content/FormGroup.md | 1 + docs/content/Header.md | 1 + docs/content/Heading.md | 1 + docs/content/Label.md | 1 + docs/content/LabelGroup.md | 1 + docs/content/Link.mdx | 1 + docs/content/Overlay.mdx | 1 + docs/content/Pagehead.md | 1 + docs/content/Pagination.md | 1 + docs/content/PointerBox.md | 1 + docs/content/Popover.md | 1 + docs/content/Portal.mdx | 1 + docs/content/ProgressBar.mdx | 2 +- docs/content/Radio.md | 1 + docs/content/SelectPanel.mdx | 1 + docs/content/SideNav.md | 1 + docs/content/StateLabel.md | 1 + docs/content/StyledOcticon.md | 1 + docs/content/SubNav.md | 1 + docs/content/TabNav.md | 1 + docs/content/Text.md | 1 + docs/content/TextInput.mdx | 1 + docs/content/TextInputWithTokens.mdx | 1 + docs/content/Timeline.md | 1 + docs/content/Token.mdx | 1 + docs/content/Tooltip.md | 1 + docs/content/Truncate.md | 1 + docs/content/UnderlineNav.md | 1 + docs/content/deprecated/BorderBox.md | 1 + docs/content/deprecated/Flex.md | 1 + docs/content/deprecated/Grid.md | 1 + docs/content/deprecated/Position.md | 1 + 49 files changed, 49 insertions(+), 1 deletion(-) diff --git a/docs/content/AnchoredOverlay.mdx b/docs/content/AnchoredOverlay.mdx index d582ac16407..10c16ea3249 100644 --- a/docs/content/AnchoredOverlay.mdx +++ b/docs/content/AnchoredOverlay.mdx @@ -1,4 +1,5 @@ --- +componentId: anchored_overlay title: AnchoredOverlay status: Alpha source: https://github.com/primer/react/blob/main/src/AnchoredOverlay/AnchoredOverlay.tsx diff --git a/docs/content/Autocomplete.mdx b/docs/content/Autocomplete.mdx index a54baeaabd8..c3eae2f3dfc 100644 --- a/docs/content/Autocomplete.mdx +++ b/docs/content/Autocomplete.mdx @@ -1,4 +1,5 @@ --- +componentId: autocomplete title: Autocomplete status: Alpha --- diff --git a/docs/content/AvatarPair.mdx b/docs/content/AvatarPair.mdx index 8c29bd2a454..fb693e03133 100644 --- a/docs/content/AvatarPair.mdx +++ b/docs/content/AvatarPair.mdx @@ -1,4 +1,5 @@ --- +componentId: avatar_pair title: AvatarPair status: Alpha source: https://github.com/primer/react/blob/main/src/AvatarPair.tsx diff --git a/docs/content/AvatarStack.mdx b/docs/content/AvatarStack.mdx index bf2598af209..d22e6642d9e 100644 --- a/docs/content/AvatarStack.mdx +++ b/docs/content/AvatarStack.mdx @@ -1,4 +1,5 @@ --- +componentId: avatar_stack title: AvatarStack status: Alpha description: Use an avatar stack to display two or more avatars in an inline stack. diff --git a/docs/content/Box.mdx b/docs/content/Box.mdx index f398c5ac521..d3165b68965 100644 --- a/docs/content/Box.mdx +++ b/docs/content/Box.mdx @@ -1,4 +1,5 @@ --- +componentId: box title: Box status: Beta description: A low-level utility component that accepts styled system props to enable custom theme-aware styling diff --git a/docs/content/BranchName.mdx b/docs/content/BranchName.mdx index 1666b2c03a9..e3635f7b8e1 100644 --- a/docs/content/BranchName.mdx +++ b/docs/content/BranchName.mdx @@ -1,4 +1,5 @@ --- +componentId: branch_name title: BranchName status: Alpha source: https://github.com/primer/react/blob/main/src/BranchName.tsx diff --git a/docs/content/Breadcrumbs.mdx b/docs/content/Breadcrumbs.mdx index 0c83d32c527..d66765f3cb6 100644 --- a/docs/content/Breadcrumbs.mdx +++ b/docs/content/Breadcrumbs.mdx @@ -1,4 +1,5 @@ --- +componentId: breadcrumbs title: Breadcrumbs status: Alpha description: Use breadcrumbs to show navigational context on pages that are many levels deep in a site’s hierarchy. Breadcrumbs show and link to parent, grandparent, and sometimes great-grandparent pages. diff --git a/docs/content/Buttons.md b/docs/content/Buttons.md index f139219650e..8beb172e3cb 100644 --- a/docs/content/Buttons.md +++ b/docs/content/Buttons.md @@ -1,4 +1,5 @@ --- +componentId: button title: Button status: Alpha --- diff --git a/docs/content/Checkbox.md b/docs/content/Checkbox.md index 64f9c2a089a..bcaf2c2656c 100644 --- a/docs/content/Checkbox.md +++ b/docs/content/Checkbox.md @@ -1,4 +1,5 @@ --- +componentId: checkbox title: Checkbox description: Use checkboxes to toggle between checked and unchecked states in a list or as a standalone form field status: Alpha diff --git a/docs/content/CircleBadge.md b/docs/content/CircleBadge.md index 6fb29be1b92..87deadca8d0 100644 --- a/docs/content/CircleBadge.md +++ b/docs/content/CircleBadge.md @@ -1,4 +1,5 @@ --- +componentId: circle_badge title: CircleBadge status: Alpha --- diff --git a/docs/content/CircleOcticon.md b/docs/content/CircleOcticon.md index 1eb1d6e9ca3..17b15b1429a 100644 --- a/docs/content/CircleOcticon.md +++ b/docs/content/CircleOcticon.md @@ -1,4 +1,5 @@ --- +componentId: circle_octicon title: CircleOcticon status: Alpha --- diff --git a/docs/content/CounterLabel.md b/docs/content/CounterLabel.md index 21cd8fce511..5f7a18f78b2 100644 --- a/docs/content/CounterLabel.md +++ b/docs/content/CounterLabel.md @@ -1,4 +1,5 @@ --- +componentId: counter_label title: CounterLabel status: Alpha --- diff --git a/docs/content/Details.md b/docs/content/Details.md index 0e10cb27a61..8db846589ab 100644 --- a/docs/content/Details.md +++ b/docs/content/Details.md @@ -1,4 +1,5 @@ --- +componentId: details title: Details status: Alpha --- diff --git a/docs/content/DropdownMenu.mdx b/docs/content/DropdownMenu.mdx index 48265b5c91f..f74fbda16f2 100644 --- a/docs/content/DropdownMenu.mdx +++ b/docs/content/DropdownMenu.mdx @@ -1,4 +1,5 @@ --- +componentId: dropdown_menu title: DropdownMenu status: Alpha --- diff --git a/docs/content/FilterList.md b/docs/content/FilterList.md index 10fe20eb21b..bb343f62f57 100644 --- a/docs/content/FilterList.md +++ b/docs/content/FilterList.md @@ -1,4 +1,5 @@ --- +componentId: filter_list title: FilterList status: Alpha --- diff --git a/docs/content/FilteredSearch.md b/docs/content/FilteredSearch.md index 6dde804f236..77ba62fcae7 100644 --- a/docs/content/FilteredSearch.md +++ b/docs/content/FilteredSearch.md @@ -1,4 +1,5 @@ --- +componentId: filtered_search title: FilteredSearch status: Alpha --- diff --git a/docs/content/Flash.md b/docs/content/Flash.md index 42430678a9f..0aef5e72f7b 100644 --- a/docs/content/Flash.md +++ b/docs/content/Flash.md @@ -1,4 +1,5 @@ --- +componentId: flash title: Flash status: Alpha --- diff --git a/docs/content/FormGroup.md b/docs/content/FormGroup.md index 37089c6131a..f359ac11789 100644 --- a/docs/content/FormGroup.md +++ b/docs/content/FormGroup.md @@ -1,4 +1,5 @@ --- +componentId: form_group title: FormGroup status: Alpha --- diff --git a/docs/content/Header.md b/docs/content/Header.md index 92d7a5c74dc..8ba6b0eb5ba 100644 --- a/docs/content/Header.md +++ b/docs/content/Header.md @@ -1,4 +1,5 @@ --- +componentId: header title: Header status: Alpha --- diff --git a/docs/content/Heading.md b/docs/content/Heading.md index f382b58626b..2ba7c754c5a 100644 --- a/docs/content/Heading.md +++ b/docs/content/Heading.md @@ -1,4 +1,5 @@ --- +componentId: heading title: Heading status: Alpha --- diff --git a/docs/content/Label.md b/docs/content/Label.md index f9d68a752a4..51ef401360f 100644 --- a/docs/content/Label.md +++ b/docs/content/Label.md @@ -1,4 +1,5 @@ --- +componentId: label title: Label status: Alpha --- diff --git a/docs/content/LabelGroup.md b/docs/content/LabelGroup.md index 11943e8e555..73b8b93b573 100644 --- a/docs/content/LabelGroup.md +++ b/docs/content/LabelGroup.md @@ -1,4 +1,5 @@ --- +componentId: label_group title: LabelGroup status: Alpha --- diff --git a/docs/content/Link.mdx b/docs/content/Link.mdx index 8c7ba052e9b..785b87339eb 100644 --- a/docs/content/Link.mdx +++ b/docs/content/Link.mdx @@ -1,4 +1,5 @@ --- +componentId: link title: Link status: Alpha source: https://github.com/primer/react/blob/main/src/Link.tsx diff --git a/docs/content/Overlay.mdx b/docs/content/Overlay.mdx index cb1fcdea3a4..1c792a9557b 100644 --- a/docs/content/Overlay.mdx +++ b/docs/content/Overlay.mdx @@ -1,4 +1,5 @@ --- +componentId: overlay title: Overlay status: Alpha --- diff --git a/docs/content/Pagehead.md b/docs/content/Pagehead.md index 61cc3f0c83d..05a6a39e610 100644 --- a/docs/content/Pagehead.md +++ b/docs/content/Pagehead.md @@ -1,4 +1,5 @@ --- +componentId: pagehead title: Pagehead status: Alpha --- diff --git a/docs/content/Pagination.md b/docs/content/Pagination.md index 1e7276f4c1d..16446ae29f7 100644 --- a/docs/content/Pagination.md +++ b/docs/content/Pagination.md @@ -1,4 +1,5 @@ --- +compnoentId: pagination title: Pagination status: Alpha --- diff --git a/docs/content/PointerBox.md b/docs/content/PointerBox.md index 04457b3e982..e916d87cc78 100644 --- a/docs/content/PointerBox.md +++ b/docs/content/PointerBox.md @@ -1,4 +1,5 @@ --- +componentId: pointer_box title: PointerBox status: Alpha --- diff --git a/docs/content/Popover.md b/docs/content/Popover.md index 3fbd4b73f50..de5d518ab1b 100644 --- a/docs/content/Popover.md +++ b/docs/content/Popover.md @@ -1,4 +1,5 @@ --- +componentId: popover title: Popover status: Alpha --- diff --git a/docs/content/Portal.mdx b/docs/content/Portal.mdx index 1c0fe729df7..55e631e1df2 100644 --- a/docs/content/Portal.mdx +++ b/docs/content/Portal.mdx @@ -1,4 +1,5 @@ --- +componentId: portal title: Portal status: Alpha --- diff --git a/docs/content/ProgressBar.mdx b/docs/content/ProgressBar.mdx index b9a13dd76c9..cd1a157e4fe 100644 --- a/docs/content/ProgressBar.mdx +++ b/docs/content/ProgressBar.mdx @@ -1,6 +1,6 @@ --- -title: ProgressBar componentId: progress_bar +title: ProgressBar status: Alpha source: https://github.com/primer/react/blob/main/src/ProgressBar.tsx --- diff --git a/docs/content/Radio.md b/docs/content/Radio.md index 06242851bb4..a09bd6ca1a8 100644 --- a/docs/content/Radio.md +++ b/docs/content/Radio.md @@ -1,4 +1,5 @@ --- +componentId: radio title: Radio description: Use radios when a user needs to select one option from a list status: Alpha diff --git a/docs/content/SelectPanel.mdx b/docs/content/SelectPanel.mdx index f450fb1b0ab..c6f77512445 100644 --- a/docs/content/SelectPanel.mdx +++ b/docs/content/SelectPanel.mdx @@ -1,4 +1,5 @@ --- +componentId: select_panel title: SelectPanel status: Alpha --- diff --git a/docs/content/SideNav.md b/docs/content/SideNav.md index 76669663ec6..bb6d6bf3f67 100644 --- a/docs/content/SideNav.md +++ b/docs/content/SideNav.md @@ -1,4 +1,5 @@ --- +componentId: side_nav title: SideNav status: Alpha --- diff --git a/docs/content/StateLabel.md b/docs/content/StateLabel.md index 16cfe655bf0..292c431fbcb 100644 --- a/docs/content/StateLabel.md +++ b/docs/content/StateLabel.md @@ -1,4 +1,5 @@ --- +componentId: state_label title: StateLabel status: Alpha --- diff --git a/docs/content/StyledOcticon.md b/docs/content/StyledOcticon.md index 57469f464f1..a45925f4e20 100644 --- a/docs/content/StyledOcticon.md +++ b/docs/content/StyledOcticon.md @@ -1,4 +1,5 @@ --- +componentId: styled_octicon title: StyledOcticon status: Alpha --- diff --git a/docs/content/SubNav.md b/docs/content/SubNav.md index a8b87154c36..7fecd4f8454 100644 --- a/docs/content/SubNav.md +++ b/docs/content/SubNav.md @@ -1,4 +1,5 @@ --- +componentId: sub_nav title: SubNav status: Alpha --- diff --git a/docs/content/TabNav.md b/docs/content/TabNav.md index 103e57fd511..aa9924f5271 100644 --- a/docs/content/TabNav.md +++ b/docs/content/TabNav.md @@ -1,4 +1,5 @@ --- +componentId: tab_nav title: TabNav status: Alpha --- diff --git a/docs/content/Text.md b/docs/content/Text.md index 3bd823e6dc0..34842886692 100644 --- a/docs/content/Text.md +++ b/docs/content/Text.md @@ -1,4 +1,5 @@ --- +componentId: text title: Text status: Alpha --- diff --git a/docs/content/TextInput.mdx b/docs/content/TextInput.mdx index a229c8dce16..185eb4d0fc0 100644 --- a/docs/content/TextInput.mdx +++ b/docs/content/TextInput.mdx @@ -1,4 +1,5 @@ --- +componentId: text_input title: TextInput status: Alpha source: https://github.com/primer/react/blob/main/src/TextInput.tsx diff --git a/docs/content/TextInputWithTokens.mdx b/docs/content/TextInputWithTokens.mdx index 0f126d8ac26..6d5e7bf44cb 100644 --- a/docs/content/TextInputWithTokens.mdx +++ b/docs/content/TextInputWithTokens.mdx @@ -1,4 +1,5 @@ --- +componentId: text_input_with_tokens title: TextInputWithTokens status: Alpha source: https://github.com/primer/react/tree/main/src/TextInputWithTokens.tsx diff --git a/docs/content/Timeline.md b/docs/content/Timeline.md index 7e4589be6ab..65a30d46022 100644 --- a/docs/content/Timeline.md +++ b/docs/content/Timeline.md @@ -1,4 +1,5 @@ --- +componentId: timeline title: Timeline status: Alpha --- diff --git a/docs/content/Token.mdx b/docs/content/Token.mdx index d8726b39c34..c099ceec739 100644 --- a/docs/content/Token.mdx +++ b/docs/content/Token.mdx @@ -1,4 +1,5 @@ --- +componentId: token title: Token status: Alpha source: https://github.com/primer/react/tree/main/src/Token diff --git a/docs/content/Tooltip.md b/docs/content/Tooltip.md index c0c03cddd43..a8aea00bfa1 100644 --- a/docs/content/Tooltip.md +++ b/docs/content/Tooltip.md @@ -1,4 +1,5 @@ --- +componentId: tooltip title: Tooltip status: Alpha --- diff --git a/docs/content/Truncate.md b/docs/content/Truncate.md index c486e315b47..c202da9da16 100644 --- a/docs/content/Truncate.md +++ b/docs/content/Truncate.md @@ -1,4 +1,5 @@ --- +componentId: truncate title: Truncate status: Alpha --- diff --git a/docs/content/UnderlineNav.md b/docs/content/UnderlineNav.md index cbf19b6e62d..e0a29e50051 100644 --- a/docs/content/UnderlineNav.md +++ b/docs/content/UnderlineNav.md @@ -1,4 +1,5 @@ --- +componentId: underline_nav title: UnderlineNav status: Alpha --- diff --git a/docs/content/deprecated/BorderBox.md b/docs/content/deprecated/BorderBox.md index 804325c5bbc..45a206fd88e 100644 --- a/docs/content/deprecated/BorderBox.md +++ b/docs/content/deprecated/BorderBox.md @@ -1,4 +1,5 @@ --- +componentId: border_box title: BorderBox status: Deprecated --- diff --git a/docs/content/deprecated/Flex.md b/docs/content/deprecated/Flex.md index 6bc5109d54b..67e7fa385b7 100644 --- a/docs/content/deprecated/Flex.md +++ b/docs/content/deprecated/Flex.md @@ -1,4 +1,5 @@ --- +componentId: flex title: Flex status: Deprecated --- diff --git a/docs/content/deprecated/Grid.md b/docs/content/deprecated/Grid.md index 75ab8f981ec..305bed992be 100644 --- a/docs/content/deprecated/Grid.md +++ b/docs/content/deprecated/Grid.md @@ -1,4 +1,5 @@ --- +componentId: grid title: Grid status: Deprecated --- diff --git a/docs/content/deprecated/Position.md b/docs/content/deprecated/Position.md index 729d6957a36..74212be10fa 100644 --- a/docs/content/deprecated/Position.md +++ b/docs/content/deprecated/Position.md @@ -1,4 +1,5 @@ --- +componentId: position title: Position status: Deprecated ---