Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Mar 1, 2020
1 parent 69b5c43 commit 67b186c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/gql/favicon.ico"/><title>@magic-libraries/gql</title><meta name="description" content="graphql query handler for @magic"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-libraries/gql"}</script><link rel="stylesheet" href="/gql/magic.css?kUrAPicEg3" integrity="sha384-kUrAPicEg3qZBlaW32CA75F1Aj96PM+GUTu4MsGlIqZmNTBmJtsJifLdiKKOkWLy" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/gql/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gql/"><span>@magic-libraries/gql</span></a><nav class="Menu"><ul><li><a href="/gql/#installation">installation</a></li><li><a href="/gql/#usage">usage</a></li><li><a href="/gql/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gql/magic.js?uiyqw9LR5N" integrity="sha384-uiyqw9LR5NCCv1WkPrncWXpyT6wXloyThRvTCTVIhA7yCgrBoDy/m4IzkP9nMPyz" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/gql/favicon.ico"/><title>@magic-libraries/gql</title><meta name="description" content="graphql query handler for @magic"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-libraries/gql"}</script><link rel="stylesheet" href="/gql/magic.css?kUrAPicEg3" integrity="sha384-kUrAPicEg3qZBlaW32CA75F1Aj96PM+GUTu4MsGlIqZmNTBmJtsJifLdiKKOkWLy" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/gql/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gql/"><span>@magic-libraries/gql</span></a><nav class="Menu"><ul><li><a href="/gql/#installation">installation</a></li><li><a href="/gql/#usage">usage</a></li><li><a href="/gql/#source">source</a></li></ul></nav></header><div class="Page" id="page"><div>404 - not found</div></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gql/magic.js?tmnLEhlkuW" integrity="sha384-tmnLEhlkuWhfHdhRCwIDqqXSajrfIs1Xa9PNT+IBqQznuGM5jQ388mO9ZK5RxzVF" crossorigin="anonymous"></script></body></html>
6 changes: 5 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/gql/favicon.ico"/><title>@magic-libraries/gql</title><meta name="description" content="graphql query handler for @magic"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-libraries/gql"}</script><link rel="stylesheet" href="/gql/magic.css?kUrAPicEg3" integrity="sha384-kUrAPicEg3qZBlaW32CA75F1Aj96PM+GUTu4MsGlIqZmNTBmJtsJifLdiKKOkWLy" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/gql/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gql/"><span>@magic-libraries/gql</span></a><nav class="Menu"><ul><li><a href="/gql/#installation">installation</a></li><li><a href="/gql/#usage">usage</a></li><li><a href="/gql/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h2>@magic-libraries/gql</h2><p><a href="https://magic.github.io/core" target="_blank" rel="noopener">@magic</a>-client library: graphql query handler for @magic</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-libraries/gql.svg" role="presentation" alt=""/></a></li><li><img src="https://img.shields.io/node/v/@magic/core" role="presentation" alt=""/></li><li><a href="https://travis-ci.com/magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-libraries/gql/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magiclibraries/gql/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magiclibraries/gql/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-libraries/gql/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic-libraries/gql.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-libraries/gql.svg" role="presentation" alt=""/></a></li></ul><h3 id="installation">installation</h3><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm install --save-exact @magic-libraries/gql</code></pre></div><h3 id="usage">usage</h3><p>in a page/component, just use the lib.gql functions</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">const</span> query = <span class="object">lib</span>.<span class="property">gql</span>(`</code><code class="line">query getHuman($<span class="colon">id</span>: Int = 3) {</code><code class="line"> human(<span class="colon">id</span>: $id) {</code><code class="line"> name</code><code class="line"> height</code><code class="line"> }</code><code class="line">}</code><code class="line">`)</code><code class="line"></code><code class="line"><span class="keyword">const</span> jsonString = query({ <span class="colon">id</span>: 1 })</code></pre></div><p>jsonString now is valid json:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">{</code><code class="line"> <span class="string">&#39;query&#39;</span>: `query getHuman($<span class="colon">id</span>: Int = 3) {</code><code class="line"> human(<span class="colon">id</span>: $id) {</code><code class="line"> name</code><code class="line"> height</code><code class="line"> }</code><code class="line"> }`,</code><code class="line"> <span class="string">&#39;variables&#39;</span>: { <span class="colon">id</span>: <span class="string">&#39;1&#39;</span> },</code><code class="line"> <span class="string">&#39;operationName&#39;</span>:<span class="string">&#39;getHuman&#39;</span></code><code class="line">}</code></pre></div><h3 id="source">source</h3><p>the source for this page is in the <a href="https://github.com/magic-libraries/gql/tree/master/example" target="_blank" rel="noopener">example directory</a> and gets built and published to github using <a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p><button class="LightSwitch"><svg viewBox="0 0 352 460"><path d="M149 48C96 48 48 95 47 143c-1 13 19 17 20 0-1-35 48-75 83-75 15 0 12-22-1-20z"></path><path d="M176 0C74 0 0 83 0 176c9 91 84 118 100 204h20c-16-92-97-138-100-204C22 70 105 21 176 20zM95 400c2 68 20 48 40 60h82c20-12 38 8 40-60z"></path><path d="M175 0c102 0 177 83 177 176-9 91-86 118-102 204h-20c16-92 99-138 102-204-2-106-86-155-157-156z"></path></svg></button></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gql/magic.js?uiyqw9LR5N" integrity="sha384-uiyqw9LR5NCCv1WkPrncWXpyT6wXloyThRvTCTVIhA7yCgrBoDy/m4IzkP9nMPyz" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="icon" href="/gql/favicon.ico"/><title>@magic-libraries/gql</title><meta name="description" content="graphql query handler for @magic"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-libraries/gql"}</script><link rel="stylesheet" href="/gql/magic.css?kUrAPicEg3" integrity="sha384-kUrAPicEg3qZBlaW32CA75F1Aj96PM+GUTu4MsGlIqZmNTBmJtsJifLdiKKOkWLy" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/gql/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/gql/"><span>@magic-libraries/gql</span></a><nav class="Menu"><ul><li><a href="/gql/#installation">installation</a></li><li><a href="/gql/#usage">usage</a></li><li><a href="/gql/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1 id="undefined">undefined</h1><a href="https://magic.github.io/core" target="_blank" rel="noopener">@magic</a>-client library:
undefined<p></p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-libraries/gql.svg" role="presentation" alt=""/></a></li><li><img src="https://img.shields.io/node/v/@magic/core" role="presentation" alt=""/></li><li><a href="https://travis-ci.com/magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-libraries/gql/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magiclibraries/gql/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magiclibraries/gql/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-libraries/gql/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic-libraries/gql.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic-libraries/gql" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-libraries/gql.svg" role="presentation" alt=""/></a></li></ul><h3 id="installation">installation</h3><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm install --save-exact @magic-libraries/gql</code></pre></div><h3 id="usage">usage</h3><p>in a page/component, just use the lib.gql functions</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">const</span> query = <span class="object">lib</span>.<span class="property">gql</span>(`</code><code class="line">query getHuman($<span class="colon">id</span>: Int = 3) {</code><code class="line"> human(<span class="colon">id</span>: $id) {</code><code class="line"> name</code><code class="line"> height</code><code class="line"> }</code><code class="line">}`)</code><code class="line"></code><code class="line"><span class="keyword">const</span> jsonString = query({ <span class="colon">id</span>: 1 })</code></pre></div><p>jsonString now is valid json:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">{</code><code class="line"> <span class="string">&#39;query&#39;</span>: `query getHuman($<span class="colon">id</span>: Int = 3) {</code><code class="line"> human(<span class="colon">id</span>: $id) {</code><code class="line"> name</code><code class="line"> height</code><code class="line"> }</code><code class="line"> }`,</code><code class="line"> <span class="string">&#39;variables&#39;</span>: { <span class="colon">id</span>: <span class="string">&#39;1&#39;</span> },</code><code class="line"> <span class="string">&#39;operationName&#39;</span>:<span class="string">&#39;getHuman&#39;</span></code><code class="line">}</code></pre></div><h3 id="source">source</h3><p>the source for this page is in the
<a href="https://github.com/magic-libraries/gql/tree/master/example" target="_blank" rel="noopener">example directory</a>,
and gets built and published to github using
<a href="https://github.com/magic/core" target="_blank" rel="noopener">@magic/core</a></p></div><footer class="Footer"><div class="Container"><div class="Credits">made with a few bits of <a target="_blank" rel="noopener" href="https://github.com/magic/core">magic</a></div></div></footer></div></main><script src="/gql/magic.js?tmnLEhlkuW" integrity="sha384-tmnLEhlkuWhfHdhRCwIDqqXSajrfIs1Xa9PNT+IBqQznuGM5jQ388mO9ZK5RxzVF" crossorigin="anonymous"></script></body></html>
2 changes: 1 addition & 1 deletion docs/magic.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@

