Skip to content

Commit ce4becc

Browse files
committedOct 5, 2020
docs: update
1 parent 567840a commit ce4becc

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="/pre/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="/pre/magic.css?hdOB3ujppK" integrity="sha384-hdOB3ujppK9vk/35z7SqQe9J8B7pQ3tVL4gVjMS7lhQ9PpMpCZLMYjGO6fEbDqSk" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/pre/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/pre/"><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>Pre</p><nav class="Menu"><ul><li><a href="/pre/#installation">installation</a></li><li><a href="/pre/#usage">usage</a></li><li><a href="/pre/#themes">themes</a></li><li><a href="/pre/#syntax">syntax</a></li><li><a href="/pre/#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="/pre/magic.js?nj6QhwLVQL" integrity="sha384-nj6QhwLVQLPuzGgH4hgzgSQjfMwBXTL/9tk23TQtxCU9Io6Xz05SXB09whsQJHLx" 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="/pre/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="/pre/magic.css?DIusUD77fC" integrity="sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/pre/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/pre/"><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>Pre</p><nav class="Menu"><ul><li><a href="/pre/#installation">installation</a></li><li><a href="/pre/#usage">usage</a></li><li><a href="/pre/#themes">themes</a></li><li><a href="/pre/#syntax">syntax</a></li><li><a href="/pre/#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="/pre/magic.js?nj6QhwLVQL" integrity="sha384-nj6QhwLVQLPuzGgH4hgzgSQjfMwBXTL/9tk23TQtxCU9Io6Xz05SXB09whsQJHLx" crossorigin="anonymous"></script></body></html>

‎docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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="/pre/favicon.ico"/><title>@magic-modules/pre</title><meta name="description" content="syntax highlighting for javascript"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/pre"}</script><link rel="stylesheet" href="/pre/magic.css?hdOB3ujppK" integrity="sha384-hdOB3ujppK9vk/35z7SqQe9J8B7pQ3tVL4gVjMS7lhQ9PpMpCZLMYjGO6fEbDqSk" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/pre/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/pre/"><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>Pre</p><nav class="Menu"><ul><li><a href="/pre/#installation">installation</a></li><li><a href="/pre/#usage">usage</a></li><li><a href="/pre/#themes">themes</a></li><li><a href="/pre/#syntax">syntax</a></li><li><a href="/pre/#source">source</a></li></ul></nav></div></header><div class="Page" id="page"><h1 id="magic-modulespre">@magic-modules/pre</h1><p>this is the
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="/pre/favicon.ico"/><title>@magic-modules/pre</title><meta name="description" content="syntax highlighting for javascript"/><script type="application/ld+json">{"@context":"http://schema.org","@type":"website","name":"@magic-modules/pre"}</script><link rel="stylesheet" href="/pre/magic.css?DIusUD77fC" integrity="sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H" crossorigin="anonymous"/></head><body><a class="SkipLink" href="/pre/#page">Skip to Content</a><main id="Magic"><div class="Wrapper"><header class="Header"><div><a class="Logo" href="/pre/"><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>Pre</p><nav class="Menu"><ul><li><a href="/pre/#installation">installation</a></li><li><a href="/pre/#usage">usage</a></li><li><a href="/pre/#themes">themes</a></li><li><a href="/pre/#syntax">syntax</a></li><li><a href="/pre/#source">source</a></li></ul></nav></div></header><div class="Page" id="page"><h1 id="magic-modulespre">@magic-modules/pre</h1><p>this is the
22
<a href="https://github.com/magic-modules" target="_blank" rel="noopener">@magic-modules</a>
33
Pre component.</p><p>syntax highlighting for javascript</p><ul class="GitBadges"><li><a href="https://www.npmjs.com/package/@magic-modules/pre" target="_blank" rel="noopener"><img src="https://img.shields.io/npm/v/@magic-modules/pre?color=blue" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><img src="https://img.shields.io/node/v/@magic-modules/pre?color=blue" height="23" role="presentation" alt="" loading="lazy"/></li><li><img src="https://img.shields.io/npm/l/@magic-modules/pre?color=blue" height="23" role="presentation" alt="" loading="lazy"/></li><li><a href="https://travis-ci.com/magic-modules/pre" target="_blank" rel="noopener"><img src="https://img.shields.io/travis/com/magic-modules/pre/master" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://ci.appveyor.com/project/magicmodules/pre/branch/master" target="_blank" rel="noopener"><img src="https://img.shields.io/appveyor/ci/magicmodules/pre/master.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://coveralls.io/github/magic-modules/pre" target="_blank" rel="noopener"><img src="https://img.shields.io/coveralls/github/magic-modules/pre/master.svg" height="23" role="presentation" alt="" loading="lazy"/></a></li><li><a href="https://snyk.io/test/github/magic-modules/pre" target="_blank" rel="noopener"><img src="https://img.shields.io/snyk/vulnerabilities/github/magic-modules/pre.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/pre</code></pre></div><h2 id="usage">usage</h2><h3 id="multi-line">multi line</h3><p>in a page/component, just pass some string to the markdown code component:</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line">```</code><code class="line"><span class="keyword">const</span> foo = bar <span class="keyword">=&gt;</span> {</code><code class="line"> console.log(bar)</code><code class="line">}</code><code class="line">```</code></pre></div><p>renders</p><div class="Pre lines"><div class="menu"><button>copy</button></div><pre><code class="line"><span class="keyword">const</span> foo = bar <span class="keyword">=&gt;</span> {</code><code class="line"> console.log(bar)</code><code class="line">}</code></pre></div><h3 id="single-lines">single lines</h3><p>single line code blocks work:</p><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line">`one line of code`</code></pre></div><p>renders</p><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line">one line of code</code></pre></div><h3 id="native-module">native module</h3><p>if the string passed to Pre has to include a `, the &lt;Pre&gt; module can be used directly:</p><h4 id="single-line">single line</h4><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line">&lt;Pre lines=<span class="string">&quot;false&quot;</span>&gt;`line of code`&lt;Pre&gt;</code></pre></div><p>renders</p><div class="Pre"><div class="menu"><button>copy</button></div><pre><code class="line">`line of code`</code></pre></div><h2 id="themes">themes</h2><p>pre supports two color themes. It will automatically adapt to the global theme settings.</p><p>the @magic-modules/<a href="https://github.com/magic-modules/light-switch" target="_blank" rel="noopener">light-switch</a>
44
module allows users to toggle dark/light modes, which will also recolor pre to match.</p><p>if you have javascript activated,

