Skip to content

Commit e4f69db

Browse files
authored
Merge pull request #810 from primer/release-12.4.1
Release 12.4.1
2 parents 203fa4d + 7155a4f commit e4f69db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+113
-267
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Good pull requests—patches, improvements, new features—are a fantastic help.
5050

5151
**Please ask first** before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
5252

53-
### Updating Primer CSS modules
53+
### Updating Primer CSS
5454

5555
Anyone can open a pull request on Primer CSS. You do not need to work at GitHub or be a member of the org to open a pull request.
5656

.github/main.workflow

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
workflow "lint, test, deploy, publish" {
1+
workflow "lint, test, publish" {
22
on = "push"
3-
resolves = [
4-
"lint",
5-
"test",
6-
"publish",
7-
"deploy",
8-
]
3+
resolves = ["lint", "test", "publish"]
94
}
105

116
action "install" {
@@ -31,12 +26,3 @@ action "publish" {
3126
args = ["--", "--unsafe-perm"]
3227
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
3328
}
34-
35-
action "deploy" {
36-
needs = "install"
37-
uses = "primer/deploy@v3.0.0"
38-
secrets = [
39-
"GITHUB_TOKEN",
40-
"NOW_TOKEN",
41-
]
42-
}

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
# 12.4.1
2+
3+
### :bug: Bug fixes
4+
- Fix [#822](https://github.com/primer/css/issues/822) (`.border-dashed` issues) via [#824](https://github.com/primer/css/issues/824)
5+
6+
### :memo: Documentation
7+
- Typos fixed in [#802](https://github.com/primer/css/issues/802) (thank you, [@The-Compiler](https://github.com/The-Compiler)!)
8+
- Nav updates [#803](https://github.com/primer/css/issues/803)
9+
- Fix tables of contents [#762](https://github.com/primer/css/issues/762)
10+
- Add deprecation warning for `.btn-purple`, due to disappear in 13.0.0 via [#736](https://github.com/primer/css/issues/736)
11+
- Lots more documentation updates in [#814](https://github.com/primer/css/issues/814)
12+
13+
### :house: Internal
14+
- Decommission `primer/deploy` [#809](https://github.com/primer/css/issues/809)
15+
16+
### Committers
17+
- [@emplums](https://github.com/emplums)
18+
- [@shawnbot](https://github.com/shawnbot)
19+
- [@simurai](https://github.com/simurai)
20+
- [@The-Compiler](https://github.com/The-Compiler)
21+
22+
123
# 12.4.0
224

325
### :rocket: Enhancement

DEVELOP.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,8 @@ Then visit http://localhost:3000/css to view the site.
4646

4747
:rotating_light: **Warning:** Next.js has a [long-running issue](https://github.com/zeit/next.js/issues/1189) with trailing slashes in URLs. Avoid visiting `http://localhost:3000/` if possible, as this may cause your development server to fail in less-than-graceful ways.
4848

49-
50-
### Syncing the docs
51-
Both before and while the Next dev server runs, all of the Markdown files within the `src/` directory are synced to Next's `pages/` directory and rewritten to include useful metadata.
52-
53-
If, for whatever reason, the dev server isn't syncing files from `src/` to `pages/`, you have two choices:
54-
55-
1. Stop the server (`ctrl-C`) and restart it (`npm start`), which will re-sync the files and clear Next's cache.
56-
2. Run [script/sync](./script/sync) manually:
57-
58-
```sh
59-
# in the docs directory
60-
script/sync
61-
```
62-
63-
**If you find yourself needing to do this often, please [file an issue](/primer/css/issues/new) and tag `@shawnbot`**. :bow:
64-
6549
### The pages directory
66-
The [pages directory](./pages/) contains all of the files that map to URLs on the site. Because we host the site at `primer.style/css` (and because of the way that Now's path aliasing feature works), we nest all of our documentation under the [css subdirectory](./pages/css).
67-
68-
The sync task maintains a list of files copied from `src/` in `pages/css/.gitignore`, which ensures that none of these generated files are checked into git.
50+
The [pages directory](./pages/) contains all of the documentation files that map to URLs on the site. Because we host the site at `primer.style/css` (and because of the way that Now's path aliasing feature works), we nest all of our documentation under the [css subdirectory](./pages/css).
6951

7052

7153
### URL tests
@@ -101,7 +83,6 @@ Our [`package.json`](package.json) houses a collection of [run-scripts] that we
10183
* `lint` lints all of our SCSS source files.
10284
* `lint-js` lints the docs site and supporting scripts.
10385
* `now-build` and `now-start` are run on [Now] to build and start the docs site server. `now-test` runs them both in order.
104-
* `sync` copies Markdown docs from `src/` to `pages/css/` and preps them for inclusion in the docs site.
10586
* `test-urls` compares a (pre-generated) list of paths from the [Primer Style Guide](https://styleguide.github.com/primer/) to files in `pages/css`, and lets us know if we've inadvertently deleted or renamed anything.
10687
* `test-migrate` tests the [`primer-migrate`](MIGRATING.md#primer-migrate) command line utility.
10788
* `watch` runs the sync script in watch mode, copying files as they're changed from `src/` to `pages/css/`.

docs-test/urls.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const exceptions = {
3131
'/packages/primer-product': removed,
3232
'/principles/HTML': moved('/principles/html'),
3333
'/principles/SCSS': moved('/principles/scss'),
34+
'/tools/sketch-templates': removed,
3435
'/whats_new': redirect('https://github.com/primer/primer/releases'),
3536
'/whats_new/changelog': removed,
3637
'/whats_new/changelog/archived_changelog': removed,

docs/Outline.js

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

docs/markdown.js

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,25 @@ import React from 'react'
22
import {Link} from '@primer/components'
33
import {MarkdownHeading} from '@primer/blueprints'
44
import {CodeExample} from '@primer/blueprints/next-components'
5-
import Outline from './Outline'
65

76
export const H1 = props => <MarkdownHeading {...props} />
87
export const H2 = props => <MarkdownHeading as="h2" {...props} />
98
export const H3 = props => <MarkdownHeading as="h3" {...props} />
109
export const H4 = props => <MarkdownHeading as="h4" {...props} />
1110
export const H5 = props => <MarkdownHeading as="h5" {...props} />
1211

13-
export default function getComponents(page = {}) {
14-
const {outline: getOutline = () => []} = page
15-
16-
return {
17-
h1: H1,
18-
h2: H2,
19-
h3: H3,
20-
h4: H4,
21-
h5: H5,
22-
// render links with our component
23-
a: Link,
24-
// render code blocks with our wrapper around react-live
25-
code: CodeExample,
26-
// render the outline for <p> tags with exactly the text "{:toc}"
27-
p: ({children, ...rest}) => {
28-
if (children === '{:toc}') {
29-
return <Outline outline={getOutline()} {...rest} />
30-
} else {
31-
return <p {...rest}>{children}</p>
32-
}
33-
},
34-
// "unwrap" <pre> elements around <code> blocks
35-
pre: props => props.children
36-
}
12+
const components = {
13+
h1: H1,
14+
h2: H2,
15+
h3: H3,
16+
h4: H4,
17+
h5: H5,
18+
// render links with our component
19+
a: Link,
20+
// render code blocks with our wrapper around react-live
21+
code: CodeExample,
22+
// "unwrap" <pre> elements around <code> blocks
23+
pre: props => props.children
3724
}
25+
26+
export default components

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@primer/css",
3-
"version": "12.4.0",
3+
"version": "12.4.1",
44
"description": "Primer is the CSS framework that powers GitHub's front-end design. primer includes 23 packages that are grouped into 3 core meta-packages for easy install. Each package and meta-package is independently versioned and distributed via npm, so it's easy to include all or part of Primer within your own project.",
55
"homepage": "https://primer.style/css",
66
"author": "GitHub, Inc.",
@@ -46,7 +46,7 @@
4646
"@githubprimer/octicons-react": "^8.1.3",
4747
"@mdx-js/mdx": "^0.16.6",
4848
"@mdx-js/tag": "0.15.0",
49-
"@primer/blueprints": "4.0.1",
49+
"@primer/blueprints": "4.0.2",
5050
"@primer/components": "12.0.1",
5151
"@primer/next-pages": "0.0.3",
5252
"@storybook/addon-viewport": "5.0.11",

pages/_app.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {BaseStyles, Link, Text, BorderBox, Box, Flex, theme} from '@primer/compo
77
import {PackageHeader} from '../docs/components'
88
import {Header, MarkdownHeading, JumpNav, SideNav} from '@primer/blueprints'
99
import {NavList} from '@primer/blueprints/next-components'
10-
import getComponents from '../docs/markdown'
10+
import components from '../docs/markdown'
1111
import documents from '../searchIndex'
1212
import {config, requirePage, rootPage} from '../docs/utils'
1313
import {CONTENT_MAX_WIDTH} from '../docs/constants'
@@ -36,8 +36,6 @@ export default class MyApp extends App {
3636
const node = rootPage.first(node => node.path === pathname) || {}
3737
const {file, meta = {}} = node || {}
3838
const isIndex = file.includes('index')
39-
const components = getComponents(node)
40-
4139
const Hero = file ? requirePage(file).Hero : null
4240

4341
return (
@@ -101,12 +99,12 @@ export default class MyApp extends App {
10199
>
102100
<SideNav>
103101
<NavList currentPath={pathname} path="/css/getting-started" />
104-
<NavList currentPath={pathname} path="/css/tools" />
105-
<NavList currentPath={pathname} path="/css/principles" />
106102
<NavList currentPath={pathname} path="/css/support" />
107103
<NavList currentPath={pathname} path="/css/utilities" />
108104
<NavList currentPath={pathname} path="/css/objects" />
109105
<NavList currentPath={pathname} path="/css/components" />
106+
<NavList currentPath={pathname} path="/css/tools" />
107+
<NavList currentPath={pathname} path="/css/principles" />
110108
</SideNav>
111109
</BorderBox>
112110
</Flex>

0 commit comments

Comments
 (0)