From e4e7e66f63522c6c43df420c8d6c9663388231d4 Mon Sep 17 00:00:00 2001 From: Jascha Date: Fri, 29 Nov 2019 08:40:41 +0100 Subject: [PATCH] update docs --- docs/404.html | 2 +- docs/index.html | 2 +- docs/magic.css | 2 +- docs/magic.js | 2 +- docs/sri-hashes.json | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/404.html b/docs/404.html index 4d19139..9c07a1c 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -
404 - not found
made with a few bits of magic

Magic Privacy Information

This page does neither save, collect, nor share any personal data about you.

\ No newline at end of file +
404 - not found
made with a few bits of magic

Magic Privacy Information

This page does neither save, collect, nor share any personal data about you.

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 3c3a976..e3d6f5d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -

@magic-themes/docs

this is the @magic-themes docs theme. It is being used as the documentation theme for most @magic packages.

installation

npm install magic-themes/docs

usage

require in config.js:

// config.mjsexport default {  // ... other config  THEME: 'docs',}

customize / overwrite

you can customize and add any kind of style

create /assets/themes/docs/index.js, any css there will overwrite the theme css

// /assets/themes/docs/index.mjsexport default {  body: {    color: 'orange',  },}

magic will then find and merge the themes automatically, just as it did on this page

made with a few bits of magic

Magic Privacy Information

This page does neither save, collect, nor share any personal data about you.

\ No newline at end of file +

@magic-themes/docs

this is the @magic-themes docs theme. It is being used as the documentation theme for most @magic packages.

installation

npm install magic-themes/docs

usage

require in config.js:

// config.mjsexport default {  // ... other config  THEME: 'docs',}

customize / overwrite

you can customize and add any kind of style

create /assets/themes/docs/index.js, any css there will overwrite the theme css

// /assets/themes/docs/index.mjsexport default {  body: {    color: 'orange',  },}

magic will then find and merge the themes automatically, just as it did on this page

made with a few bits of magic

Magic Privacy Information

This page does neither save, collect, nor share any personal data about you.

