Upgrade theme and use exported buttons

This commit is contained in:
Trevor Blades
2019-05-06 13:46:09 -07:00
parent e6259147fa
commit f625c7f31d
3 changed files with 166 additions and 46 deletions

196
docs/package-lock.json generated
View File

@@ -1480,10 +1480,18 @@
"yargs": "^9.0.0"
}
},
"@mapbox/hast-util-table-cell-style": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/@mapbox/hast-util-table-cell-style/-/hast-util-table-cell-style-0.1.3.tgz",
"integrity": "sha512-QsEsh5YaDvHoMQ2YHdvZy2iDnU3GgKVBTcHf6cILyoWDZtPSdlG444pL/ioPYO/GpXSfODBb9sefEetfC4v9oA==",
"requires": {
"unist-util-visit": "^1.3.0"
}
},
"@mdx-js/mdx": {
"version": "1.0.15",
"resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.0.15.tgz",
"integrity": "sha512-7lbd2RS0s5TJvytPTbJ0YQqIkJokmggcla3hdOYUHJq2O6eG/IW6qNwf21IWEwNzRbI8IbWM6FflKEopYAPL+w==",
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.0.16.tgz",
"integrity": "sha512-d4YD7utmW850UVQdb4GjD6MRnRlB5NspheS6x48PiewuW7DuoNPTEnQ+ZjJYzZg5dWRy52yWtaZvDj39a7DMgg==",
"requires": {
"@babel/helper-plugin-utils": "^7.0.0",
"@babel/plugin-syntax-jsx": "^7.2.0",
@@ -1503,9 +1511,9 @@
}
},
"@mdx-js/react": {
"version": "1.0.15",
"resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-1.0.15.tgz",
"integrity": "sha512-JMiy65fmgQxju7DFwUoysZktFnLcN3jUk5Vfis/b/jxfvZJqMRz1VpUGw5bFBrOZeefoOJ+uZQV5h+Zu4K8EOQ=="
"version": "1.0.16",
"resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-1.0.16.tgz",
"integrity": "sha512-HJJO8LYogt9UT4TP3+TVeokMj0lgwCONKlcOfr7VMb38Z6DDE3Ydvi+M3iScUea2DfifS4kGztgJ7zH6HXynTw=="
},
"@mikaelkristiansson/domready": {
"version": "1.0.9",
@@ -2272,9 +2280,9 @@
}
},
"array-iterate": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.2.tgz",
"integrity": "sha512-1hWSHTIlG/8wtYD+PPX5AOBtKWngpDFjrsrHgZpe+JdgNGz0udYu6ZIkAa/xuenIUEqFv7DvE2Yr60jxweJSrQ=="
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.3.tgz",
"integrity": "sha512-7MIv7HE9MuzfK6B2UnWv07oSHBLOaY1UUXAxZ07bIeRM+4IkPTlveMDs9MY//qvxPZPSvCn2XV4bmtQgSkVodg=="
},
"array-map": {
"version": "0.0.0",
@@ -3671,9 +3679,9 @@
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
},
"collapse-white-space": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.4.tgz",
"integrity": "sha512-YfQ1tAUZm561vpYD+5eyWN8+UsceQbSrqqlc/6zDY2gtAE+uZLSdkkovhnGpmCThsvKBFakq4EdY/FF93E8XIw=="
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.5.tgz",
"integrity": "sha512-703bOOmytCYAX9cXYqoikYIx6twmFCXsnzRQheBcTG3nzKYBR4P/+wkYeH+Mvj7qUz8zZDtdyzbxfnEi/kYzRQ=="
},
"collection-visit": {
"version": "1.0.0",
@@ -7015,9 +7023,9 @@
}
},
"gatsby-mdx": {
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/gatsby-mdx/-/gatsby-mdx-0.6.2.tgz",
"integrity": "sha512-knTLJCONK4I4ItDfnCBuxEy6imXzyUJ9rbjzoqgy8Z8sDjmwlXcJ4j2RRJnjttZP8NxPt/YR/Dljj0HVotC+YA==",
"version": "0.6.3",
"resolved": "https://registry.npmjs.org/gatsby-mdx/-/gatsby-mdx-0.6.3.tgz",
"integrity": "sha512-jrSXGul8KRqTcwHdZHYl2HmRMjbgfnb0WlFEUt2r/kzeF46BvkHA0PqnWnCrTL3HBzLbY/3mX/KFbaFxlr/nYA==",
"requires": {
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
@@ -7081,9 +7089,9 @@
}
},
"gatsby-plugin-google-analytics": {
"version": "2.0.18",
"resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.0.18.tgz",
"integrity": "sha512-fW2WKo7onfxr9sVUCKKtDRUVqleVHBp9CMz7xVWnNpiM3+u4KgYWj7VzmjKPr00zgmp/AOEu1L7SUjYMDys0QA==",
"version": "2.0.19",
"resolved": "https://registry.npmjs.org/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.0.19.tgz",
"integrity": "sha512-Db1nOpzS1Nq52E0tFfgF2uCPCnWEtJbUMKLX1RU5Hfki8BoPHpZUHrcd5NtT3KQuVa7Ekps+3uJVziK+Yj5n+A==",
"requires": {
"@babel/runtime": "^7.0.0"
}
@@ -7195,9 +7203,9 @@
}
},
"gatsby-remark-prismjs": {
"version": "3.2.8",
"resolved": "https://registry.npmjs.org/gatsby-remark-prismjs/-/gatsby-remark-prismjs-3.2.8.tgz",
"integrity": "sha512-bqvBWLEt6u2o2IQ1nEgR3PCozvEMX5gfcqCilJrA/zjk7dKnCExe1074mXOR3hly7fS54OOJlXQvjMhWHSAKeg==",
"version": "3.2.9",
"resolved": "https://registry.npmjs.org/gatsby-remark-prismjs/-/gatsby-remark-prismjs-3.2.9.tgz",
"integrity": "sha512-6SqFpzp46zjnOzoBss2Ghao1YMbFpwPzxpGuD36goFdyNyRtA/m+MBvR+BHFsjVa2bgpm6eYRo6APNjYPyzZcg==",
"requires": {
"@babel/runtime": "^7.0.0",
"parse-numeric-range": "^0.0.2",
@@ -7205,9 +7213,9 @@
}
},
"gatsby-source-filesystem": {
"version": "2.0.32",
"resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-2.0.32.tgz",
"integrity": "sha512-OdgyIu7myI2lrKf13zN3HQ0GBcR4nm7B+XkAytfW394BLiSYLt7htRtSBIxm19eLtfY4yVFLFE3R48FuP/J+/w==",
"version": "2.0.33",
"resolved": "https://registry.npmjs.org/gatsby-source-filesystem/-/gatsby-source-filesystem-2.0.33.tgz",
"integrity": "sha512-GH/Y8dJ/+EKie3ckMrcHn1MsYcLVNbglCKNoTaDuY31rFCh3gq6310bdi8u//J+dcgcz7ggHXTN0W7FXxWF9FQ==",
"requires": {
"@babel/runtime": "^7.0.0",
"better-queue": "^3.8.7",
@@ -7264,6 +7272,19 @@
}
}
},
"gatsby-source-git": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/gatsby-source-git/-/gatsby-source-git-1.0.1.tgz",
"integrity": "sha512-1nopUF/9nXu+0f7hwqQrpnwyDRi/EP/pah5L/aar4MhG6u1MxF23EFz8TPNgkm/EaC348Rte9ZEixChBwEYXYA==",
"requires": {
"fast-glob": "^2.2.3",
"fs-extra": "^5.0.0",
"gatsby-source-filesystem": "^2.0.4",
"git-url-parse": "^11.1.1",
"rimraf": "^2.6.2",
"simple-git": "^1.105.0"
}
},
"gatsby-telemetry": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/gatsby-telemetry/-/gatsby-telemetry-1.0.10.tgz",
@@ -7354,9 +7375,9 @@
}
},
"gatsby-theme-apollo-docs": {
"version": "1.0.0-alpha.12",
"resolved": "https://registry.npmjs.org/gatsby-theme-apollo-docs/-/gatsby-theme-apollo-docs-1.0.0-alpha.12.tgz",
"integrity": "sha512-a3vl/EqIiNRfLgMiwMndJkeodFbqSeFw6VKqqLVpiKUylj1bwHPR+MJRcuIBGv/mKLgoD5QDX8RkNQ0wsTKTtw==",
"version": "1.0.0-alpha.28",
"resolved": "https://registry.npmjs.org/gatsby-theme-apollo-docs/-/gatsby-theme-apollo-docs-1.0.0-alpha.28.tgz",
"integrity": "sha512-uLzazvdY8MdF2mrs366jEDq5kJeKUF75J5V9d+SYIcATMiHC3yMLiSYT4ym3Wi6XEksjL4ifNoYrfmYYSewPUw==",
"requires": {
"@mdx-js/mdx": "^1.0.0-rc.4",
"@mdx-js/react": "^1.0.0-rc.5",
@@ -7367,8 +7388,10 @@
"gatsby-remark-copy-linked-files": "^2.0.12",
"gatsby-remark-prismjs": "^3.2.8",
"gatsby-source-filesystem": "^2.0.29",
"gatsby-source-git": "^1.0.1",
"gatsby-theme-apollo": "^0.1.14",
"gatsby-transformer-remark": "^2.3.8",
"js-yaml": "^3.13.1",
"polished": "^2.3.3",
"prismjs": "^1.15.0",
"prop-types": "^15.6.2",
@@ -7377,7 +7400,8 @@
"react-helmet": "^5.2.0",
"react-icons": "^3.3.0",
"recompose": "^0.30.0",
"simple-git": "^1.107.0"
"remark": "^10.0.1",
"remark-react": "^5.0.1"
}
},
"gatsby-transformer-remark": {
@@ -7613,6 +7637,23 @@
"assert-plus": "^1.0.0"
}
},
"git-up": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/git-up/-/git-up-4.0.1.tgz",
"integrity": "sha512-LFTZZrBlrCrGCG07/dm1aCjjpL1z9L3+5aEeI9SBhAqSc+kiA9Or1bgZhQFNppJX6h/f5McrvJt1mQXTFm6Qrw==",
"requires": {
"is-ssh": "^1.3.0",
"parse-url": "^5.0.0"
}
},
"git-url-parse": {
"version": "11.1.2",
"resolved": "https://registry.npmjs.org/git-url-parse/-/git-url-parse-11.1.2.tgz",
"integrity": "sha512-gZeLVGY8QVKMIkckncX+iCq2/L8PlwncvDFKiWkBn9EtCfYDbliRTTp6qzyQ1VMdITUfq7293zDzfpjdiGASSQ==",
"requires": {
"git-up": "^4.0.0"
}
},
"github-slugger": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-1.2.1.tgz",
@@ -8060,6 +8101,14 @@
"zwitch": "^1.0.0"
}
},
"hast-util-sanitize": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-1.3.0.tgz",
"integrity": "sha512-rQeetoD08jHmDOUYN6h9vTuE0hQN4wymhtkQZ6whHtcjaLpjw5RYAbcdxx9cMgMWERDsSs79UpqHuBLlUHKeOw==",
"requires": {
"xtend": "^4.0.1"
}
},
"hast-util-to-html": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-4.0.1.tgz",
@@ -8197,9 +8246,9 @@
"integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8="
},
"html-void-elements": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.3.tgz",
"integrity": "sha512-SaGhCDPXJVNrQyKMtKy24q6IMdXg5FCPN3z+xizxw9l+oXQw5fOoaj/ERU5KqWhSYhXtW5bWthlDbTDLBhJQrA=="
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-1.0.4.tgz",
"integrity": "sha512-yMk3naGPLrfvUV9TdDbuYXngh/TpHbA6TrOw3HL9kS8yhwx7i309BReNg7CbAJXGE+UMJ6je5OqJ7lC63o6YuQ=="
},
"htmlparser2": {
"version": "3.10.1",
@@ -8934,6 +8983,14 @@
"resolved": "https://registry.npmjs.org/is-root/-/is-root-1.0.0.tgz",
"integrity": "sha1-B7bCM7w5TNnQK6FclmvWZg1jQtU="
},
"is-ssh": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.1.tgz",
"integrity": "sha512-0eRIASHZt1E68/ixClI8bp2YK2wmBPVWEismTs6M+M099jKgrzl/3E976zIbImSIob48N2/XGe9y7ZiYdImSlg==",
"requires": {
"protocols": "^1.1.0"
}
},
"is-stream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
@@ -10721,11 +10778,38 @@
"resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz",
"integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY="
},
"parse-path": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/parse-path/-/parse-path-4.0.1.tgz",
"integrity": "sha512-d7yhga0Oc+PwNXDvQ0Jv1BuWkLVPXcAoQ/WREgd6vNNoKYaW52KI+RdOFjI63wjkmps9yUE8VS4veP+AgpQ/hA==",
"requires": {
"is-ssh": "^1.3.0",
"protocols": "^1.4.0"
}
},
"parse-unit": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/parse-unit/-/parse-unit-1.0.1.tgz",
"integrity": "sha1-fhu21b7zh0wo45JSaiVBFwKR7s8="
},
"parse-url": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/parse-url/-/parse-url-5.0.1.tgz",
"integrity": "sha512-flNUPP27r3vJpROi0/R3/2efgKkyXqnXwyP1KQ2U0SfFRgdizOdWfvrrvJg1LuOoxs7GQhmxJlq23IpQ/BkByg==",
"requires": {
"is-ssh": "^1.3.0",
"normalize-url": "^3.3.0",
"parse-path": "^4.0.0",
"protocols": "^1.4.0"
},
"dependencies": {
"normalize-url": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz",
"integrity": "sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg=="
}
}
},
"parse5": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz",
@@ -11749,6 +11833,11 @@
"xtend": "^4.0.1"
}
},
"protocols": {
"version": "1.4.7",
"resolved": "https://registry.npmjs.org/protocols/-/protocols-1.4.7.tgz",
"integrity": "sha512-Fx65lf9/YDn3hUX08XUc0J8rSux36rEsyiv21ZGUC1mOyeM3lTRpZLcrm8aAolzS4itwVfm7TAPyxC2E5zd6xg=="
},
"proxy-addr": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz",
@@ -12104,14 +12193,19 @@
"resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-3.0.0.tgz",
"integrity": "sha512-XzgvowFrwDo6TWcpJ/WTiarb9UI6lhA4PMzS7n1joK3sHfBBBOQHUc0U4u57D6DWO9vHv6lVSWx2Q/Ymfyv4hw=="
},
"react-fast-compare": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz",
"integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw=="
},
"react-helmet": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/react-helmet/-/react-helmet-5.2.0.tgz",
"integrity": "sha1-qBgR3yExOm1VxfBYxK66XW89l6c=",
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/react-helmet/-/react-helmet-5.2.1.tgz",
"integrity": "sha512-CnwD822LU8NDBnjCpZ4ySh8L6HYyngViTZLfBBb3NjtrpN8m49clH8hidHouq20I51Y6TpCTISCBbqiY5GamwA==",
"requires": {
"deep-equal": "^1.0.1",
"object-assign": "^4.1.1",
"prop-types": "^15.5.4",
"react-fast-compare": "^2.0.2",
"react-side-effect": "^1.1.0"
}
},
@@ -12487,6 +12581,32 @@
"xtend": "^4.0.1"
}
},
"remark-react": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/remark-react/-/remark-react-5.0.1.tgz",
"integrity": "sha512-yHv5WIh47srKfdm794UMIHjNLr6EY2YCzsqvdJ/qvN1Tq1jgyg3q8Zo9pJc4L7BwZOMTia6O2JgrJeOsJfowzA==",
"requires": {
"@mapbox/hast-util-table-cell-style": "^0.1.3",
"hast-to-hyperscript": "^6.0.0",
"hast-util-sanitize": "^1.0.0",
"mdast-util-to-hast": "^4.0.0"
},
"dependencies": {
"hast-to-hyperscript": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/hast-to-hyperscript/-/hast-to-hyperscript-6.0.0.tgz",
"integrity": "sha512-QnJbXddVGNJ5v3KegK1MY6luTkNDBcJnCQZcekt7AkES2z4tYy85pbFUXx7Mb0iXZBKfwoVdgfxU12GbmlwbbQ==",
"requires": {
"comma-separated-tokens": "^1.0.0",
"property-information": "^5.0.0",
"space-separated-tokens": "^1.0.0",
"style-to-object": "^0.2.1",
"unist-util-is": "^2.0.0",
"web-namespaces": "^1.1.2"
}
}
}
},
"remark-retext": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/remark-retext/-/remark-retext-3.1.2.tgz",
@@ -13089,9 +13209,9 @@
"integrity": "sha1-HdrOSYF5j5O9gzlzgD2A1S6TrWo="
},
"simple-git": {
"version": "1.110.0",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-1.110.0.tgz",
"integrity": "sha512-UYY0rQkknk0P5eb+KW+03F4TevZ9ou0H+LoGaj7iiVgpnZH4wdj/HTViy/1tNNkmIPcmtxuBqXWiYt2YwlRKOQ==",
"version": "1.112.0",
"resolved": "https://registry.npmjs.org/simple-git/-/simple-git-1.112.0.tgz",
"integrity": "sha512-3vY0SW+RkO+ElWH07n/PQuKmuNLZSz3VAkxKMr3UMm/QnaSnYFjg3nqT8V6a0QCcUFpkyAWVsruQt4oSIIzPXw==",
"requires": {
"debug": "^4.0.1"
},

View File

@@ -4,6 +4,6 @@
},
"dependencies": {
"gatsby": "2.3.25",
"gatsby-theme-apollo-docs": "^1.0.0-alpha.12"
"gatsby-theme-apollo-docs": "^1.0.0-alpha.28"
}
}

View File

@@ -7,11 +7,11 @@ Welcome! 👋 We're excited you're here to learn about Apollo.
The Apollo GraphQL platform is an implementation of GraphQL that helps you manage data from the cloud to your UI. It's incrementally adoptable and can be layered over your existing services, including REST APIs and databases. Apollo includes two open-source libraries for the client and server, in addition to developer tooling that provides everything you need to run a graph API in production with confidence.
<div class="documentation-buttons">
<a href="/docs/tutorial/introduction.html" class="btn default">Try it out!</a>
<a href="/docs/intro/platform.html" class="btn default hollow">Learn more</a>
</div>
import {ButtonWrapper, Button, HollowButton} from 'gatsby-theme-apollo-docs';
<div style="text-align:center">
<img src="./img/platform.jpg" alt="Graph layer" />
</div>
<ButtonWrapper>
<Button href="/docs/tutorial/introduction.html">Try it out!</Button>
<HollowButton href="/docs/intro/platform.html">Learn more</HollowButton>
</ButtonWrapper>
![Graph layer](./img/platform.jpg)