From bb1bf1a0eb8ef34005430ae52469845b464317af Mon Sep 17 00:00:00 2001 From: Mara Date: Wed, 15 Mar 2023 09:57:49 +0100 Subject: [PATCH] add dist --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ .gitignore | 1 - dist/javascript.js | 1 + dist/styles.css | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml create mode 100644 dist/javascript.js create mode 100644 dist/styles.css diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..90a678f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build + +on: + push: + branches: + - main + +permissions: write-all + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '14.x' + - run: npm install + - run: npm run gulp + - name: push + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + git add dist + git commit -m "Deploy distribition files" + git push diff --git a/.gitignore b/.gitignore index e2f347a..0b0bc5c 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ __pycache__/ .Python build/ develop-eggs/ -dist/ downloads/ eggs/ .eggs/ diff --git a/dist/javascript.js b/dist/javascript.js new file mode 100644 index 0000000..dca7dc7 --- /dev/null +++ b/dist/javascript.js @@ -0,0 +1 @@ +function UrlExists(r,e){let i="",n="";0===e?(i=r.href,n=r.title):1===e&&(i=r.src,n=r.alt),(i=i.match(/index$/)?i.replace(/index$/,""):i).includes("%5C")&&(i=i.replace(/%5C/g,"/")),i=decodeURI(i),0===e?(r.href=i,0===(r.title=n).length&&(n=r.innerText,r.title=n)):1===e&&(r.src=i,r.alt=n);var a=new XMLHttpRequest;a.open("GET",i,!0),a.onload=function(e){if("404"!=a.status)return!0;var t=document.createElement("div");t.innerHTML=n,t.classList.add("not_found"),t.setAttribute("href",i);try{r.parentNode.replaceChild(t,r)}catch(e){}},a.send()}var p_search=/\.{2}\//gi;const not_found=[];for(var ht=document.querySelectorAll("a:not(img)"),i=0;i{e.forEach(e=>{"attributes"===e.type&&chirpy.setAttribute("data-chirpy-theme",mkDocsChirpyTranslator[mkDocs.dataset.mdColorScheme])})});k.observe(mkDocs,{attributes:!0,attributeFilter:["data-md-color-scheme"]})}window.MathJax={tex:{inlineMath:[["\\(","\\)"]],displayMath:[["\\[","\\]"]],processEscapes:!0,processEnvironments:!0},options:{ignoreHtmlClass:".*|",processHtmlClass:"arithmatex"}},document$.subscribe(()=>{MathJax.typesetPromise()});const header_links=document.querySelectorAll('a[href*="#"]');if(header_links)for(i=0;i *:not(.highlight)"),scr=/\^(.*)/gi,i=0;i{e.forEach(e=>{"attributes"===e.type&&t.body.setAttribute("class",mkDocsChirpyTranslator[r.dataset.mdColorScheme])})}).observe(r,{attributes:!0,attributeFilter:["data-md-color-scheme"]})}};var paletteSwitcher1=document.getElementById("__palette_1"),paletteSwitcher2=document.getElementById("__palette_2");const isMermaidPage=document.querySelector(".mermaid"),blogURL=(isMermaidPage&&(paletteSwitcher1.addEventListener("change",function(){location.reload()}),paletteSwitcher2.addEventListener("change",function(){location.reload()})),document.querySelector('meta[name="site_url"]')?document.querySelector('meta[name="site_url"]').content:location.origin);let position=["top","right","bottom","left"];try{const D=tippy(`.md-content a[href^="${blogURL}"]`,{content:"",allowHTML:!0,animation:"scale-subtle",theme:"translucent",followCursor:!0,arrow:!1,placement:position[Math.floor(Math.random()*position.length-1)],onShow(l){fetch(l.reference.href).then(e=>e.text()).then(e=>{e=(new DOMParser).parseFromString(e,"text/html");let t=e.querySelector("article");var r=e.querySelector("h1"),i=(r&&"Index"===r.innerText&&(a=decodeURI(e.querySelector('link[rel="canonical"]').href).split("/").filter(e=>e).pop(),r.innerText=a),t.querySelectorAll("img"));if(i)for(let e=0;e{console.log(e),l.hide(),l.destroy()})}})}catch{console.log("tippy error, ignore it")} \ No newline at end of file diff --git a/dist/styles.css b/dist/styles.css new file mode 100644 index 0000000..ead0598 --- /dev/null +++ b/dist/styles.css @@ -0,0 +1 @@ +.md-typeset hr{margin:0}.md-typeset .post{margin-bottom:1rem;padding:1em;transition:all .3s ease-in-out;left:0;position:relative}.post:hover{left:10px;position:relative;border-radius:5px}[data-md-color-scheme=default] .post:hover{box-shadow:3px 4px 10px #2f2f2f}[data-md-color-scheme=slate] .post:hover{box-shadow:3px 4px 10px #0000009e}.md-typeset .post .post-category{color:gray;font-size:small;float:right;width:100%}.md-typeset .post .post-title{margin:.25rem 0;text-decoration:none;font-size:1.3em}.md-typeset .post .post-info-wrap{display:flex}.md-typeset .post .post-info{width:100%}.md-typeset .post .post-banner{margin-top:-1rem;height:100%;max-height:4rem;border-radius:5px}.md-typeset .post .post-description{margin:0 1rem 0 0}.md-typeset .post .post-extra{margin:.5rem 1rem 0 0;font-size:small;color:#a9a9a9}.md-typeset .post .post-tags{margin:0;text-align:end}.md-typeset .post .post-date{margin:0}.md-typeset .git-revision-date-localized-plugin,.md-typeset .icon-text,.md-typeset .twemoji{vertical-align:middle;display:inline-block}.post-category>.twemoji{vertical-align:sub}.md-typeset .pages>.page{display:none}.md-typeset .pages>.page:target{display:block}.md-typeset .center{text-align:center}.md-typeset .pagination{display:inline-block;margin-top:.5em}.md-typeset .pagination a{color:var(--md-default-fg-color);float:left;padding:0 .5em;margin:0 .1em;text-decoration:none;border-radius:2em}.md-typeset .pagination a.active{background-color:var(--md-primary-fg-color);color:var(--md-primary-bg-color);font-weight:700}.md-typeset .pagination a:hover:not(.active){background-color:var(--md-accent-fg-color);color:var(--md-default-fg-color--light)}.md-grid{margin-left:auto;margin-right:auto;max-width:61rem}.md-typeset .grid:not(.admonition){grid-gap:.4rem;display:grid;margin:1em 0;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}.md-typeset .grid.cards>:-webkit-any(ul,ol){display:contents}.md-typeset .grid.cards>:-moz-any(ul,ol){display:contents}.md-typeset .grid.cards>:is(ul,ol){display:contents}.md-typeset .grid.cards>:-webkit-any(ul,ol)>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;-webkit-transition:border .25s,box-shadow .25s;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>:-moz-any(ul,ol)>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;-moz-transition:border .25s,box-shadow .25s;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>:is(ul,ol)>li,.md-typeset .grid>.card{border:.05rem solid var(--md-default-fg-color--lightest);border-radius:.1rem;display:block;margin:0;padding:.8rem;transition:border .25s,box-shadow .25s}.md-typeset .grid.cards>:-webkit-any(ul,ol)>li:-webkit-any(:focus-within,:hover),.md-typeset .grid>.card:-webkit-any(:focus-within,:hover){border-color:transparent;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>:-moz-any(ul,ol)>li:-moz-any(:focus-within,:hover),.md-typeset .grid>.card:-moz-any(:focus-within,:hover){border-color:transparent;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>:is(ul,ol)>li:is(:focus-within,:hover),.md-typeset .grid>.card:is(:focus-within,:hover){border-color:transparent;box-shadow:var(--md-shadow-z2)}.md-typeset .grid.cards>:-webkit-any(ul,ol)>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>:-moz-any(ul,ol)>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>:is(ul,ol)>li>hr,.md-typeset .grid>.card>hr{margin-bottom:1em;margin-top:1em}.md-typeset .grid.cards>:-webkit-any(ul,ol)>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>:-moz-any(ul,ol)>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>:is(ul,ol)>li>:first-child,.md-typeset .grid>.card>:first-child{margin-top:0}.md-typeset .grid.cards>:-webkit-any(ul,ol)>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid.cards>:-moz-any(ul,ol)>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid.cards>:is(ul,ol)>li>:last-child,.md-typeset .grid>.card>:last-child{margin-bottom:0}.md-typeset .grid>*{margin-bottom:0;margin-top:0}.md-typeset .grid>:-webkit-any(.admonition,details){margin-bottom:0;margin-top:0}.md-typeset .grid>:-moz-any(.admonition,details){margin-bottom:0;margin-top:0}.md-typeset .grid>:is(.admonition,details){margin-bottom:0;margin-top:0}.md-typeset .grid>.highlight>*,.md-typeset .grid>.highlighttable,.md-typeset .grid>pre{margin-bottom:0;margin-top:0}.md-typeset .grid>.highlight>pre:only-child,.md-typeset .grid>.highlight>pre>code,.md-typeset .grid>.highlighttable,.md-typeset .grid>.highlighttable>tbody,.md-typeset .grid>.highlighttable>tbody>tr,.md-typeset .grid>.highlighttable>tbody>tr>.code,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre,.md-typeset .grid>.highlighttable>tbody>tr>.code>.highlight>pre>code{height:100%}.md-typeset .grid>.tabbed-set{margin-bottom:0;margin-top:0}.md-typeset .grid.cards>:is(ul,ol)>li>:first-child,.md-typeset .grid>.card>:first-child{background-color:var(--md-accent-fg-color--transparent);border-radius:5px}img,img.image-embed{--coremarg:1%;--extramarg:1%;--defaultwidth:60%;--minwidth:50px;--defaultzoomwidth:100%;--defaultscale:1.5}img[alt*="+side"]{width:20em;min-width:var(--minwidth);float:right;margin:0;margin-left:var(--coremarg)}@media screen and (max-width:59.9375em){img[alt*="+side"]{width:12.5em}}img[alt*="+rside"]{width:20em;min-width:var(--minwidth);float:left;margin:0;margin-right:var(--coremarg)}.image-embed[alt*="+"],.image-embed[alt*="-"]{contain:revert!important}img[alt*="+tape"]{position:relative;float:right;width:var(--defaultwidth);min-width:var(--minwidth);margin:auto;margin-left:var(--coremarg);transform:rotate(2deg)}img[alt*="+tape"]::before::before{content:"";position:absolute;margin:auto;width:30%;height:14%;top:-7%;left:35%;background:rgba(255,234,118,.377);clip-path:polygon(50% 0,100% 0,98% 10%,100% 20%,98% 30%,100% 40%,98% 50%,100% 60%,98% 70%,100% 80%,98% 90%,100% 100%,0 100%,2% 90%,0 80%,2% 70%,0 60%,2% 50%,0 40%,2% 30%,0 20%,2% 10%,0 0)}img[alt*="+pin"]{position:relative;float:right;width:var(--defaultwidth);min-width:var(--minwidth);margin:auto;margin-left:var(--coremarg);-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(2deg)}img[alt*="+pin"]::before::before{content:"";position:absolute;width:5px;height:5px;background-color:#4588cc;top:-3%;left:50%;border:solid #369 8px;border-radius:50%;box-shadow:#274d74 -5px 3px 1px}img[alt*="+portrait"]{float:right;position:relative;width:calc(var(--defaultwidth)/ 1.5);min-width:var(--minwidth);vertical-align:top;border:solid 5px;background-color:#000;clip-path:ellipse(40% 45% at 50% 50%)}img[alt*="+landscape"]{position:relative;width:var(--defaultwidth);min-width:var(--minwidth);float:right;border:solid 3px;background-color:#000;clip-path:ellipse(45% 35% at 50% 50%)}img[alt*="+banner"]{display:block;height:100px;overflow:hidden}img[alt*="+banner"]>img{margin-top:-130px}img[alt*="+hr"]{display:block;height:10px;overflow:hidden;border-radius:20px}img[alt*="+hr"]>img{margin-top:-200px}img[alt*="+right"]{position:relative;left:50%}img[alt*="+block"]{display:block}img[alt*="-left"]{float:left;margin:0;margin-right:var(--extramarg)}img[alt*="-right"]{float:right;margin:0;margin-left:var(--extramarg)}img[alt*="-fix"]{position:fixed}img[alt*="-abs"]{position:absolute}img[alt*="-thumb"]{width:6rem}img[alt*="-sm"]{width:13rem}img[alt*="-med"]{width:18rem}img[alt*="-lg"]{width:27rem}img[alt*="-huge"]{width:37rem}img[alt*="-cwidth"]{float:none;margin-left:-10%;width:67rem}img[alt*="-border1"]{border:solid #000 3px}img[alt*="-border2"]{border:solid #fff 3px}img[alt*="-bradius1"]{border-radius:5px}img[alt*="-bradius2"]{border-radius:20px}img[alt*="-bradiustl"]{border-top-left-radius:20px}img[alt*="-bradiusbr"]{border-bottom-right-radius:20px}img[alt*="-bradiustr"]{border-top-right-radius:20px}img[alt*="-bradiusbl"]{border-bottom-left-radius:20px}img[alt*="-bthick"]{border-width:5px}img[alt*="-bthin"]{border-width:1px}img[alt*="-shadow1"]>img{box-shadow:#a9a9a9 -2px 2px 2px}img[alt*="-glow"]{box-shadow:#a9a9a9 0 0 20px}img[alt*="-nofloat"]{display:inline-block;float:none}img[alt*="+pin"]:not(:active):hover,img[alt*="+tape"]:not(:active):hover{transform:scale(1.5) rotate(-2deg)}span[alt*="+grid"]{display:table-cell;vertical-align:middle;padding:3px}.workspace-leaf-content[data-mode=source] img[alt*="+grid"]{width:20em}.not_found{background-color:rgba(211,211,211,.521);display:inline-block;color:grey;border-radius:5px;padding-right:3px;padding-left:3px}[data-md-color-scheme=slate] .not_found{color:#b6b5b5!important;background-color:rgba(231,232,243,.185)}[data-md-color-scheme=slate] .not_found:hover{color:grey;background-color:#d3d3d3;cursor:not-allowed;filter:saturate(200%)}[data-md-color-scheme=default] .not_found:hover{color:grey;background-color:#d3d3d3;cursor:not-allowed;filter:saturate(200%)}[data-md-color-scheme=default] .citation{background-color:rgba(0,0,0,.1)!important}[data-md-color-scheme=slate] .citation{background-color:rgba(0,0,0,.1)!important}.citation{padding:10px;border-radius:5px}.link_citation{font-size:12px;display:flex;float:left}.citation>*{margin:0!important}code{display:inline-block}.md-typeset pre>code{word-break:break-word;white-space:pre-wrap}[data-md-color-scheme=slate] #mkdocs-content-password{background-color:rgba(0,0,0,.11)}[data-md-color-scheme=default] #mkdocs-content-password{background-color:#fff}#mkdocs-content-password{border-radius:5px;height:40px;width:50%;padding-left:10px}#mkdocs-decrypt-button{border-radius:5px;fill:var(--md-default-fg-color--light);height:30px;width:5%}.tippy{overflow:hidden!important;height:5%;border-radius:5px}[data-md-color-scheme=default] .tippy{border:1px solid #f5f5f5}[data-md-color-scheme=slate] .tippy{border:1px solid var(--md-default-fg-color--lightest)}[data-theme~=translucent]{background-color:var(--md-default-bg-color)!important;opacity:.9!important}[data-md-color-scheme=default] .tippy-box *{color:#000}.dark{background-color:var(--md-default-bg-color)}#mynetwork{border:none!important}.card{border:none!important;background-color:transparent!important}.dark#text{color:#fff}.light#text{color:#000}:root{--md-admonition-icon--grid:url('data:image/svg+xml;charset=utf-8,');--md-admonition-icon--infobox:url('data:image/svg+xml;charset=utf-8,')}.md-typeset .admonition.grid,.md-typeset .admonition.infobox,.md-typeset details.grid,.md-typeset details.infobox{border-color:transparent;background-color:transparent}.md-typeset .grid>.admonition-title,.md-typeset .grid>.summary,.md-typeset .infobox>.admonition-title,.md-typeset .infobox>.summary{display:none}.md-typeset .grid>.admonition-title::before,.md-typeset .grid>summary::before,.md-typeset .infobox>.admonition-title::before{background-color:transparent;-webkit-mask-image:var(--md-admonition-icon--grid);mask-image:var(--md-admonition-icon--grid)}.admonition.infobox{float:left;margin-right:.8rem;margin-top:0;width:11.7rem}.md-typeset .admonition.grid{box-shadow:none}.md-typeset .admonition.grid p:not(.admonition-title){display:grid}.md-typeset .admonition.grid .glightbox,.md-typeset .admonition.grid img{display:table-cell;vertical-align:middle;grid-row:2/4} \ No newline at end of file