Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeh committed Jan 9, 2020
1 parent d6c0eb2 commit dc2fd9f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 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"/><link rel="stylesheet" href="/video-embed/magic.css?aRZNrd3wcb" integrity="sha384-aRZNrd3wcbJZRW2S9RY5PenNyQl/yBlrbOG2kzm4TjoEcSvz4JrERCn44mTpUnCp" crossorigin="anonymous"/><link rel="icon" href="/video-embed/favicon.ico"/><title>@magic-modules/video-embed</title><meta name="description" content="renders videos from any http url that allows iframe embedding"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/video-embed"}</script></head><body><a class="SkipLink" href="/video-embed/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/video-embed/"><span>VideoEmbed</span></a><nav class="Menu"><ul><li><a href="/video-embed/#installation">installation</a></li><li><a href="/video-embed/#usage">usage</a></li><li><a href="/video-embed/#props">props</a></li><li><a href="/video-embed/#fixed-dimensions">fixed dimensions</a></li><li><a href="/video-embed/#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="/video-embed/magic.js?RZ7wwKKglf" integrity="sha384-RZ7wwKKglfX2h5RUfuzIstPhcMP4HUzmeXVw+xd+Uz2L224lrO+BZtlfQfOpCVRJ" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/video-embed/magic.css?lSHG9DiAPR" integrity="sha384-lSHG9DiAPRIYZNwx9wlAf62/RMAMEOa54GWaU6dJAoX9kiWCUhix5fBybY006p5d" crossorigin="anonymous"/><link rel="icon" href="/video-embed/favicon.ico"/><title>@magic-modules/video-embed</title><meta name="description" content="renders videos from any http url that allows iframe embedding"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/video-embed"}</script></head><body><a class="SkipLink" href="/video-embed/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/video-embed/"><span>VideoEmbed</span></a><nav class="Menu"><ul><li><a href="/video-embed/#installation">installation</a></li><li><a href="/video-embed/#usage">usage</a></li><li><a href="/video-embed/#props">props</a></li><li><a href="/video-embed/#fixed-dimensions">fixed dimensions</a></li><li><a href="/video-embed/#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="/video-embed/magic.js?r6m3CffGgH" integrity="sha384-r6m3CffGgHmxZkmj2EdlwlYh9HzB0XH5LrwYXJGBCw5LL9o1TWbD/kVhRfuTsuIi" crossorigin="anonymous"></script></body></html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/video-embed/magic.css?aRZNrd3wcb" integrity="sha384-aRZNrd3wcbJZRW2S9RY5PenNyQl/yBlrbOG2kzm4TjoEcSvz4JrERCn44mTpUnCp" crossorigin="anonymous"/><link rel="icon" href="/video-embed/favicon.ico"/><title>@magic-modules/video-embed</title><meta name="description" content="renders videos from any http url that allows iframe embedding"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/video-embed"}</script></head><body><a class="SkipLink" href="/video-embed/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/video-embed/"><span>VideoEmbed</span></a><nav class="Menu"><ul><li><a href="/video-embed/#installation">installation</a></li><li><a href="/video-embed/#usage">usage</a></li><li><a href="/video-embed/#props">props</a></li><li><a href="/video-embed/#fixed-dimensions">fixed dimensions</a></li><li><a href="/video-embed/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1>@magic-modules/video-embed</h1><p>this is the <a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a> VideoEmbed component. It renders videos from any http url that allows iframe embedding.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/video-embed.svg" role="presentation" alt=""/></a></li><li><a href="https://travis-ci.com/magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/video-embed/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/video-embed/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/video-embed/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/video-embed/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic-modules/video-embed.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/video-embed.svg" role="presentation" alt=""/></a></li></ul><h2 id="installation">installation:</h2><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm install @magic-modules/video-embed</code></pre></div><h2 id="usage">usage</h2><h3 id="usage-youtube">youtube</h3><p>in a page/component, just pass a video id to the VideoEmbed module.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed(<span class="string">&#39;ecIWPzGEbFc&#39;</span>)</code></pre></div><p>renders</p><div class="VideoEmbed"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://www.youtube-nocookie.com/embed/ecIWPzGEbFc"></iframe></div><h3 id="usage-vimeo">vimeo</h3><p>if the video id is a number, the video is assumed to be hosted on vimeo</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed(153090637)</code><code class="line">VideoEmbed(<span class="string">&#39;153090637&#39;</span>)</code></pre></div><p>renders</p><div class="VideoEmbed"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://player.vimeo.com/video/153090637"></iframe></div><h4 id="usage-others">other video hosts</h4><p>videos from arbitrary hosts can be included as well, as long as those hosts allow iframe embeds</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed(&#39;https://videopress.com/embed/kUJmAcSf&#39;)</code></pre></div><p>renders</p><div class="VideoEmbed"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://videopress.com/embed/kUJmAcSf"></iframe></div><h2 id="props">props</h2><p>you can pass a width and height, a style object and any other props to the video.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed({ <span class="colon">src</span>: <span class="string">&#39;8QYWGCEm2Dc&#39;</span>, <span class="colon">width</span>: <span class="string">&#39;50%&#39;</span>, <span class="colon">height</span>: 200, <span class="colon">style</span>: { <span class="colon">margin</span>: <span class="string">&#39;1em 0 0&#39;</span> } })</code></pre></div><p>renders</p><div class="VideoEmbed" style="width:50%"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://www.youtube-nocookie.com/embed/8QYWGCEm2Dc"></iframe></div><h3 id="fixed-dimensions">fixed video dimensions</h3><p>to set a fixed video size, simply add both a height and a width value (px, em, rem, vh, pt).</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed({ <span class="colon">src</span>: <span class="string">&#39;SMhwddNQSWQ&#39;</span>, <span class="colon">width</span>: <span class="string">&#39;300px&#39;</span>, <span class="colon">height</span>: <span class="string">&#39;900px&#39;</span> })</code></pre></div><div class="VideoEmbed" style="height:900px;width:300px"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://www.youtube-nocookie.com/embed/SMhwddNQSWQ"></iframe></div><h2 id="source">source</h2><p>the source for this page is in the <a href="https://github.com/magic-modules/video-embed/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"></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="/video-embed/magic.js?RZ7wwKKglf" integrity="sha384-RZ7wwKKglfX2h5RUfuzIstPhcMP4HUzmeXVw+xd+Uz2L224lrO+BZtlfQfOpCVRJ" crossorigin="anonymous"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><link rel="stylesheet" href="/video-embed/magic.css?lSHG9DiAPR" integrity="sha384-lSHG9DiAPRIYZNwx9wlAf62/RMAMEOa54GWaU6dJAoX9kiWCUhix5fBybY006p5d" crossorigin="anonymous"/><link rel="icon" href="/video-embed/favicon.ico"/><title>@magic-modules/video-embed</title><meta name="description" content="renders videos from any http url that allows iframe embedding"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/video-embed"}</script></head><body><a class="SkipLink" href="/video-embed/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><a class="Logo" href="/video-embed/"><span>VideoEmbed</span></a><nav class="Menu"><ul><li><a href="/video-embed/#installation">installation</a></li><li><a href="/video-embed/#usage">usage</a></li><li><a href="/video-embed/#props">props</a></li><li><a href="/video-embed/#fixed-dimensions">fixed dimensions</a></li><li><a href="/video-embed/#source">source</a></li></ul></nav></header><div class="Page" id="page"><h1>@magic-modules/video-embed</h1><p>this is the <a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a> VideoEmbed component. It renders videos from any http url that allows iframe embedding.</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/video-embed.svg" role="presentation" alt=""/></a></li><li><a href="https://travis-ci.com/magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/video-embed/master" role="presentation" alt=""/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/video-embed/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/video-embed/master.svg" role="presentation" alt=""/></a></li><li><a href="https://coveralls.io/github/magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/video-embed/master.svg" role="presentation" alt=""/></a></li><li><a href="https://greenkeeper.io" target="_blank" rel="noopener"><img src="https://badges.greenkeeper.io/magic-modules/video-embed.svg" role="presentation" alt=""/></a></li><li><a href="https://snyk.io/test/github/magic-modules/video-embed" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/video-embed.svg" role="presentation" alt=""/></a></li></ul><h2 id="installation">installation:</h2><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">npm install @magic-modules/video-embed</code></pre></div><h2 id="usage">usage</h2><h3 id="usage-youtube">youtube</h3><p>in a page/component, just pass a video id to the VideoEmbed module.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed(<span class="string">&#39;ecIWPzGEbFc&#39;</span>)</code></pre></div><p>renders</p><div class="VideoEmbed"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://www.youtube-nocookie.com/embed/ecIWPzGEbFc"></iframe></div><h3 id="usage-vimeo">vimeo</h3><p>if the video id is a number, the video is assumed to be hosted on vimeo</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed(153090637)</code><code class="line">VideoEmbed(<span class="string">&#39;153090637&#39;</span>)</code></pre></div><p>renders</p><div class="VideoEmbed"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://player.vimeo.com/video/153090637"></iframe></div><h4 id="usage-others">other video hosts</h4><p>videos from arbitrary hosts can be included as well, as long as those hosts allow iframe embeds</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed(&#39;https://videopress.com/embed/kUJmAcSf&#39;)</code></pre></div><p>renders</p><div class="VideoEmbed"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://videopress.com/embed/kUJmAcSf"></iframe></div><h2 id="props">props</h2><p>you can pass a width and height, a style object and any other props to the video.</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed({ <span class="colon">src</span>: <span class="string">&#39;8QYWGCEm2Dc&#39;</span>, <span class="colon">width</span>: <span class="string">&#39;50%&#39;</span>, <span class="colon">height</span>: 200, <span class="colon">style</span>: { <span class="colon">margin</span>: <span class="string">&#39;1em 0 0&#39;</span> } })</code></pre></div><p>renders</p><div class="VideoEmbed" style="width:50%"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://www.youtube-nocookie.com/embed/8QYWGCEm2Dc"></iframe></div><h3 id="fixed-dimensions">fixed video dimensions</h3><p>to set a fixed video size, simply add both a height and a width value (px, em, rem, vh, pt).</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">VideoEmbed({ <span class="colon">src</span>: <span class="string">&#39;SMhwddNQSWQ&#39;</span>, <span class="colon">width</span>: <span class="string">&#39;300px&#39;</span>, <span class="colon">height</span>: <span class="string">&#39;900px&#39;</span> })</code></pre></div><div class="VideoEmbed" style="height:900px;width:300px"><iframe frameborder="0" allow="encrypted-media" allowfullscreen="" src="https://www.youtube-nocookie.com/embed/SMhwddNQSWQ"></iframe></div><h2 id="source">source</h2><p>the source for this page is in the <a href="https://github.com/magic-modules/video-embed/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"></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="/video-embed/magic.js?r6m3CffGgH" integrity="sha384-r6m3CffGgHmxZkmj2EdlwlYh9HzB0XH5LrwYXJGBCw5LL9o1TWbD/kVhRfuTsuIi" crossorigin="anonymous"></script></body></html>

0 comments on commit dc2fd9f

Please sign in to comment.