\ No newline at end of file diff --git a/docs/magic.css b/docs/magic.css index aab323e..09b991a 100644 --- a/docs/magic.css +++ b/docs/magic.css @@ -1 +1 @@ -html{scroll-behavior:smooth;overflow-y:scroll}h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,img,picture,source,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,div,body{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1.5;margin:0;padding:0;max-width:100vw;overflow-x:hidden;font-family:"Ubuntu Narrow",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif}ol,ul{list-style:none;display:inline-block}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}a{outline:none;cursor:pointer;white-space:nowrap;color:#EEEEEE;text-decoration:underline;-webkit-transition:color 500ms;transition:color 500ms}button,.button,input[type="reset"],input[type="button"],input[type="submit"],input[type="file"] > input[type="button"]{cursor:pointer;background-color:#9E9E9E;color:#212121;padding:0.5em}button:hover,.button:hover,input[type="reset"]:hover,input[type="button"]:hover,input[type="submit"]:hover,input[type="file"] > input[type="button"]:hover{background-color:#616161;color:#F5F5F5}button::-moz-focus-inner,.button::-moz-focus-inner,input[type="reset"]::-moz-focus-inner,input[type="button"]::-moz-focus-inner,input[type="submit"]::-moz-focus-inner,input[type="file"] > input[type="button"]::-moz-focus-inner{padding:0;border:0 none}#Magic{height:100%;min-height:100vh;width:100%;background-color:#232323;color:#CCCCCC;-webkit-transition:color 300ms,background-color 300ms;transition:color 300ms,background-color 300ms;font-weight:400}.Wrapper{width:90%;margin:0 auto;max-width:1300px}.Header{display:inline-block;width:90%}.Header .Logo{display:inline-block}.Header .Logo img{float:left;margin:0.3em 0 0}.Header .Logo span{float:left;font-size:1.1em;margin:.7em .2em}.Page h1{padding:1em 0 .2em}.Footer{width:100%;padding:2em 0 .5em;position:relative}h1,h2,h3,h4,h5{padding:1em 0 .2em}h1{font-size:1.4em}h2{font-size:1.3em}h3{font-size:1.2em}.Footer .Container{text-align:center}.Footer .Credits{display:block;clear:both}.Gdpr{-webkit-animation:showGdpr 1s 1s forwards;animation:showGdpr 1s 1s forwards;bottom:0.5em;left:0;opacity:0;position:fixed;text-align:center;width:100%}.Gdpr .Container{background-color:#212121;border:1px solid;border-radius:.5em;color:#F5F5F5;display:inline-block;margin:0 auto;padding:1em;position:relative;text-align:left}.light .Gdpr .Container{background-color:#F5F5F5;color:#212121}.Gdpr .button{display:inline-block;margin:1em 0 0}.Gdpr h3{padding:0;margin:0}.Gdpr input[type=checkbox]#show-hide{display:none}.Gdpr input[type=checkbox]:checked ~ .Container{opacity:0;height:0;width:0;overflow:hidden}.Gdpr ul{display:block}@-webkit-keyframes showGdpr{0%{opacity:0}100%{opacity:1}}@keyframes showGdpr{0%{opacity:0}100%{opacity:1}}.LightSwitch{background-color:#EEEEEE;border:0 none;border-radius:100%;height:2em;width:2em;left:auto;position:fixed;right:0.5em;top:0.5em}.light .LightSwitch{background-color:#F5F5F5}.light .LightSwitch:hover{background-color:#616161}.Menu{float:none;margin:1.5em 0 0;position:relative;display:block;clear:both}.Menu li{float:none;margin:0 .5em 0 0;display:block}.Menu li.active > a{text-decoration:underline;color:#FEFEFE}.Menu li a{display:block;text-decoration:none}.Menu ul ul{position:relative;left:0;border-left:1px dotted;display:block;margin:0 0 0 0.2em;padding:0 0 0 0.3em}.Pre{background-color:#121212;border:1px solid #666;border-radius:5px;color:#eee;counter-reset:line;display:block;font-family:monospace;line-height:1.3;margin:1em 0;padding:1em .5em 0 .2em;position:relative;-webkit-transition:color 300ms,background-color 300ms;transition:color 300ms,background-color 300ms;white-space:pre}.Pre .actions{color:blueviolet}.Pre .boolean{color:#7979e4}.Pre .builtin{color:cadetblue}.Pre .colon{color:#8eef8e}.Pre .comment{opacity:0.7;font-style:italic}.Pre .html{color:#008800}.Pre .keyword{color:violet}.light .Pre{background-color:#ddd;color:#111}.light .Pre > code:before{color:#666}.light .Pre .html{color:#008800}.light .Pre .keyword{color:purple}.light .Pre .builtin{color:cadetblue}.light .Pre .string{color:#d15100}.light .Pre .colon{color:#016301}.light .Pre .boolean{color:blue}.light .Pre .actions{color:blueviolet}.light .Pre .state{color:cornflowerblue}.light .Pre .comment{color:#555;opacity:0.8;font-style:italic}.light .Pre .object{color:#016301}.light .Pre .property{color:#2a952a}.light .Pre a{color:#d15100}.light .Pre a:hover{color:turquoise}.Pre .menu{position:absolute;margin-top:-2em;right:0}.Pre .object{color:#00ff00}.Pre .property{color:#8eef8e}.Pre .state{color:cornflowerblue}.Pre .string{color:#dd8f00}.Pre > code:before{color:#666}.Pre a{color:turquoise}.Pre a:hover{color:#d15100}.Pre button{background-color:#666;border-radius:3px;color:#fefefe;margin:0 .2em;padding:1px 3px;border:0 none}.Pre pre{overflow-x:auto}.Pre pre > code{counter-increment:line;display:block}.Pre pre > code:before{content:counter(line);display:inline-block;padding:0 .5em 0 0;text-align:right;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:3ch}.Pre pre > code:last-child{padding:0 0 1em}#Magic.light{background-color:#EEEEEE;color:#232323}h1:target,h2:target,h3:target,h4:target,h5:target{text-decoration:underline}:target > h1:first-child,:target > h2:first-child,:target > h3:first-child,:target > h4:first-child,:target > h5:first-child{text-decoration:underline}a:hover{color:#FEFEFE}.light a{color:#010101}.light a:hover{color:#010101}.Page{margin-bottom:3em}h4{font-size:1.1em}p{line-height:1.8}.light .Menu li.active > a{color:#010101}.Menu li.active li a{text-decoration:none}@media screen and (min-width:1000px){.Header{width:210px;position:fixed;float:left;max-height:100vh;height:100vh;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;box-sizing:border-box}.Menu{max-width:210px;padding:0 0 2em}.Page{float:right;width:calc(100% - 220px);min-height:83vh}.Footer{clear:both}} \ No newline at end of file +html{scroll-behavior:smooth;overflow-y:scroll}h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,img,picture,source,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video,div,body{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1.5;margin:0;padding:0;max-width:100vw;overflow-x:hidden;font-family:"Ubuntu Narrow",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,sans-serif}ol,ul{list-style:none;display:inline-block}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}a{outline:none;cursor:pointer;white-space:nowrap;color:#EEEEEE;text-decoration:underline;-webkit-transition:color 500ms;transition:color 500ms}button,.button,input[type="reset"],input[type="button"],input[type="submit"],input[type="file"] > input[type="button"]{cursor:pointer;background-color:#9E9E9E;color:#212121;padding:0.5em}button:hover,.button:hover,input[type="reset"]:hover,input[type="button"]:hover,input[type="submit"]:hover,input[type="file"] > input[type="button"]:hover{background-color:#616161;color:#F5F5F5}button::-moz-focus-inner,.button::-moz-focus-inner,input[type="reset"]::-moz-focus-inner,input[type="button"]::-moz-focus-inner,input[type="submit"]::-moz-focus-inner,input[type="file"] > input[type="button"]::-moz-focus-inner{padding:0;border:0 none}#Magic{height:100%;min-height:100vh;width:100%;background-color:#232323;color:#CCCCCC;-webkit-transition:color 300ms,background-color 300ms;transition:color 300ms,background-color 300ms;font-weight:400}.Wrapper{width:90%;margin:0 auto;max-width:1300px}.Header{display:inline-block;width:90%}.Header .Logo{display:inline-block}.Header .Logo img{float:left;margin:0.3em 0 0}.Header .Logo span{float:left;font-size:1.1em;margin:.7em .2em}.Page h1{padding:1em 0 .2em}.Footer{width:100%;padding:2em 0 .5em;position:relative}h1,h2,h3,h4,h5{padding:1em 0 .2em}h1{font-size:1.4em}h2{font-size:1.3em}h3{font-size:1.2em}.Footer .Container{text-align:center}.Footer .Credits{display:block;clear:both}.Gdpr{-webkit-animation:showGdpr 1s 1s forwards;animation:showGdpr 1s 1s forwards;bottom:0.5em;left:0;opacity:0;position:fixed;text-align:center;width:100%}.Gdpr .Container{background-color:#212121;border:1px solid;border-radius:.5em;color:#F5F5F5;display:inline-block;margin:0 auto;padding:1em;position:relative;text-align:left}.light .Gdpr .Container{background-color:#F5F5F5;color:#212121}.Gdpr .button{display:inline-block;margin:1em 0 0}.Gdpr h3{padding:0;margin:0}.Gdpr input[type=checkbox]#show-hide{display:none}.Gdpr input[type=checkbox]:checked ~ .Container{opacity:0;height:0;width:0;overflow:hidden}.Gdpr ul{display:block}@-webkit-keyframes showGdpr{0%{opacity:0}100%{opacity:1}}@keyframes showGdpr{0%{opacity:0}100%{opacity:1}}.LightSwitch{background-color:#EEEEEE;border:0 none;border-radius:100%;height:2em;width:2em;left:auto;position:fixed;right:0.5em;top:0.5em}.light .LightSwitch{background-color:#F5F5F5}.light .LightSwitch:hover{background-color:#616161}.Menu{float:none;margin:1.5em 0 0;position:relative;display:block;clear:both}.Menu li{float:none;margin:0 .5em 0 0;display:block}.Menu li.active > a{text-decoration:underline;color:#FEFEFE}.Menu li a{display:block;text-decoration:none}.Menu ul ul{position:relative;left:0;border-left:1px dotted;display:block;margin:0 0 0 0.2em;padding:0 0 0 0.3em}.Pre{background-color:#121212;border:1px solid #666;border-radius:5px;color:#eee;counter-reset:line;display:block;font-family:monospace;line-height:1.3;margin:1em 0;padding:1em .5em 0 .2em;position:relative;-webkit-transition:color 300ms,background-color 300ms;transition:color 300ms,background-color 300ms;white-space:pre}.Pre.lines pre > code{counter-increment:line;padding:0}.Pre.lines pre > code:last-child{padding:0 0 1em}.Pre.lines pre > code:before{content:counter(line);display:inline-block;padding:0 .5em 0 0;text-align:right;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:3ch}.Pre .actions{color:blueviolet}.Pre .boolean{color:#7979e4}.Pre .builtin{color:cadetblue}.Pre .colon{color:#8eef8e}.Pre .comment{opacity:0.7;font-style:italic}.Pre .html{color:#008800}.Pre .keyword{color:violet}.light .Pre{background-color:#ddd;color:#111}.light .Pre > code:before{color:#666}.light .Pre .html{color:#008800}.light .Pre .keyword{color:purple}.light .Pre .builtin{color:cadetblue}.light .Pre .string{color:#d15100}.light .Pre .colon{color:#016301}.light .Pre .boolean{color:blue}.light .Pre .actions{color:blueviolet}.light .Pre .state{color:cornflowerblue}.light .Pre .comment{color:#555;opacity:0.8;font-style:italic}.light .Pre .object{color:#016301}.light .Pre .property{color:#2a952a}.light .Pre a{color:#d15100}.light .Pre a:hover{color:turquoise}.Pre .menu{position:absolute;margin-top:-2em;right:0}.Pre .object{color:#00ff00}.Pre .property{color:#8eef8e}.Pre .state{color:cornflowerblue}.Pre .string{color:#dd8f00}.Pre > code:before{color:#666}.Pre a{color:turquoise}.Pre a:hover{color:#d15100}.Pre button{background-color:#666;border-radius:3px;color:#fefefe;margin:0 .2em;padding:1px 3px;border:0 none}.Pre pre{overflow-x:auto}.Pre pre > code{display:block;padding:0 1em 0}.Pre pre > code:last-child{padding:0 1em 1em}#Magic.light{background-color:#EEEEEE;color:#232323}h1:target,h2:target,h3:target,h4:target,h5:target{text-decoration:underline}:target > h1:first-child,:target > h2:first-child,:target > h3:first-child,:target > h4:first-child,:target > h5:first-child{text-decoration:underline}a:hover{color:#FEFEFE}.light a{color:#010101}.light a:hover{color:#010101}.Page{margin-bottom:3em}h4{font-size:1.1em}p{line-height:1.8}.light .Menu li.active > a{color:#010101}.Menu li.active li a{text-decoration:none}@media screen and (min-width:1000px){.Header{width:210px;position:fixed;float:left;max-height:100vh;height:100vh;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;box-sizing:border-box}.Menu{max-width:210px;padding:0 0 2em}.Page{float:right;width:calc(100% - 220px);min-height:83vh}.Footer{clear:both}} \ No newline at end of file diff --git a/docs/magic.js b/docs/magic.js index 5844d7d..1a70476 100644 --- a/docs/magic.js +++ b/docs/magic.js @@ -1 +1 @@ -"use strict";function b(a){return n(a)||c(a)||l()}function c(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}function d(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function f(a){for(var b,c=1;cy)for(;x<=z;)c.insertBefore(q(v[x]=u(v[x++]),f,g),(k=t[w])&&k.node);else if(x>z)for(;w<=y;)c.removeChild(t[w++].node);else{for(var A=w,B={},C={};A<=y;A++)null!=(l=t[A].key)&&(B[l]=t[A]);for(;x<=z;){if(l=r(k=t[w]),m=r(v[x]=u(v[x],k)),C[l]||null!=m&&m===r(t[w+1])){null==l&&c.removeChild(k.node),w++;continue}null==m||1===d.type?(null==l&&(s(c,k&&k.node,k,v[x],f,g),x++),w++):(l===m?(s(c,k.node,k,v[x],f,g),C[m]=!0,w++):null==(h=B[m])?s(c,k&&k.node,null,v[x],f,g):(s(c,c.insertBefore(h.node,k&&k.node),h,v[x],f,g),C[m]=!0),x++)}for(;w<=y;)null==r(k=t[w++])&&c.removeChild(k.node);for(var A in B)null==C[A]&&c.removeChild(B[A].node)}}return e.node=c},t=function(c,a){for(var b in c)if(c[b]!==a[b])return!0;for(var b in a)if(c[b]!==a[b])return!0},u=function(b,c){return b.type===a?((!c||t(c.lazy,b.lazy))&&((c=b.lazy.view(b.lazy)).lazy=b.lazy),c):b},v=function(a,b,c,d,e,f){return{name:a,props:b,children:c,node:d,type:f,key:e}},w=function(a,e){return v(a,c,d,e,void 0,b)},x=function(a){return a.nodeType===b?w(a.nodeValue,a):v(a.nodeName.toLowerCase(),c,e.call(a.childNodes,x),a,void 0,1)},y=function(a,b){for(var d,e=[],g=[],h=arguments.length;2y)for(;x<=z;)c.insertBefore(q(v[x]=u(v[x++]),f,g),(k=t[w])&&k.node);else if(x>z)for(;w<=y;)c.removeChild(t[w++].node);else{for(var A=w,B={},C={};A<=y;A++)null!=(l=t[A].key)&&(B[l]=t[A]);for(;x<=z;){if(l=r(k=t[w]),m=r(v[x]=u(v[x],k)),C[l]||null!=m&&m===r(t[w+1])){null==l&&c.removeChild(k.node),w++;continue}null==m||1===d.type?(null==l&&(s(c,k&&k.node,k,v[x],f,g),x++),w++):(l===m?(s(c,k.node,k,v[x],f,g),C[m]=!0,w++):null==(h=B[m])?s(c,k&&k.node,null,v[x],f,g):(s(c,c.insertBefore(h.node,k&&k.node),h,v[x],f,g),C[m]=!0),x++)}for(;w<=y;)null==r(k=t[w++])&&c.removeChild(k.node);for(var A in B)null==C[A]&&c.removeChild(B[A].node)}}return e.node=c},t=function(c,a){for(var b in c)if(c[b]!==a[b])return!0;for(var b in a)if(c[b]!==a[b])return!0},u=function(b,c){return b.type===a?((!c||t(c.lazy,b.lazy))&&((c=b.lazy.view(b.lazy)).lazy=b.lazy),c):b},v=function(a,b,c,d,e,f){return{name:a,props:b,children:c,node:d,type:f,key:e}},w=function(a,e){return v(a,c,d,e,void 0,b)},x=function(a){return a.nodeType===b?w(a.nodeValue,a):v(a.nodeName.toLowerCase(),c,e.call(a.childNodes,x),a,void 0,1)},y=function(a,b){for(var d,e=[],g=[],h=arguments.length;2