From 22def25e38feddffa144209d2d667aa0787d759c Mon Sep 17 00:00:00 2001 From: jaeh Date: Sat, 10 Jul 2021 21:25:00 +0200 Subject: [PATCH] docs: update --- docs/404.html | 2 +- docs/index.html | 4 ++-- docs/magic.js | 2 +- docs/robots.txt | 2 +- docs/sitemap.xml | 8 ++++---- docs/sri-hashes.json | 10 +++++----- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/404.html b/docs/404.html index 892b759..e557b81 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1 +1 @@ -404 - not found
404 - not found.
made with a few bits of magic
\ No newline at end of file +404 - not found
404 - not found.
made with a few bits of magic
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index c1fcdf5..b8cb9b5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -

@magic-themes/example

this is the +

@magic-themes/example

this is the @magic-themes example theme. -It is being used in the @magic example page

demo

installation

npm install magic-themes/docs

usage

require in config.mjs:

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

customize

you can customize and add any kind of style

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

// /assets/themes/docs/index.mjsexport default vars => ({  body: {    color: vars.colors.orange[900],  },})

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

made with a few bits of magic
\ No newline at end of file +It is being used in the @magic example page

demo

installation

npm install magic-themes/docs

usage

require in config.mjs:

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

customize

you can customize and add any kind of style

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

// /assets/themes/docs/index.mjsexport default vars => ({  body: {    color: vars.colors.orange[900],  },})

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

