Skip to content

Commit b9dd86d

Browse files
committedJan 17, 2021
docs: update
1 parent bc52fac commit b9dd86d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed
 

‎docs/404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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="/light-switch/favicon.ico"/><title>404 - not found</title><meta name="description" content="404 - not found."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"404 - not found"}</script><link rel="stylesheet" href="/light-switch/magic.css?DIusUD77fC" integrity="sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/light-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/light-switch/"><svg viewBox="0 0 512 444"><path d="M512 444L256 0 0 444z" fill="#663695"></path><circle cx="256" cy="294" r="130" fill="#fff"></circle><circle cx="256" cy="281" r="40" fill="#663695"></circle><path d="M256 350v44m24-44l1 13c1 27 29 27 29-7m-160-72s46-47 106-47c59 0 106 47 106 47s-47 43-106 43c-60 0-106-43-106-43zm65-75a134 134 0 0189 2" class="stroke"></path><path d="M256 81v53m184 270l-43-29M72 404l43-29" class="stroke white"></path></svg></a><p>LightSwitch</p><nav class="Menu"><ul><li><a href="/light-switch/#installation">installation</a></li><li><a href="/light-switch/#usage">usage</a></li><li><a href="/light-switch/#positioning">positioning</a></li><li><a href="/light-switch/#source">source</a></li></ul></nav></div></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://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?28ri4lMVIB" integrity="sha384-28ri4lMVIBBefBv/aMj1CNqw9t4Qy9lznaZ6mPQ9dquM6su/A/SC+rm6b521XqY5" crossorigin="anonymous"></script></body></html>
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="/light-switch/favicon.ico"/><title>404 - not found</title><meta name="description" content="404 - not found."/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"404 - not found"}</script><link rel="stylesheet" href="/light-switch/magic.css?DIusUD77fC" integrity="sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/light-switch/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/light-switch/"><svg viewBox="0 0 512 444"><path d="M512 444L256 0 0 444z" fill="#663695"></path><circle cx="256" cy="294" r="130" fill="#fff"></circle><circle cx="256" cy="281" r="40" fill="#663695"></circle><path d="M256 350v44m24-44l1 13c1 27 29 27 29-7m-160-72s46-47 106-47c59 0 106 47 106 47s-47 43-106 43c-60 0-106-43-106-43zm65-75a134 134 0 0189 2" class="stroke"></path><path d="M256 81v53m184 270l-43-29M72 404l43-29" class="stroke white"></path></svg></a><p>LightSwitch</p><nav class="Menu"><ul><li><a href="/light-switch/#installation">installation</a></li><li><a href="/light-switch/#usage">usage</a></li><li><a href="/light-switch/#positioning">positioning</a></li><li><a href="/light-switch/#source">source</a></li></ul></nav></div></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://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?HHcCW0BvmO" integrity="sha384-HHcCW0BvmOZTg5w1Pop6U+h8pz0BEYvz60K6RRc2GHcIORcsiS4L0Z+dnXdt/Q7w" crossorigin="anonymous"></script></body></html>

