1
1
mirror of https://github.com/primer/css.git synced 2024-11-27 17:52:45 +03:00
Commit Graph

463 Commits

Author SHA1 Message Date
Shawn Allen
8a4e6ea025 bye, emotion! 2019-01-11 15:11:56 -08:00
Shawn Allen
a419b0a1ec update to @primer/components v8, styled-components v4, bye emotion! 2019-01-11 15:11:43 -08:00
Shawn Allen
1429313766
Fix typo in styleguide root error 2019-01-11 14:49:59 -08:00
Shawn Allen
7c2e875073 bump the docs and tools versions manually 2019-01-11 14:33:47 -08:00
Shawn Allen
6b035cbfd9 replace "real" avatar URLs with simpler ones 2019-01-11 14:29:22 -08:00
Shawn Allen
fc0282526b don't render live code from erb blocks 2019-01-11 14:29:22 -08:00
Shawn Allen
d45d1c86dc mark all examples with ERB as "erb", not "html" 2019-01-11 14:29:22 -08:00
Shawn Allen
fe02611878 replace current_user ERB with "probot" in select-menu examples 2019-01-11 14:29:22 -08:00
Shawn Allen
99972e6713 tweak broken link report a bit more 2019-01-11 14:29:22 -08:00
Shawn Allen
445dd94f31 do the primer.css copy in prebuild, not deploy-docs 2019-01-11 14:29:22 -08:00
Shawn Allen
a08be0714c better broken link reports, fix local URL prefix fade 2019-01-11 14:29:22 -08:00
Shawn Allen
df031a79c9 move -v option after the url 2019-01-11 14:29:22 -08:00
Shawn Allen
8c4082c256 update GA UA from @jonrohan 2019-01-11 14:29:22 -08:00
Shawn Allen
20c667a6ae better handling of "excepted" urls in link checker 2019-01-11 14:29:22 -08:00
Shawn Allen
c62bb805f8 nix -r argument for script/check-links 2019-01-11 14:29:22 -08:00
Shawn Allen
d8598507f5 clean up link checker output some more 2019-01-11 14:29:22 -08:00
Shawn Allen
460c1ce410 fix .file access error in _app.js 2019-01-11 14:29:22 -08:00
Shawn Allen
fcea64cfb1 log excluded urls, even when not --verbose 2019-01-11 14:29:22 -08:00
Shawn Allen
43e42879df fix syntax error 2019-01-11 14:29:22 -08:00
Shawn Allen
74972a0437 run script/check-links instead of blc 2019-01-11 14:29:22 -08:00
Shawn Allen
fcd90aae9f fix WAI-ARIA links on a11y page 2019-01-11 14:29:22 -08:00
Shawn Allen
5e12fa54b4 fix missing alt attribute on typography <img> 2019-01-11 14:29:22 -08:00
Shawn Allen
58cc205af2 rename check-local-links -> check-relative-links 2019-01-11 14:29:22 -08:00
Shawn Allen
8396c64f44 add new check-links wrapper script 2019-01-11 14:29:22 -08:00
Shawn Allen
540a2e5371 add char-spinner 2019-01-11 14:29:22 -08:00
Shawn Allen
71125b3fb2 add robots.txt for less error-prone crawling 2019-01-11 14:29:22 -08:00
Shawn Allen
8fabde94f9 clean up contributing docs markup, links 2019-01-11 14:29:22 -08:00
Shawn Allen
82fec2ac85 add script/check-local-links for fast markdown checks 2019-01-11 14:29:22 -08:00
Shawn Allen
2c9081bde3 add test-links npm script (for local testing) 2019-01-11 14:29:22 -08:00
Shawn Allen
9a999a5647 add static assets (favicon, touch icon, analytics.js) 2019-01-11 14:29:22 -08:00
Shawn Allen
efd8b0d248 fix html link 2019-01-11 14:29:22 -08:00
Shawn Allen
77565993c6 use the github avatar instead of ellipses 2019-01-11 14:29:22 -08:00
Shawn Allen
312717f82a another absolute link 2019-01-11 14:29:22 -08:00
Shawn Allen
a1e72b13c7 hard-code github avatar in principles example 2019-01-11 14:29:22 -08:00
Shawn Allen
b07dab8f72 make a bunch of links absolute 2019-01-11 14:29:22 -08:00
Shawn Allen
1b9dff8387 clean up some linting docs 2019-01-11 14:29:22 -08:00
Shawn Allen
ca661743db fix code style link on principles page 2019-01-11 14:29:22 -08:00
Shawn Allen
21ee4e90bd fix links on tools/linting page 2019-01-11 14:29:22 -08:00
Shawn Allen
63609e515a fix some links 2019-01-11 14:29:22 -08:00
Shawn Allen
b532fed0af fix status key link in package header 2019-01-11 14:29:22 -08:00
Shawn Allen
832791f647 install broken-link-checker; npm audit fix 2019-01-11 14:29:22 -08:00
Shawn Allen
a910c08472 list redirects explicitly in docs path test 2019-01-11 14:29:22 -08:00
Shawn Allen
006ded9643 clean up docs url test 2019-01-11 14:29:22 -08:00
Shawn Allen
a2ccd31077 move before.txt -> test/fixtures/path-cache.txt 2019-01-11 14:29:22 -08:00
Shawn Allen
85d1d7c2e7 clean up docs path test output 2019-01-11 14:29:22 -08:00
Shawn Allen
45c6e71d74 run sync before test 2019-01-11 14:29:22 -08:00
Shawn Allen
6a88cbd6d2 update before.txt with normalized paths 2019-01-11 14:29:22 -08:00
Shawn Allen
b8dbd08d51 add klaw, run test/urls.js 2019-01-11 14:29:22 -08:00
Shawn Allen
51afc6d103 add test/urls.js and test/exceptions.js 2019-01-11 14:29:22 -08:00
Shawn Allen
5586bc03e5 nix test.sh 2019-01-11 14:29:22 -08:00
Shawn Allen
6fc4a06e13 add *.txt to .gitignore 2019-01-11 14:29:22 -08:00
Shawn Allen
aede1b6d05 bump link spacing down from 3 to 2 2019-01-11 14:29:22 -08:00
Shawn Allen
0321d66875 match side nav link spacing from primer/components 2019-01-11 14:29:22 -08:00
Shawn Allen
80fe02d817 match content + side nav width of primer/components 2019-01-11 14:29:22 -08:00
Shawn Allen
507acb4bde move status label docs into a table 2019-01-11 14:29:22 -08:00
Shawn Allen
0991e43080 refactor status labels to look the same 2019-01-11 14:29:22 -08:00
Shawn Allen
ae7884ddda make "Status key" a SectionLink 2019-01-11 14:29:22 -08:00
Shawn Allen
b64fe6e547 don't show Metadata <details> in prod 2019-01-11 14:29:22 -08:00
Shawn Allen
d45ba99ea3 add Status key link; improve nav path generation 2019-01-11 14:29:22 -08:00
Shawn Allen
8bc7a8512a replace "Whats New" header link with Releases 2019-01-11 14:29:20 -08:00
Shawn Allen
57445ef976 nix the whats-new directory and changelog sync plugin 2019-01-11 14:28:35 -08:00
Shawn Allen
21cd98bba6 move status-key.md up 2019-01-11 14:28:35 -08:00
Shawn Allen
88be8a9560 tidy up docs for NodeLink 2019-01-09 10:01:05 -08:00
Shawn Allen
fb9a8185b4 make header image responsive 2019-01-09 10:00:57 -08:00
Shawn Allen
03214885bc fix header link font sizes
/cc @emplums: I started with a verbatim copy of the header from
primer/components, but after introducing the global primer CSS it looks
like I've had to set fontSize={2} explicitly on all of our links to bump
it back up. The way I did this feels kinda yucky; would you have done it
differently?
2019-01-09 09:59:13 -08:00
Shawn Allen
fcc274b364 export HeaderImage from src/landing 2019-01-09 09:58:48 -08:00
Shawn Allen
219e15e2d6 replace intro text with header image 2019-01-09 09:58:35 -08:00
Shawn Allen
f45a62cbcf move src/IndexImage -> src/landing/HeaderImage 2019-01-09 09:57:58 -08:00
Shawn Allen
b1010e4f9c import new header image from @ashygee 2019-01-09 09:44:20 -08:00
Shawn Allen
c14f9ac37f bump the tool versions because lerna is dumb 2019-01-07 15:14:46 -08:00
Shawn Allen
6c2aaac2ae remove sidebar frontmatter field 2019-01-04 10:40:04 -08:00
Shawn Allen
a8c3c1fceb remove some out-of-date info from the contributing docs 2019-01-04 10:40:04 -08:00
Shawn Allen
f3e9590cbb run node 8 on now 2019-01-04 10:34:53 -08:00
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