Skip to content

Commit 6a37bfd

Browse files
authored
Merge pull request #635 from primer/docs-releases
docs: Releases link, Status key page move
2 parents 36125bd + 4ee73d2 commit 6a37bfd

File tree

13 files changed

+86
-321
lines changed

13 files changed

+86
-321
lines changed

docs/lib/changelog.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/lib/sync.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const filter = require('metalsmith-filter')
33
const frontmatter = require('metalsmith-matters')
44
const watch = require('metalsmith-watch')
55

6-
const addChangelog = require('./changelog')
76
const addPackageMeta = require('./add-package-meta')
87
const {extractPackages, writePackagesJSON} = require('./extract-packages-json')
98
const addSource = require('./add-source')
@@ -57,12 +56,6 @@ module.exports = function sync(options = {}) {
5756
)
5857
// rename files with their "path" frontmatter key
5958
.use(rename(file => file[ns] ? `${file[ns].path}.md` : true), {log})
60-
// read the changelog manually
61-
.use(addChangelog('../CHANGELOG.md', 'whats-new/changelog.md', file => {
62-
file[ns] = {
63-
title: 'Changelog'
64-
}
65-
}))
6659
.use((_files, metal, done) => {
6760
files = _files
6861
done()

docs/pages/_app.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {BaseStyles, BorderBox, Box, Flex, theme} from '@primer/components'
66
import {injectGlobal} from 'emotion'
77
import {Header, PackageHeader, SideNav} from '../src/components'
88
import getComponents from '../src/markdown'
9-
import {requirePage, rootPage} from '../src/utils'
9+
import {config, requirePage, rootPage} from '../src/utils'
1010
import {CONTENT_MAX_WIDTH} from '../src/constants'
1111

1212
import 'primer/index.scss'
@@ -75,10 +75,12 @@ export default class MyApp extends App {
7575
<MDXProvider components={components}>
7676
<Component {...page} />
7777
</MDXProvider>
78-
<details>
79-
<summary>Metadata</summary>
80-
<pre>meta: {JSON.stringify(meta, null, 2)}</pre>
81-
</details>
78+
{config.production ? null : (
79+
<details>
80+
<summary>Metadata</summary>
81+
<pre>{JSON.stringify(meta, null, 2)}</pre>
82+
</details>
83+
)}
8284
</div>
8385
{/* TODO: bring back edit link! */}
8486
</Box>

docs/pages/css/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ utilities/marketing-padding.md
4141
utilities/marketing-type.md
4242
utilities/padding.md
4343
utilities/typography.md
44-
whats-new/changelog.md

docs/pages/css/status-key.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Status key
3+
---
4+
5+
import StatusLabel from '../../src/StatusLabel'
6+
7+
Primer is constantly evolving and we have many styles to refactor and bring up to standard. The status of each package is shown with it's corresponding documentation so you can be confident which styles are safe to use.
8+
9+
| Label | Description |
10+
| :----- | :--- |
11+
| <StatusLabel id="stable" status="Stable" /> | These styles are safe to use in production and there are currently no planned updates. If you find a problem with these styles please [open and issue](https://github.com/github/design-systems/issues). |
12+
| <StatusLabel id="new-release" status="New release" /> | These are newly shipped styles that are safe to use in production. While these styles will have been thoroughly tested before being shipped you may find room for improvements in the documentation, and it's possible you may find the occasional bug. Like all the code we ship, the best test is when lots of people start using it. We'll link to a corresponding feedback issue for new releases so you can comment if you find any problems or have questions. |
13+
| <StatusLabel id="experimental" status="Experimental" /> | These styles are a work in progress that are safe to use, but haven't been battle-tested yet. That means they may go through more significant changes in the near future. You can use these styles and help us test out these styles while we're working on, them as long as you are prepared for changes (though we'll handle updates as much as possible for you). We will have a corresponding issue for experimental styles where you can let us know you're using them, and can leave feedback or ask questions. |
14+
| <StatusLabel id="in-review" status="In review" /> | This means we are actively reviewing these styles with a view to refactor or deprecate them. They are still safe to use in production but if you are considering using them on a new feature it would be good to talk to us so we can make sure that our review doesn't disrupt your work. All styles in review will have a corresponding issue explaining why they are in review and will link to any relevant pull requests. |
15+
| <StatusLabel id="deprecated" status="Deprecated" /> | These styles are in the process of being removed and should no longer be used in production. The design systems team are responsible for updating existing views that currently use these styles, however you can help us by replacing deprecated classes from views that you are working on (if you have the time). You will get a lint error telling you to replace these styles if you attempt to add new instances. Please contact us if this causes you a problem. |

docs/pages/css/whats-new/changelog/archived_changelog.md

Lines changed: 0 additions & 134 deletions
This file was deleted.

docs/pages/css/whats-new/index.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)