‎docs/magic.css

+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/pre/</loc>
10-
<lastmod>2020-08-28</lastmod>
10+
<lastmod>2020-10-05</lastmod>
1111
<changefreq>weekly</changefreq>
1212
<priority>0.5</priority>
1313
</url>
1414

1515
<url>
1616
<loc>https://magic-modules.github.io/pre/404/</loc>
17-
<lastmod>2020-08-28</lastmod>
17+
<lastmod>2020-10-05</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
{
2-
"/magic.css": "sha384-hdOB3ujppK9vk/35z7SqQe9J8B7pQ3tVL4gVjMS7lhQ9PpMpCZLMYjGO6fEbDqSk",
2+
"/magic.css": "sha384-DIusUD77fCYxDczsgY9DjhmjdD/idZEn/NGVWo4QtcpSxysCher8U2D4waANcW+H",
33
"/magic.js": "sha384-nj6QhwLVQLPuzGgH4hgzgSQjfMwBXTL/9tk23TQtxCU9Io6Xz05SXB09whsQJHLx",
4-
"/pre/": "sha384-CJsASJh6rs9LWZtyJdVMsj5A/fqiGDBg0bNtALupUdxuG/tpI3GgWNvhnj8tH0IK",
5-
"/pre/404/": "sha384-HbpqXkzjYc5tJxo2KKI+RbPJvnGCTsatN5JVAsXnWFbPmwnCGDzrnNymBG0THvbI",
4+
"/pre/": "sha384-zMiLJjU2QmwtSC461gcBn08nwmYPbrAVw3ogp+7lNXro9Cw7S9LLdR8BmCz7YC/p",
5+
"/pre/404/": "sha384-TVzM0JdokzZiMqhTuES2k4qZ2qfO1gFghUI+O8gibjm5+/ZCacnhape/zIlZWkvx",
66
"/robots.txt": "sha384-Xcv32tijQIRIxWmxyitFQ/is0g4PfFX6+U09krHgL9YXdKALna5oQpV2oqXeCnFp",
7-
"/sitemap.xml": "sha384-Fs88xYuWqBntyJRhzYdtY0n/ApxRfQrTUTQ2rtLYFF8OLHAtTQ5R8PqwXktMIyA8"
7+
"/sitemap.xml": "sha384-LDoauxKSTSmJhKdE4T1EQonutsAJaBqzTJY1LsPIg8BRiS9DwyA5d6kV0qA0VKyX"
88
}

0 commit comments

Comments
 (0)
Please sign in to comment.