‎docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
LightSwitch component. It provides a color theme switch button.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/light-switch?color=blue" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><img src="https://img.shields.io/node/v/@magic-modules/light-switch?color=blue" height="23" role="presentation" alt="" loading="lazy"/></li><li><img src="https://img.shields.io/npm/l/@magic-modules/light-switch?color=blue" height="23" role="presentation" alt="" loading="lazy"/></li><li><a href="https://travis-ci.com/magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/light-switch/master" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/light-switch/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/light-switch/master.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://coveralls.io/github/magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/light-switch/master.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://snyk.io/test/github/magic-modules/light-switch" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/light-switch.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li></ul><h2 id="installation">installation</h2><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">npm</span> <span class="keyword">install</span> @magic-modules/light-switch</code></pre></div><h2 id="usage">usage</h2><p>hoist in src/config.mjs</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /src/config.mjs</span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"> HOIST: [<span class="string">&#39;LanguageSwitch&#39;</span>],</code><code class="line">}</code></pre></div><p>thats it, your magic app will now know to display the LightSwitch button.</p><h2 id="positioning">positioning</h2><p>to further customize the position or other css, just use the .LightSwitch class in your theme css.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="comment">// /assets/theme/yourtheme/index.mjs</span></code><code class="line"><span class="keyword">export</span> <span class="keyword">default</span> {</code><code class="line"> <span class="comment">// ...other styles</span></code><code class="line"></code><code class="line"> <span class="comment">// top right</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> left: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> right: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> top: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> },</code><code class="line"></code><code class="line"> <span class="comment">// bottom right</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> bottom: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> left: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> right: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> top: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> },</code><code class="line"></code><code class="line"> <span class="comment">// top left</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> left: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> top: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> },</code><code class="line"></code><code class="line"> <span class="comment">// bottom left</span></code><code class="line"> <span class="string">&#39;.LightSwitch&#39;</span>: {</code><code class="line"> bottom: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> left: <span class="string">&#39;0.5em&#39;</span>,</code><code class="line"> position: <span class="string">&#39;fixed&#39;</span>,</code><code class="line"> top: <span class="string">&#39;auto&#39;</span>,</code><code class="line"> },</code><code class="line">}</code></pre></div><h2 id="source">source</h2><p>the source for this page is in the
44
<a href="https://github.com/magic-modules/light-switch/tree/master/example" target="_blank" rel="noopener">example directory</a>
55
and gets built and published to github using
6-
<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://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?28ri4lMVIB" integrity="sha384-28ri4lMVIBBefBv/aMj1CNqw9t4Qy9lznaZ6mPQ9dquM6su/A/SC+rm6b521XqY5" crossorigin="anonymous"></script></body></html>
6+
<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://magic.github.io/">magic</a></div></div></footer></div></main><script src="/light-switch/magic.js?HHcCW0BvmO" integrity="sha384-HHcCW0BvmOZTg5w1Pop6U+h8pz0BEYvz60K6RRc2GHcIORcsiS4L0Z+dnXdt/Q7w" crossorigin="anonymous"></script></body></html>

‎docs/magic.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/sitemap.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
<url>
99
<loc>https://magic-modules.github.io/light-switch/</loc>
10-
<lastmod>2021-01-05</lastmod>
10+
<lastmod>2021-01-17</lastmod>
1111
<changefreq>weekly</changefreq>
1212
<priority>0.5</priority>
1313
</url>
1414

1515
<url>
1616
<loc>https://magic-modules.github.io/light-switch/404/</loc>
17-
<lastmod>2021-01-05</lastmod>
17+
<lastmod>2021-01-17</lastmod>
1818
<changefreq>weekly</changefreq>
1919
<priority>0.5</priority>
2020
</url>

‎docs/sri-hashes.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"/magic.css": "sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H",
3-
"/magic.js": "sha384-28ri4lMVIBBefBv/aMj1CNqw9t4Qy9lznaZ6mPQ9dquM6su/A/SC+rm6b521XqY5",
4-
"/light-switch/": "sha384-XxgQL3UIbChO4IgXc1KnaMYXVCWzP778JPdV94wpQcAvq4KRXoGV7qRBXjm9NahV",
5-
"/light-switch/404/": "sha384-KjAHkxa95Zup0vkqSgntfxvyN7Lh7upzvxoYj/n4jey2iffwc0MKlKueW7Jvrb9y",
3+
"/magic.js": "sha384-HHcCW0BvmOZTg5w1Pop6U+h8pz0BEYvz60K6RRc2GHcIORcsiS4L0Z+dnXdt/Q7w",
4+
"/light-switch/": "sha384-LBGnHN4Gvhmi7+cRmY/+vYp+QmS8V7mG40NW49uTMO3dGttRfGZQjEUuJk5Yx2Iu",
5+
"/light-switch/404/": "sha384-rYnbQcJXFoe99RnU1/A2Fj6s/gnCBJgJ3UWHsjBe+WPAP901ORl/t8+qdPrPOMyk",
66
"/robots.txt": "sha384-5DS7b+96RA/5uL1/ifKotSSvr0w+OUCaNBw94lSdFAHL1Hphw24KShbFVTxTjKg1",
7-
"/sitemap.xml": "sha384-v7WSGbyS+hAnjYHXzjHSALi9MVCYxWIZkH/zhG3D6AdubmcO2ubT1qhEaAO6dZ9n"
7+
"/sitemap.xml": "sha384-5APsg5tyJpTvsW5To9HMP8w6JWjP+ZZPg5UIaflqtswDXkQjZr2GKeh7hpS5mz8O"
88
}

0 commit comments

Comments
 (0)
Please sign in to comment.