Skip to content

Commit

Permalink
removed timeline item from nav and linked from timeline page
Browse files Browse the repository at this point in the history
  • Loading branch information
emilybrick committed Jun 28, 2023
1 parent ba464ea commit 62db1d5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
5 changes: 1 addition & 4 deletions content/components/timeline-item.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ import {Link, Text} from '@primer/react'
import {Link as GatsbyLink} from 'gatsby'
export default ComponentLayout

<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are in progress</Text>
<Text>Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link></Text>
</Note>
For usage guidelines of this component, see [timeline](/components/timeline).
24 changes: 23 additions & 1 deletion content/components/timeline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Timeline
description: The timeline component is used to display items on a vertical timeline, connected by timeline elements.
reactId: timeline
railsIds:
- Primer::Beta::TimelineItem
---

import ComponentLayout from '~/src/layouts/component-layout'
Expand All @@ -12,4 +14,24 @@ export default ComponentLayout
<Note variant="warning">
<Text sx={{display: 'block', fontWeight: 'bold', mb: 2}}>Guidelines for this component are in progress</Text>
<Text>Interested in contributing? Review the guidelines for <Link as={GatsbyLink} to="/guides/contribute/documentation#documenting-components">writing component documentation</Link> and open a pull request in our <Link as={GatsbyLink} to="https://github.com/primer/design">documentation repository.</Link></Text>
</Note>
</Note>

<br />

<img
width="960"
role="presentation"
src="https://github.com/primer/design/assets/586552/f1ef5e7c-86fb-4131-be14-4831923065cf"
alt="timeline component item"
/>

## Usage

Timeline displays items on a connected vertical timeline. It's primarily used to document the history and activity of a given pull request or issue.

<img
width="960"
role="presentation"
src="https://github.com/primer/design/assets/586552/d44a8384-44fc-4879-9f1b-a4d33a53d994"
alt="timeline component"
/>
2 changes: 0 additions & 2 deletions src/@primer/gatsby-theme-doctocat/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@
url: /components/textarea
- title: Timeline
url: /components/timeline
- title: Timeline item
url: /components/timeline-item
- title: Toggle switch
url: /components/toggle-switch
- title: Token
Expand Down

0 comments on commit 62db1d5

Please sign in to comment.