You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Good pull requests—patches, improvements, new features—are a fantastic help.
50
50
51
51
**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.
52
52
53
-
### Updating Primer CSS modules
53
+
### Updating Primer CSS
54
54
55
55
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.
Copy file name to clipboardExpand all lines: DEVELOP.md
+1-20Lines changed: 1 addition & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,26 +46,8 @@ Then visit http://localhost:3000/css to view the site.
46
46
47
47
: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.
48
48
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
-
65
49
### 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).
69
51
70
52
71
53
### URL tests
@@ -101,7 +83,6 @@ Our [`package.json`](package.json) houses a collection of [run-scripts] that we
101
83
*`lint` lints all of our SCSS source files.
102
84
*`lint-js` lints the docs site and supporting scripts.
103
85
*`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 forinclusionin the docs site.
105
86
*`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.
106
87
*`test-migrate` tests the [`primer-migrate`](MIGRATING.md#primer-migrate) command line utility.
107
88
*`watch` runs the sync script in watch mode, copying files as they're changed from `src/` to `pages/css/`.
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@primer/css",
3
-
"version": "12.4.0",
3
+
"version": "12.4.1",
4
4
"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.",
0 commit comments