1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 19:53:11 +03:00
Commit Graph

440 Commits

Author SHA1 Message Date
Shawn Allen
2f7660627b link to Metalsmith again 2018-12-21 11:10:29 -08:00
Shawn Allen
8a03949eed add docs/README.md 2018-12-21 11:09:53 -08:00
Shawn Allen
595727feeb move a comment 2018-12-21 11:06:33 -08:00
Shawn Allen
5b658f3578 simplify landing page markup again 2018-12-20 15:05:51 -08:00
Shawn Allen
8115deb179 just use Docs as the link text 2018-12-20 15:04:19 -08:00
Shawn Allen
dd4d8803d1 get the hero differently (to fix render issue?) 2018-12-20 14:54:15 -08:00
Shawn Allen
a0ac1fa912 move the hero into css/index.md 2018-12-20 14:53:54 -08:00
Shawn Allen
b4c45783bc simpliy hero padding 2018-12-20 14:40:37 -08:00
Shawn Allen
fea374a1d8 lint 2018-12-20 14:29:18 -08:00
Shawn Allen
ca4ceabc11 fix side nav height 2018-12-20 14:28:22 -08:00
Shawn Allen
85bfb29511 make HTML syntax gray for now 2018-12-20 14:22:32 -08:00
Shawn Allen
f0c03758ef kill default prism-code styles 2018-12-20 14:22:20 -08:00
Shawn Allen
f08bcca435 default data = {} in package meta components 2018-12-18 14:01:35 -08:00
Shawn Allen
ee5165d966 sort side nav links by meta.sort_title || meta.title 2018-12-18 14:01:15 -08:00
Shawn Allen
e505c80099 rebuild package-lock 2018-12-18 14:00:50 -08:00
Shawn Allen
1a9d3f8e55 update OG metadata 2018-12-17 16:06:23 -08:00
Shawn Allen
6d9618e8c4 add styleguide CSS + JS bundles 2018-12-17 15:57:53 -08:00
Shawn Allen
9f203f71f3 re-add @mdx-js/mdx 2018-12-17 15:44:25 -08:00
Shawn Allen
f5198f818f tidy up yaml frontmatter 2018-12-17 15:26:50 -08:00
Shawn Allen
aa77f0182d lint 2018-12-17 15:26:50 -08:00
Shawn Allen
8e10d12d0f inject global CSS to work around .markdown-body .rule 2018-12-17 15:26:50 -08:00
Shawn Allen
ed666bdea0 trim yaml frontmatter on pagehead 2018-12-17 15:26:50 -08:00
Shawn Allen
c844ab2b90 make internal stuff orange 2018-12-17 15:26:50 -08:00
Shawn Allen
724f1b5df6 fix empty alt attrs + autofocus 2018-12-17 15:26:50 -08:00
Shawn Allen
7a71728272 add details-dialog-element 2018-12-17 15:26:50 -08:00
Shawn Allen
1de93c2721 nix mdx-loader 2018-12-17 15:26:50 -08:00
Shawn Allen
cbb9ef9154 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
2ed5750489 add getting started box to landing page 2018-12-17 15:26:50 -08:00
Shawn Allen
5487a21dff fix dropdown source link 2018-12-17 15:26:50 -08:00
Shawn Allen
dbe3e9d93e mark some pages as internal 2018-12-17 15:26:50 -08:00
Shawn Allen
9faeeda46a mark non-live HTML snippets as "dead" in getting-started 2018-12-17 15:26:50 -08:00
Shawn Allen
2ef60c5ade tweak contributing page 2018-12-17 15:26:50 -08:00
Shawn Allen
b08437926b get CodeExample working with most HTML and ERB 2018-12-17 15:26:50 -08:00
Shawn Allen
7659b0e18f flag internal pages more obviously 2018-12-17 15:26:50 -08:00
Shawn Allen
821f92cdbd use our own clipboard copy logic /shrug 2018-12-17 15:26:50 -08:00
Shawn Allen
76fbfed54c improve package listings on landing page 2018-12-17 15:26:50 -08:00
Shawn Allen
548c1729c7 customize our rehype-prism bits 2018-12-17 15:26:50 -08:00
Shawn Allen
b94ead88c7 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
919d48747e convert HTML to JSX transparently 😎 2018-12-17 15:26:50 -08:00
Shawn Allen
2626cf574f add packages.json to pages/css/.gitignore 2018-12-17 15:26:50 -08:00
Shawn Allen
fc8139b4d7 stub out landing page 2018-12-17 15:26:50 -08:00
Shawn Allen
0f22531698 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
f2325b3422 clean up IndexHero 2018-12-17 15:26:50 -08:00
Shawn Allen
c2ff8e5d8c add various remark and mdx-related deps 2018-12-17 15:26:50 -08:00
Shawn Allen
bc4e000ac4 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
8907a7e95f move outline (toc) logic out of _app.js 2018-12-17 15:26:50 -08:00
Shawn Allen
847726c593 add custom mdx (webpack) loader w/remark-toc 2018-12-17 15:26:50 -08:00
Shawn Allen
c5a6cb2113 extract package metadata from */package.json 2018-12-17 15:26:50 -08:00
Shawn Allen
5b5dc4b361 style live code with prism-github 2018-12-17 15:26:50 -08:00
Shawn Allen
d9bd354412 add ClipboardCopy component 2018-12-17 15:26:50 -08:00
Shawn Allen
961f4af9c3 use html-2-jsx 2018-12-17 15:26:50 -08:00
Shawn Allen
e359d2812e clean up deps, add html-2-jsx 2018-12-17 15:26:50 -08:00
Shawn Allen
07ed1f7138 LiveEditor -> CodeExample, make it work 2018-12-17 15:26:50 -08:00
Shawn Allen
39b698fc7c install style-parser (ugh) 2018-12-17 15:26:50 -08:00
Shawn Allen
59f34eeef4 disable mdx-loader syntax highlighting 2018-12-17 15:26:50 -08:00
Shawn Allen
a7fcf79746 fix font size in PackageHeader 2018-12-17 15:26:50 -08:00
Shawn Allen
0301cf0b44 remove squirrelly SideNav display props 2018-12-17 15:26:50 -08:00
Shawn Allen
88dbdd00c3 improve responsiveness, tighten up hero 2018-12-17 15:26:50 -08:00
Shawn Allen
9328967104 loosen up PackageHeader propTypes 2018-12-17 15:26:50 -08:00
Shawn Allen
73a20eb808 add comment for RouteMatch 2018-12-17 15:26:50 -08:00
Shawn Allen
2935e0d642 guard against non-existent paths in <NavList> 2018-12-17 15:26:50 -08:00
Shawn Allen
e025fd787a document how SideNav components work 2018-12-17 15:26:50 -08:00
Shawn Allen
3eadd1a6dc nix prepare script because Now runs it 2018-12-17 15:26:50 -08:00
Shawn Allen
4f74ce8d65 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
384b6f42c6 derp, add prepare run-script to docs/package.json 2018-12-17 15:26:50 -08:00
Shawn Allen
3b2cdadda1 tweak maxWidth (932), use LiveEditor 2018-12-17 15:26:50 -08:00
Shawn Allen
d2b49913c2 simplify next.config.js 2018-12-17 15:26:50 -08:00
Shawn Allen
b42ed54e19 fix content area width 2018-12-17 15:26:50 -08:00
Shawn Allen
0f5e9cca70 add metadata to the changelog 2018-12-17 15:26:50 -08:00
Shawn Allen
c371303a8a fix warning about root 2018-12-17 15:26:50 -08:00
Shawn Allen
b183d91cbc improve PackageHeader 2018-12-17 15:26:50 -08:00
Shawn Allen
d691c2454c rework color utilities page 2018-12-17 15:26:50 -08:00
Shawn Allen
42fe0442a6 tidy up 2018-12-17 15:26:50 -08:00
Shawn Allen
4da5321376 only attempt to sync in CI 2018-12-17 15:26:50 -08:00
Shawn Allen
54b3bf0524 rename copy -> script 2018-12-17 15:26:50 -08:00
Shawn Allen
f00af46e0d add package header 2018-12-17 15:26:50 -08:00
Shawn Allen
ff62ac1e21 move sync hook from next.config to lib/config 2018-12-17 15:26:50 -08:00
Shawn Allen
c2e05d8449 refactor syncing with Metalsmith 2018-12-17 15:26:50 -08:00
Shawn Allen
4f2fadba61 install metalsmith and plugins 2018-12-17 15:26:50 -08:00
Shawn Allen
b903b40b06 sort paths in docs/pages/css/.gitignore 2018-12-17 15:26:50 -08:00
Shawn Allen
b1d769259b be smarter about files synced 2018-12-17 15:26:50 -08:00
Shawn Allen
3abd52b043 nix utilities/marketing.md 2018-12-17 15:26:50 -08:00
Shawn Allen
8132c0c330 wrap up script/copy w/ --watch flag, add watching to next.config.js 2018-12-17 15:26:50 -08:00
Shawn Allen
29ef33801a move copy.js -> script/copy, add watch() 2018-12-17 15:26:50 -08:00
Shawn Allen
0479a6c329 color system fade swatch tweaks 2018-12-17 15:26:50 -08:00
Shawn Allen
4e57d9bc5a properly blend fades with bg to calculate text colors 2018-12-17 15:26:50 -08:00
Shawn Allen
5cd4ec41ac add title-case 2018-12-17 15:26:50 -08:00
Shawn Allen
ca22d8d8e4 lint, move contrast constants into separate file 2018-12-17 15:26:50 -08:00
Shawn Allen
8a030b1e36 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
ac4f414783 fix color contrast on color system page 2018-12-17 15:26:50 -08:00
Shawn Allen
d4c28429a3 replace color with chroma-js, add prop-types 2018-12-17 15:26:50 -08:00
Shawn Allen
4cbcd73407 add color to docs 2018-12-17 15:26:50 -08:00
Shawn Allen
a44ac95355 revamp color system docs 2018-12-17 15:26:50 -08:00
Shawn Allen
b5e2ef7883 add doc comment for NodeLink 2018-12-17 15:26:50 -08:00
Shawn Allen
8b2ef65395 nix remark-{frontmatter,yaml-config} (provided by mdx-loader) 2018-12-17 15:26:50 -08:00
Shawn Allen
f43e65a6f7 simplify sidenav route logic 2018-12-17 15:26:50 -08:00
Shawn Allen
eae2ace1b0 ignore static/primer.css 2018-12-17 15:26:50 -08:00
Shawn Allen
486cfd04d6 vary primer css url in production 2018-12-17 15:26:50 -08:00
Shawn Allen
b6042f99b3 pass production flag to publicRuntimeConfig 2018-12-17 15:26:50 -08:00
Shawn Allen
2a9e16bca2 tweak resolve.alias for primer css 2018-12-17 15:26:50 -08:00
Shawn Allen
f123bc3528 nix assets/ from asset path 2018-12-17 15:26:50 -08:00
Shawn Allen
62c707174c nix webpack() callback from next.config.js, tidy 2018-12-17 15:26:50 -08:00
Shawn Allen
22ca302bc3 move primer css alias to lib/config 2018-12-17 15:26:50 -08:00
Shawn Allen
0f570b32ad bring back klaw-sync? 2018-12-17 15:26:50 -08:00
Shawn Allen
bdd2f228b3 use primer/index.scss 2018-12-17 15:26:50 -08:00
Shawn Allen
0871afe9cc add next-sass 2018-12-17 15:26:50 -08:00
Shawn Allen
40390e5fe6 simplify webpack rules 2018-12-17 15:26:50 -08:00
Shawn Allen
0ae132b362 nix @primer/next for now 2018-12-17 15:26:50 -08:00
Shawn Allen
e044ded39d lint 2018-12-17 15:26:50 -08:00
Shawn Allen
6d19cda887 fix some syntax highlighting 2018-12-17 15:26:50 -08:00
Shawn Allen
5d4f2125b2 install now 2018-12-17 15:26:50 -08:00
Shawn Allen
c2f0c4bf3e fix what's new section links 2018-12-17 15:26:50 -08:00
Shawn Allen
1b66c6bfaa add what's new sidebar 2018-12-17 15:26:50 -08:00
Shawn Allen
7448568234 build full page list, don't exit(1) on diff 2018-12-17 15:26:50 -08:00
Shawn Allen
33c5ad4cee lint 2018-12-17 15:26:50 -08:00
Shawn Allen
8cc2a458a8 add settings.react to .eslintrc.json 2018-12-17 15:26:50 -08:00
Shawn Allen
ddf07bf019 nix pages/css/_copies.json 2018-12-17 15:26:50 -08:00
Shawn Allen
abc4ae58ff remove unused lib/*.js 2018-12-17 15:26:50 -08:00
Shawn Allen
8d5437facc return (don't exit) from copy.js on Now 2018-12-17 15:26:50 -08:00
Shawn Allen
6901ef5666 add key to List iterator 2018-12-17 15:26:50 -08:00
Shawn Allen
7c9ac9ef2e make NodeLink a common component 2018-12-17 15:26:50 -08:00
Shawn Allen
e08b68a36a add title: Docs to /css 2018-12-17 15:26:50 -08:00
Shawn Allen
6e3cf68d71 remove some unneeded frontmatter 2018-12-17 15:26:50 -08:00
Shawn Allen
fa73332cb2 add side nav switching 2018-12-17 15:26:50 -08:00
Shawn Allen
921538392c add tools pages 2018-12-17 15:26:50 -08:00
Shawn Allen
0e00a16e5c add table of contents, use mdx-loader frontMatter export 2018-12-17 15:26:50 -08:00
Shawn Allen
dd2a0f64c6 use mdx-loaded (with batteries!) 2018-12-17 15:26:50 -08:00
Shawn Allen
8daa292b8c nix support/base.md 2018-12-17 15:26:50 -08:00
Shawn Allen
8aee199bde swap out next-sass for next-css 2018-12-17 15:26:50 -08:00
Shawn Allen
81572ae143 use the static css build 2018-12-17 15:26:50 -08:00
Shawn Allen
56a8cb2c34 install node-sass 2018-12-17 15:26:50 -08:00
Shawn Allen
700ced80d9 add more files to now.json 2018-12-17 15:26:50 -08:00
Shawn Allen
904be8e14f lowercase principles pages 2018-12-17 15:26:50 -08:00
Shawn Allen
ad310d937b add more pages from github/styleguide 2018-12-17 15:26:50 -08:00
Shawn Allen
35d566c8c8 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
d571737ce4 lint pages + src 2018-12-17 15:26:50 -08:00
Shawn Allen
9609af5b06 lint 2018-12-17 15:26:50 -08:00
Shawn Allen
52e8996cee lint 2018-12-17 15:26:50 -08:00
Shawn Allen
58826e9e64 fix prop warnings 2018-12-17 15:26:50 -08:00
Shawn Allen
41de574d82 fix child key warning 2018-12-17 15:26:50 -08:00
Shawn Allen
bf53d51592 remove MDX component cruft, fix MDXProvider warning 2018-12-17 15:26:50 -08:00
Shawn Allen
9377a7823c update generated pages .gitignore 2018-12-17 15:26:50 -08:00
Shawn Allen
5054a557e2 simplify metadata 2018-12-17 15:26:50 -08:00
Shawn Allen
15e336ddb7 factor out NextLink 2018-12-17 15:26:50 -08:00
Shawn Allen
36cc8cc318 fix header nav links 2018-12-17 15:26:50 -08:00
Shawn Allen
cfa54cc5dc update page mapping, add whats-new content 2018-12-17 15:26:50 -08:00
Shawn Allen
e4931155fc build out the side nav 2018-12-17 15:26:50 -08:00
Shawn Allen
5b2cdeb253 sort imports 2018-12-17 15:26:50 -08:00
Shawn Allen
ed92871477 import primer/index.scss 2018-12-17 15:26:50 -08:00
Shawn Allen
5e72e4c620 move page tree logic into src/utils 2018-12-17 15:26:50 -08:00
Shawn Allen
b6c5ae7437 bring back tree-model (yep) 2018-12-17 15:26:50 -08:00
Shawn Allen
395a7369a6 move changelog back to /whats_new/changelog 2018-12-17 15:26:50 -08:00
Shawn Allen
0cbc2887c0 reorganize page logic, redirect / -> /css 2018-12-17 15:26:50 -08:00
Shawn Allen
aff3f32b0c strip trailing slash from router.pathname 2018-12-17 15:26:50 -08:00
Shawn Allen
c54c4b691f remove trailing slashes from side nav links 2018-12-17 15:26:50 -08:00
Shawn Allen
e8ba091b20 move pages/doc-components/ -> src/ 2018-12-17 15:26:50 -08:00
Shawn Allen
79d3b353a2 install @zeit/next-sass and primer-colors 2018-12-17 15:26:50 -08:00
Shawn Allen
32c4ee78dc rename lib/mdx -> lib/config 2018-12-17 15:26:50 -08:00
Shawn Allen
5d74233523 move svg loader to lib/mdx 2018-12-17 15:26:50 -08:00
Shawn Allen
25a442e4e7 don't copy primer-{support,utilities}/README 2018-12-17 15:26:50 -08:00
Shawn Allen
aebb8db6f2 add <h1> with page meta.title 2018-12-17 15:26:50 -08:00
Shawn Allen
c5c9561863 copy over module indexes from github/styleguide 2018-12-17 15:26:50 -08:00
Shawn Allen
5ba6a64631 nix overly verbose console warning 2018-12-17 15:26:09 -08:00
Shawn Allen
9b8727a76c add custom mdx plugin w/YAML frontmatter parsing 2018-12-17 15:26:09 -08:00
Shawn Allen
eded03562c add metadata support 2018-12-17 15:26:09 -08:00
Shawn Allen
230d9bb290 fix docs test on CI 2018-12-17 15:26:09 -08:00
Shawn Allen
0a9c1555b9 pin docs deps to root 2018-12-17 15:26:09 -08:00
Shawn Allen
cfa6b5648d lint 2018-12-17 15:26:09 -08:00
Shawn Allen
d50301764a add eslint + prettier configs 2018-12-17 15:26:09 -08:00
Shawn Allen
fcdccc3eea tweak "do not edit" .gitignore comment 2018-12-17 15:26:09 -08:00
Shawn Allen
d2061f26d9 track copied files in pages/css/.gitignore 2018-12-17 15:26:09 -08:00
Shawn Allen
812ba7e91e copy all the site scaffolding from @primer/components 2018-12-17 15:26:09 -08:00
Shawn Allen
fd5771235a copy over all the config from @primer/components 2018-12-17 15:26:09 -08:00
Shawn Allen
2426818bb7 add copy.js to now.files 2018-12-17 15:26:09 -08:00
Shawn Allen
b1279a6f21 bail from copy.js on Now 2018-12-17 15:26:09 -08:00
Shawn Allen
13f9efdb64 copy files in prepare and predev 2018-12-17 15:26:09 -08:00
Shawn Allen
4581d90c4e write list of copied files 2018-12-17 15:26:09 -08:00
Shawn Allen
864a799c8d make copy.js synchronous 2018-12-17 15:26:09 -08:00
Shawn Allen
443962f1ac update run-scripts for now 2018-12-17 15:26:09 -08:00
Shawn Allen
944fa063ed index.mdx -> index.md 2018-12-17 15:26:09 -08:00
Shawn Allen
4a8e818d85 upgrade to @primer/next@0.0.10 2018-12-17 15:26:09 -08:00
Shawn Allen
8559f69671 copy, don't symlink 2018-12-17 15:26:09 -08:00
Shawn Allen
3bb689845f version:1 in now.json 2018-12-17 15:26:09 -08:00
Shawn Allen
878da82b88 alias -> name in now.json 2018-12-17 15:26:09 -08:00
Shawn Allen
cf621defea install @primer/components, bump @primer/next 2018-12-17 15:26:09 -08:00
Shawn Allen
67938b594f add now.json 2018-12-17 15:26:09 -08:00
Shawn Allen
2ccbf4be74 stub out static dir 2018-12-17 15:26:09 -08:00
Shawn Allen
c079ff79f0 @primer/next ftw 2018-12-17 15:26:09 -08:00
Shawn Allen
91bb94f4fb ignore .next/ 2018-12-17 15:26:09 -08:00
Shawn Allen
43e86a4802 get next up and running 2018-12-17 15:26:09 -08:00
Shawn Allen
02b9e81ee0 move pages-specific ignores into pages/css 2018-12-17 15:26:09 -08:00
Shawn Allen
636a9544ab move site/lib -> docs/lib 2018-12-17 15:26:09 -08:00
Shawn Allen
be05cdbb28 reorganize scripts 2018-12-17 15:26:09 -08:00
Shawn Allen
9bcc3a9658 stub out site pages symlinks 2018-12-17 15:26:09 -08:00
Jon Rohan
b7b89b63df Tear down existing primer and rebuild with npm 2016-05-02 16:22:46 -04:00
Jon Rohan
412423c0b7 Update blankslate.md 2016-03-19 20:34:38 -04:00
Jon Rohan
16c11c4ea7 Adding no-delay option 2016-03-17 09:57:01 -04:00
Jon Rohan
690e3ab86c Extra block 2016-03-14 12:01:08 -04:00
Jon Rohan
1e9b6846d1 fix a few things 2016-03-14 11:50:17 -04:00
Jon Rohan
980837be57 Renaming .select to form-select 2016-03-14 11:44:18 -04:00