made with a few bits of magic
\ No newline at end of file diff --git a/docs/magic.js b/docs/magic.js index f6dcc35..9ee31c8 100644 --- a/docs/magic.js +++ b/docs/magic.js @@ -1 +1 @@ -"use strict";function b(a){return s(a)||c(a)||n(a)||m()}function c(a){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(a))return Array.from(a)}function d(a,b){if(null==a)return{};var c,d,f=e(a,b);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(a);for(d=0;da.length)&&(b=a.length);for(var c=0,d=Array(b);cy)for(;x<=z;)c.insertBefore(p(u[x]=v(u[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=q(k=t[w]),m=q(u[x]=v(u[x],k)),C[l]||null!=m&&m===q(t[w+1])){null==l&&c.removeChild(k.node),w++;continue}null==m||1===d.type?(null==l&&(r(c,k&&k.node,k,u[x],f,g),x++),w++):(l===m?(r(c,k.node,k,u[x],f,g),C[m]=!0,w++):null==(h=B[m])?r(c,k&&k.node,null,u[x],f,g):(r(c,c.insertBefore(h.node,k&&k.node),h,u[x],f,g),C[m]=!0),x++)}for(;w<=y;)null==q(k=t[w++])&&c.removeChild(k.node);for(var A in B)null==C[A]&&c.removeChild(B[A].node)}}return e.node=c},s=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(a){return"object"===t(a)?a:x(a)},v=function(b,c){return b.type===a?((!c||!c.lazy||s(c.lazy,b.lazy))&&((c=u(b.lazy.view(b.lazy))).lazy=b.lazy),c):b},w=function(a,b,c,d,e,f){return{name:a,props:b,children:c,node:d,type:f,key:e}},x=function(a,e){return w(a,c,d,e,void 0,b)},y=function(a){return a.nodeType===b?x(a.nodeValue,a):w(a.nodeName.toLowerCase(),c,e.call(a.childNodes,y),a,void 0,1)};return{h:function h(a,b){for(var d,e=[],g=[],h=arguments.length;2"],stringRegex:/("|')(.*?)\1/gim,wordRegex:/( )/gim},preventDefault:function preventDefault(a){return a.preventDefault(),a}},la={changeTheme:function changeTheme(a){return j(j({},a),{},{pageClass:j(j({},a.pageClass),{},{light:"dark"===a.theme}),theme:"dark"===a.theme?"light":"dark"})},go:function go(a,b){var c=b.currentTarget.href.replace(window.location.origin,""),d=c.split("#"),e=l(d,2),f=e[0],g=e[1],h=void 0===g?"":g;if(f===a.url&&h===a.hash)return h&&(window.location.hash=h),a;var i=a.pages&&a.pages[f]&&a.pages[f].title;i&&(document.title=a.title=i),f===a.url?window.location.hash=h:!h&&window.scrollTo({top:0});var k=window,m=k.scrollY;return window.history.pushState({url:f,hash:h,scrollY:m},a.title,c),j(j({},a),{},{url:f,hash:h,prev:a.url})},nospy:{toggle:function toggle(a){return a.nospy.show=!a.nospy.show,j({},a)}},pop:function pop(a,b){var c=window.location,d=c.pathname,e=c.hash;e=e.substring(1);var f=0;return b.state&&(d=b.state.url,e=b.state.hash,f=b.state.scrollY||0),e?window.location.hash=e:window.scroll({top:f}),j(j({},a),{},{url:d,hash:e})},pre:{clip:function clip(a,b){var c=b.content;if("undefined"!=typeof document&&"function"==typeof document.execCommand){var d=document.createElement("textarea");d.id="copy",d.innerHTML=c,document.body.appendChild(d);var e=document.getElementById("copy");e.select(),document.execCommand("copy"),document.body.removeChild(e)}return a}}},ma={"/example/":function example(){return[g({id:"magic-themesexample"},"@magic-themes/example"),M(["this is the\n",ca({to:"https://github.com/magic-themes",text:"@magic-themes"}),"\nexample theme.\nIt is being used in the ",ca({to:"https://github.com/magic-examples/example",text:"@magic example page"})]),ca({to:"https://magic-examples.github.io/example",text:"demo"}),C({id:"installation"},"installation"),ja({lines:"false"},"npm install magic-themes/docs"),B({id:"usage"},"usage"),C({id:"usage-require"},"require in config.mjs:"),ja("// config.mjs\n\nexport default {\n // ... other config\n THEME: 'docs',\n}"),C({id:"usage-customize"},"customize"),M("you can customize and add any kind of style"),M("create /assets/themes/docs/index.mjs, any css there will overwrite the theme css"),ja("// /assets/themes/docs/index.mjs\n\nexport default vars => ({\n body: {\n color: vars.colors.orange[900],\n },\n})"),M("magic will then find and merge the themes automatically, just as it did on this page")]},"/example/404/":function example404(){return y("404 - not found.")}};h({init:j(j({},U),{},{url:window.location.pathname,hash:window.location.hash.substr(1)}),subscriptions:function subscriptions(){return[[V.listenPopState,la.pop]]},view:function(a){var b=ma[a.url]?a.url:"/404/",c=ma[b],d=a.pages&&a.pages[b];return d&&Object.keys(d).forEach(function(b){a[b]=d[b]}),a.url=b,ia({page:c,state:a},[ha(a),ba(a)])},node:document.getElementById("Magic")}); \ No newline at end of file +"use strict";var b=["to","action","text"],c=["href","nofollow","noreferrer"],d=["collapse","items","text","url"];function e(a){return r(a)||f(a)||o(a)||n()}function f(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function g(a,b){if(null==a)return{};var c,d,e=h(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;da.length)&&(b=a.length);for(var c=0,d=Array(b);cy)for(;x<=z;)c.insertBefore(p(u[x]=v(u[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=q(k=t[w]),m=q(u[x]=v(u[x],k)),C[l]||null!=m&&m===q(t[w+1])){null==l&&c.removeChild(k.node),w++;continue}null==m||1===d.type?(null==l&&(r(c,k&&k.node,k,u[x],f,g),x++),w++):(l===m?(r(c,k.node,k,u[x],f,g),C[m]=!0,w++):null==(h=B[m])?r(c,k&&k.node,null,u[x],f,g):(r(c,c.insertBefore(h.node,k&&k.node),h,u[x],f,g),C[m]=!0),x++)}for(;w<=y;)null==q(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(a){return"object"===s(a)?a:x(a)},v=function(b,c){return b.type===a?((!c||!c.lazy||t(c.lazy,b.lazy))&&((c=u(b.lazy.view(b.lazy))).lazy=b.lazy),c):b},w=function(a,b,c,d,e,f){return{name:a,props:b,children:c,node:d,type:f,key:e}},x=function(a,e){return w(a,c,d,e,void 0,b)},y=function(a){return a.nodeType===b?x(a.nodeValue,a):w(a.nodeName.toLowerCase(),c,e.call(a.childNodes,y),a,void 0,1)};return{h:function h(a,b){for(var d,e=[],g=[],h=arguments.length;2"],stringRegex:/("|')(.*?)\1/gim,wordRegex:/( )/gim},preventDefault:function preventDefault(a){return a.preventDefault(),a}},ca={changeTheme:function changeTheme(a){return k(k({},a),{},{pageClass:k(k({},a.pageClass),{},{light:"dark"===a.theme}),theme:"dark"===a.theme?"light":"dark"})},go:function go(a,b){var c=b.currentTarget.href.replace(window.location.origin,""),d=c.split("#"),e=m(d,2),f=e[0],g=e[1],h=void 0===g?"":g;if(f===a.url&&h===a.hash)return h&&(window.location.hash=h),a;var i=a.pages&&a.pages[f]&&a.pages[f].title;i&&(document.title=a.title=i),f===a.url?window.location.hash=h:!h&&window.scrollTo({top:0});var j=window,l=j.scrollY;return window.history.pushState({url:f,hash:h,scrollY:l},a.title,c),k(k({},a),{},{url:f,hash:h,prev:a.url})},nospy:{toggle:function toggle(a){return a.nospy.show=!a.nospy.show,k({},a)}},pop:function pop(a,b){var c=window.location,d=c.pathname,e=c.hash;e=e.substring(1);var f=0;return b.state&&(d=b.state.url,e=b.state.hash,f=b.state.scrollY||0),e?window.location.hash=e:window.scroll({top:f}),k(k({},a),{},{url:d,hash:e})},pre:{clip:function clip(a,b){var c=b.content;if("undefined"!=typeof document&&"function"==typeof document.execCommand){var d=document.createElement("textarea");d.id="copy",d.innerHTML=c,document.body.appendChild(d);var e=document.getElementById("copy");e.select(),document.execCommand("copy"),document.body.removeChild(e)}return a}}},da={"/example/":function example(){return[u({id:"magic-themesexample"},"@magic-themes/example"),G(["this is the\n",W({to:"https://github.com/magic-themes",text:"@magic-themes"}),"\nexample theme.\nIt is being used in the ",W({to:"https://github.com/magic-examples/example",text:"@magic example page"})]),W({to:"https://magic-examples.github.io/example/",text:"demo"}),w({id:"installation"},"installation"),aa({lines:"false"},"npm install magic-themes/docs"),v({id:"usage"},"usage"),w({id:"usage-require"},"require in config.mjs:"),aa("// config.mjs\n\nexport default {\n // ... other config\n THEME: 'docs',\n}"),w({id:"usage-customize"},"customize"),G("you can customize and add any kind of style"),G("create /assets/themes/docs/index.mjs, any css there will overwrite the theme css"),aa("// /assets/themes/docs/index.mjs\n\nexport default vars => ({\n body: {\n color: vars.colors.orange[900],\n },\n})"),G("magic will then find and merge the themes automatically, just as it did on this page")]},"/example/404/":function example404(){return q("404 - not found.")}};h({init:k(k({},{logotext:"example theme",menu:[{text:"installation",to:"/example/#installation"},{items:[{text:"require",to:"/example/#usage-require"},{text:"customize",to:"/example/#usage-customize"}],text:"usage",to:"/example/#usage"}],nospy:{show:!1},pageClass:{},pages:{"/example/":{},"/example/404/":{description:"404 - not found.",title:"404 - not found"}},root:"/example/",theme:"dark",url:"/example/"}),{},{url:window.location.pathname,hash:window.location.hash.substr(1)}),subscriptions:function subscriptions(){return[[O.listenPopState,ca.pop]]},view:function(a){var b=da[a.url]?a.url:"/404/",c=da[b],d=a.pages&&a.pages[b];return d&&Object.keys(d).forEach(function(b){a[b]=d[b]}),a.url=b,_({page:c,state:a},[$(a),V(a)])},node:document.getElementById("Magic")})})(); \ No newline at end of file diff --git a/docs/robots.txt b/docs/robots.txt index f979e33..b1d77da 100644 --- a/docs/robots.txt +++ b/docs/robots.txt @@ -1,3 +1,3 @@ user-agent: * allow: / -sitemap: https://magic-themes.github.io/example/sitemap.xml +sitemap: https:/magic-themes.github.io/example/sitemap.xml diff --git a/docs/sitemap.xml b/docs/sitemap.xml index d3f141b..1089b8f 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -6,15 +6,15 @@ > - https://magic-themes.github.io/example/ - 2021-01-17 + https:/magic-themes.github.io/example/ + 2021-07-10 weekly 0.5 - https://magic-themes.github.io/example/404/ - 2021-01-17 + https:/magic-themes.github.io/example/404/ + 2021-07-10 weekly 0.5 diff --git a/docs/sri-hashes.json b/docs/sri-hashes.json index 67e930f..771158a 100644 --- a/docs/sri-hashes.json +++ b/docs/sri-hashes.json @@ -1,8 +1,8 @@ { "/magic.css": "sha384-kt9JqqFO+GDBBdbVJ2abQ7fiYgscvb9MdI7HizpxU8cT8d88y5JGG0L8nyVsfeDd", - "/magic.js": "sha384-712KIpUpJVD5ObBQushmD1lO/AaGSFukwvfJwf0csDma6LQrMk1N8XEXJRpwRnIU", - "/example/": "sha384-Vj4eERg9tnHZsQbFCaEi2P+dSL8NxvkDYpItsZL2gUmYapET/jjsU5kGS5MffqGO", - "/example/404/": "sha384-ua1zRF0/QUfhsSjcm8MvmXIJpyO/MtTqcPZyaL8OBIJEV7YE2zkhqykhW0591VdE", - "/robots.txt": "sha384-Zvr3OMBunx1jgn77UMReUldhMuhxUUABr9SpyymhoPJtIB93be67v+CFIFotMgqM", - "/sitemap.xml": "sha384-oDamYL7veTHKbzb4PH3g7Shj62GPei7Dfj7vO3gsegO6PdQrU9jH/q0Irvym39vC" + "/magic.js": "sha384-3wMtk+RvgOOWbfBjzR3PKfvGjlGcxeXPZN6NMSbHIlK4z9jTpZoMNdo8IoBbOVar", + "/example/": "sha384-awp0Csw9LCnChq7dBa8zklgtmCMoFKzYuSyjQ3gNLuMtRWOEmo7bPt5Bwh8un4Dm", + "/example/404/": "sha384-r8lCQCmLUeCosFHfdEZWt9woMn+8PANhlY65mCkpzv97uUxvXWZ21GQUF2VtPkHt", + "/robots.txt": "sha384-xNf8+Jzt+lkk3SdH3zznQbiTaQZfggtjekmGMyBfOZrqwn746/NYcjNLi7jGcZUw", + "/sitemap.xml": "sha384-LEDPogVNPjXpUZp2AdnbTxl1oyU2Svjbcenub8mqiumPo8MRk3um5xaqoSDDwrAt" } \ No newline at end of file