<url>
<loc>https://magic-libraries.github.io/gql/</loc>
<lastmod>2020-02-29</lastmod>
<lastmod>2020-03-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>

<url>
<loc>https://magic-libraries.github.io/gql/404/</loc>
<lastmod>2020-02-29</lastmod>
<lastmod>2020-03-01</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
Expand Down
8 changes: 4 additions & 4 deletions docs/sri-hashes.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"css": "sha384-kUrAPicEg3qZBlaW32CA75F1Aj96PM+GUTu4MsGlIqZmNTBmJtsJifLdiKKOkWLy",
"js": "sha384-uiyqw9LR5NCCv1WkPrncWXpyT6wXloyThRvTCTVIhA7yCgrBoDy/m4IzkP9nMPyz",
"js": "sha384-tmnLEhlkuWhfHdhRCwIDqqXSajrfIs1Xa9PNT+IBqQznuGM5jQ388mO9ZK5RxzVF",
"pages": {
"/gql/": "sha384-ij4QWkPjNNpGACA/K0ex5aSDbwb+PyE7GMmmBGMRWetNjChwfxxXUExkepfiAW2k",
"/gql/404/": "sha384-rVBFWJlcWglHGkANY13N6qQoLycJMnQScsWdxoEaXcWJIAtj+HJYWChsyt5QitsL"
"/gql/": "sha384-PS4lMBPFAeA6YMCHLanvGxP42+sWsbHNqJ6oRXQaTVUs2FM0SNlJDg79Z7Jeh6yF",
"/gql/404/": "sha384-A1gb9lgInjqlcGyjr6XJMA2CDjJKSCt6GqANBRPRk9IWB5vsv2DDR3HoYmfQOOoq"
},
"static": {
"/favicon.ico": "sha384-pf51ay6pZCj3+XlVCPmCKLDFpLj7QP+2heR+/n08WgS7Bve7JMkgubHOkwLzaTr+",
"/robots.txt": "sha384-CAvZWfNkckgch71N3XcgNxOus81EwmBLlN5fbZLPdpfnQ4szSPZ2bZik1BzHj8nY",
"/sitemap.xml": "sha384-9Ru51NS0WB6BxgHp2XfOmTxo7n/drdOrQIDchzAAWgukwFokersoc6Z1j3Ic2znq"
"/sitemap.xml": "sha384-6v/OUt/MNb6Q2LoHt7RjZ4/+AFpJzYgHgvVkJTL7fCTYLozR3i+gezOBQ+8VEDRj"
}
}

0 comments on commit 67b186c

Please sign in to comment.