diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 13c3fccb64..faf4840888 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -50,7 +50,7 @@ Good pull requests—patches, improvements, new features—are a fantastic help.
**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.
-### Updating Primer CSS modules
+### Updating Primer CSS
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.
diff --git a/.github/main.workflow b/.github/main.workflow
index ed15c07e97..7d26c02182 100644
--- a/.github/main.workflow
+++ b/.github/main.workflow
@@ -1,11 +1,6 @@
-workflow "lint, test, deploy, publish" {
+workflow "lint, test, publish" {
on = "push"
- resolves = [
- "lint",
- "test",
- "publish",
- "deploy",
- ]
+ resolves = ["lint", "test", "publish"]
}
action "install" {
@@ -31,12 +26,3 @@ action "publish" {
args = ["--", "--unsafe-perm"]
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
}
-
-action "deploy" {
- needs = "install"
- uses = "primer/deploy@v3.0.0"
- secrets = [
- "GITHUB_TOKEN",
- "NOW_TOKEN",
- ]
-}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6dd936670a..5fe822d121 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,25 @@
+# 12.4.1
+
+### :bug: Bug fixes
+- Fix [#822](https://github.com/primer/css/issues/822) (`.border-dashed` issues) via [#824](https://github.com/primer/css/issues/824)
+
+### :memo: Documentation
+- Typos fixed in [#802](https://github.com/primer/css/issues/802) (thank you, [@The-Compiler](https://github.com/The-Compiler)!)
+- Nav updates [#803](https://github.com/primer/css/issues/803)
+- Fix tables of contents [#762](https://github.com/primer/css/issues/762)
+- Add deprecation warning for `.btn-purple`, due to disappear in 13.0.0 via [#736](https://github.com/primer/css/issues/736)
+- Lots more documentation updates in [#814](https://github.com/primer/css/issues/814)
+
+### :house: Internal
+- Decommission `primer/deploy` [#809](https://github.com/primer/css/issues/809)
+
+### Committers
+- [@emplums](https://github.com/emplums)
+- [@shawnbot](https://github.com/shawnbot)
+- [@simurai](https://github.com/simurai)
+- [@The-Compiler](https://github.com/The-Compiler)
+
+
# 12.4.0
### :rocket: Enhancement
diff --git a/DEVELOP.md b/DEVELOP.md
index d91a5c00d0..d2fe1b13c9 100644
--- a/DEVELOP.md
+++ b/DEVELOP.md
@@ -46,26 +46,8 @@ Then visit http://localhost:3000/css to view the site.
: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.
-
-### Syncing the docs
-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.
-
-If, for whatever reason, the dev server isn't syncing files from `src/` to `pages/`, you have two choices:
-
-1. Stop the server (`ctrl-C`) and restart it (`npm start`), which will re-sync the files and clear Next's cache.
-2. Run [script/sync](./script/sync) manually:
-
- ```sh
- # in the docs directory
- script/sync
- ```
-
- **If you find yourself needing to do this often, please [file an issue](/primer/css/issues/new) and tag `@shawnbot`**. :bow:
-
### The pages directory
-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).
-
-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.
+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).
### URL tests
@@ -101,7 +83,6 @@ Our [`package.json`](package.json) houses a collection of [run-scripts] that we
* `lint` lints all of our SCSS source files.
* `lint-js` lints the docs site and supporting scripts.
* `now-build` and `now-start` are run on [Now] to build and start the docs site server. `now-test` runs them both in order.
-* `sync` copies Markdown docs from `src/` to `pages/css/` and preps them for inclusion in the docs site.
* `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.
* `test-migrate` tests the [`primer-migrate`](MIGRATING.md#primer-migrate) command line utility.
* `watch` runs the sync script in watch mode, copying files as they're changed from `src/` to `pages/css/`.
diff --git a/docs-test/urls.js b/docs-test/urls.js
index b49a1d1e4c..15ab4bb100 100644
--- a/docs-test/urls.js
+++ b/docs-test/urls.js
@@ -31,6 +31,7 @@ const exceptions = {
'/packages/primer-product': removed,
'/principles/HTML': moved('/principles/html'),
'/principles/SCSS': moved('/principles/scss'),
+ '/tools/sketch-templates': removed,
'/whats_new': redirect('https://github.com/primer/primer/releases'),
'/whats_new/changelog': removed,
'/whats_new/changelog/archived_changelog': removed,
diff --git a/docs/Outline.js b/docs/Outline.js
deleted file mode 100644
index ca12734fe3..0000000000
--- a/docs/Outline.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import React from 'react'
-import {Box} from '@primer/components'
-
-export default function Outline({outline, ...rest}) {
- if (outline && outline.length) {
- return (
-
- Table of contents
-
-
- )
- }
- return null
-}
-
-export function OutlineList({items, ...rest}) {
- if (items && items.length) {
- return (
-
elements around blocks
+ pre: props => props.children
}
+
+export default components
diff --git a/package-lock.json b/package-lock.json
index e3a1a13bad..92ffe3c66b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "@primer/css",
- "version": "12.4.0",
+ "version": "12.4.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -1381,9 +1381,9 @@
}
},
"@primer/blueprints": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/@primer/blueprints/-/blueprints-4.0.1.tgz",
- "integrity": "sha512-fGhRGcKobByuuJlIviSpR4mq2KpYZ6zMJO08x0Xw+XPEd+KPKHbap8NKbcc0qlzTmWcTo1qOaqN1AGNBjr8gzg==",
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@primer/blueprints/-/blueprints-4.0.2.tgz",
+ "integrity": "sha512-MgX/SztcMVE2ko4l092fNV0I5YXyv3QWTYjFCF5KLTxh6PgvkGFPg8FqTlKYzLf1YPbgkoEEMtl7IUvi78Q7ZQ==",
"dev": true,
"requires": {
"@githubprimer/octicons-react": "^8.1.3",
diff --git a/package.json b/package.json
index 79cabfe29c..b22421cb08 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@primer/css",
- "version": "12.4.0",
+ "version": "12.4.1",
"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.",
"homepage": "https://primer.style/css",
"author": "GitHub, Inc.",
@@ -46,7 +46,7 @@
"@githubprimer/octicons-react": "^8.1.3",
"@mdx-js/mdx": "^0.16.6",
"@mdx-js/tag": "0.15.0",
- "@primer/blueprints": "4.0.1",
+ "@primer/blueprints": "4.0.2",
"@primer/components": "12.0.1",
"@primer/next-pages": "0.0.3",
"@storybook/addon-viewport": "5.0.11",
diff --git a/pages/_app.js b/pages/_app.js
index 99537ab2b2..0610ff13c0 100644
--- a/pages/_app.js
+++ b/pages/_app.js
@@ -7,7 +7,7 @@ import {BaseStyles, Link, Text, BorderBox, Box, Flex, theme} from '@primer/compo
import {PackageHeader} from '../docs/components'
import {Header, MarkdownHeading, JumpNav, SideNav} from '@primer/blueprints'
import {NavList} from '@primer/blueprints/next-components'
-import getComponents from '../docs/markdown'
+import components from '../docs/markdown'
import documents from '../searchIndex'
import {config, requirePage, rootPage} from '../docs/utils'
import {CONTENT_MAX_WIDTH} from '../docs/constants'
@@ -36,8 +36,6 @@ export default class MyApp extends App {
const node = rootPage.first(node => node.path === pathname) || {}
const {file, meta = {}} = node || {}
const isIndex = file.includes('index')
- const components = getComponents(node)
-
const Hero = file ? requirePage(file).Hero : null
return (
@@ -101,12 +99,12 @@ export default class MyApp extends App {
>
-
-
+
+
diff --git a/pages/css/components/avatars.md b/pages/css/components/avatars.md
index 0b97d22022..fa2f5bb981 100644
--- a/pages/css/components/avatars.md
+++ b/pages/css/components/avatars.md
@@ -9,7 +9,7 @@ bundle: avatars
Avatars are images that users can set as their profile picture. On GitHub, they're always going to be rounded squares. They can be custom photos, uploaded by users, or generated as Identicons as a placeholder.
-{:toc}
+## Table of Contents
## Basic example
@@ -154,4 +154,3 @@ For specific cases where two badges or more need to be shown as related or conne
```
-
diff --git a/pages/css/components/box.md b/pages/css/components/box.md
index 9177061bd9..27eb51ba58 100644
--- a/pages/css/components/box.md
+++ b/pages/css/components/box.md
@@ -10,7 +10,7 @@ bundle: box
The `.Box` component can be used for something as simple as a rounded corner box, or more complex lists and forms. It includes optional modifiers for padding density and color themes.
-{:toc}
+## Table of Contents
## Box
diff --git a/pages/css/components/buttons.md b/pages/css/components/buttons.md
index 668bc190a8..ca384b6342 100644
--- a/pages/css/components/buttons.md
+++ b/pages/css/components/buttons.md
@@ -9,7 +9,7 @@ bundle: buttons
Buttons are used for **actions**, like in forms, while textual hyperlinks are used for **destinations**, or moving from one page to another.
-{:toc}
+## Table of Contents
## Default button
diff --git a/pages/css/components/dropdown.md b/pages/css/components/dropdown.md
index ee687b466a..61bbac489a 100644
--- a/pages/css/components/dropdown.md
+++ b/pages/css/components/dropdown.md
@@ -8,7 +8,7 @@ symbols: [active, anim-scale-in, btn-link, dropdown, dropdown-caret, dropdown-di
Dropdowns are lightweight, JavaScript-powered context menus for housing navigation and actions. They're great for instances where you don't need the full power (and code) of the select menu.
-{:toc}
+## Table of Contents
## Basic examples
diff --git a/pages/css/components/forms.md b/pages/css/components/forms.md
index 19c3d4de03..dad68e6ffb 100644
--- a/pages/css/components/forms.md
+++ b/pages/css/components/forms.md
@@ -9,7 +9,7 @@ bundle: forms
Style individual form controls and utilize common layouts.
-{:toc}
+## Table of Contents
Overview:
- We reset several elements' default styles for cross browser consistency and easier manipulation later. This includes `