internal/static: Refactor building process
This commit is contained in:
parent
464b1bf5dd
commit
04c90fadac
33 changed files with 33 additions and 43 deletions
|
|
@ -1 +0,0 @@
|
|||
{"mappings":"ACAA,8FAOA,gKAaA,yBACI,iCAMJ,oBAIA,qBAIA,wCAKA,kCAKA,0BAIA","sources":["home/home.css","src/distillery.css","src/home/home.css"],"sourcesContent":["html {\n color: #1a1a1a;\n background-color: #fdfdfd;\n font-family: Roboto;\n font-size: 20px;\n line-height: 1.5;\n}\n\nbody {\n max-width: 36em;\n -webkit-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizelegibility;\n font-kerning: normal;\n margin: 0 auto;\n padding: 50px;\n}\n\n@media (max-width: 600px) {\n body {\n padding: 1em;\n font-size: .9em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2, h3 {\n margin-top: 1em;\n}\n\ncode {\n color: #00f;\n font-family: Roboto Mono;\n}\n\np {\n text-align: justify;\n margin: 1em 0;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n text-align: center;\n border-top: 1px solid #1a1a1a;\n font-size: small;\n}\n\n\n\n/*# sourceMappingURL=home.css.map */\n","html {\n line-height: 1.5;\n font-family: Roboto;\n font-size: 20px;\n color: #1a1a1a;\n background-color: #fdfdfd;\n}\nbody {\n margin: 0 auto;\n max-width: 36em;\n padding-left: 50px;\n padding-right: 50px;\n padding-top: 50px;\n padding-bottom: 50px;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizeLegibility;\n font-kerning: normal;\n}\n\n@media (max-width: 600px) {\n body {\n font-size: 0.9em;\n padding: 1em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2,h3 {\n margin-top: 1em; \n}\n\ncode {\n font-family: Roboto Mono;\n color: blue;\n}\n\np {\n margin: 1em 0;\n text-align: justify;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n border-top: 1px solid #1a1a1a;\n font-size: small;\n text-align: center;\n}\n","@import '../distillery.css';"],"names":[],"version":3,"file":"home.css.map"}
|
||||
2
internal/component/static/dist/home/home.js
vendored
2
internal/component/static/dist/home/home.js
vendored
|
|
@ -1,2 +0,0 @@
|
|||
|
||||
//# sourceMappingURL=home.js.map
|
||||
|
|
@ -1 +0,0 @@
|
|||
{"mappings":"","sources":[],"sourcesContent":[],"names":[],"version":3,"file":"home.js.map"}
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
html{color:#1a1a1a;background-color:#fdfdfd;font-family:Roboto;font-size:20px;line-height:1.5}body{max-width:36em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-rendering:optimizelegibility;font-kerning:normal;margin:0 auto;padding:50px}@media (max-width:600px){body{padding:1em;font-size:.9em}}h1{margin-top:1.4em}h2,h3{margin-top:1em}code{color:#00f;font-family:Roboto Mono}p{text-align:justify;margin:1em 0}a,a:visited{color:#1a1a1a}footer{text-align:center;border-top:1px solid #1a1a1a;font-size:small}
|
||||
/*# sourceMappingURL=home.css.map */
|
||||
html{color:#1a1a1a;background-color:#fdfdfd;font-family:Roboto;font-size:20px;line-height:1.5}body{max-width:36em;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;text-rendering:optimizelegibility;font-kerning:normal;margin:0 auto;padding:50px}@media (max-width:600px){body{padding:1em;font-size:.9em}}h1{margin-top:1.4em}h2,h3{margin-top:1em}code{color:#00f;font-family:Roboto Mono}p{text-align:justify;margin:1em 0}a,a:visited{color:#1a1a1a}footer{text-align:center;border-top:1px solid #1a1a1a;font-size:small}.header-link{opacity:0;font-size:.8em;text-decoration:none;transition:opacity .2s ease-in-out .1s;position:relative;left:.5em}h2:hover .header-link,h3:hover .header-link,h4:hover .header-link,h5:hover .header-link,h6:hover .header-link{opacity:1}
|
||||
/*# sourceMappingURL=index.css.map */
|
||||
1
internal/component/static/dist/home/index.css.map
vendored
Normal file
1
internal/component/static/dist/home/index.css.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"mappings":"ACAA,8FAOA,gKAaA,yBACI,iCAMJ,oBAIA,qBAIA,wCAKA,kCAKA,0BAIA,sECjDA,8HAcA","sources":["home/index.css","src/base/base.css","src/autolink/autolink.css","src/global.css","src/home/index.css"],"sourcesContent":["html {\n color: #1a1a1a;\n background-color: #fdfdfd;\n font-family: Roboto;\n font-size: 20px;\n line-height: 1.5;\n}\n\nbody {\n max-width: 36em;\n -webkit-hyphens: auto;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizelegibility;\n font-kerning: normal;\n margin: 0 auto;\n padding: 50px;\n}\n\n@media (max-width: 600px) {\n body {\n padding: 1em;\n font-size: .9em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2, h3 {\n margin-top: 1em;\n}\n\ncode {\n color: #00f;\n font-family: Roboto Mono;\n}\n\np {\n text-align: justify;\n margin: 1em 0;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n text-align: center;\n border-top: 1px solid #1a1a1a;\n font-size: small;\n}\n\n.header-link {\n opacity: 0;\n font-size: .8em;\n text-decoration: none;\n transition: opacity .2s ease-in-out .1s;\n position: relative;\n left: .5em;\n}\n\nh2:hover .header-link, h3:hover .header-link, h4:hover .header-link, h5:hover .header-link, h6:hover .header-link {\n opacity: 1;\n}\n\n\n\n\n\n/*# sourceMappingURL=index.css.map */\n","html {\n line-height: 1.5;\n font-family: Roboto;\n font-size: 20px;\n color: #1a1a1a;\n background-color: #fdfdfd;\n}\nbody {\n margin: 0 auto;\n max-width: 36em;\n padding-left: 50px;\n padding-right: 50px;\n padding-top: 50px;\n padding-bottom: 50px;\n hyphens: auto;\n overflow-wrap: break-word;\n text-rendering: optimizeLegibility;\n font-kerning: normal;\n}\n\n@media (max-width: 600px) {\n body {\n font-size: 0.9em;\n padding: 1em;\n }\n}\n\nh1 {\n margin-top: 1.4em;\n}\n\nh2,h3 {\n margin-top: 1em; \n}\n\ncode {\n font-family: Roboto Mono;\n color: blue;\n}\n\np {\n margin: 1em 0;\n text-align: justify;\n}\n\na, a:visited {\n color: #1a1a1a;\n}\n\nfooter {\n border-top: 1px solid #1a1a1a;\n font-size: small;\n text-align: center;\n}\n",".header-link {\n position: relative;\n left: 0.5em;\n opacity: 0;\n font-size: 0.8em;\n\n transition: opacity 0.2s ease-in-out 0.1s;\n -webkit-transition: opacity 0.2s ease-in-out 0.1s;\n -moz-transition: opacity 0.2s ease-in-out 0.1s;\n -ms-transition: opacity 0.2s ease-in-out 0.1s;\n\n text-decoration: none;\n}\n\nh2:hover .header-link,\nh3:hover .header-link,\nh4:hover .header-link,\nh5:hover .header-link,\nh6:hover .header-link {\n opacity: 1;\n}","@import './base/base.css';\n@import './autolink/autolink.css';","@import '../global.css';\n"],"names":[],"version":3,"file":"index.css.map"}
|
||||
2
internal/component/static/dist/home/index.js
vendored
Normal file
2
internal/component/static/dist/home/index.js
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(()=>{const e=e=>{const n=document.getElementsByTagName("h"+e);Array.from(n).forEach((e=>{void 0!==e.id&&""!==e.id&&e.appendChild((e=>{const n=document.createElement("a");return n.className="header-link",n.href="#"+e,n.innerHTML="#",n})(e.id))}))};new Array(6).fill(0).forEach(((n,r)=>e(r+1)))})();
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
internal/component/static/dist/home/index.js.map
vendored
Normal file
1
internal/component/static/dist/home/index.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"mappings":"MACA,MAQMA,EAAkBC,IACpB,MAAMC,EAAUC,SAASC,qBAAqB,IAAMH,GACpDI,MAAMC,KAAKJ,GAASK,SAASC,SACA,IAAdA,EAAOC,IAAoC,KAAdD,EAAOC,IAC/CD,EAAOE,YAZK,CAACD,IACjB,MAAME,EAASR,SAASS,cAAc,KAItC,OAHAD,EAAOE,UAAY,cACnBF,EAAOG,KAAO,IAAML,EACpBE,EAAOI,UAAY,IACZJ,CAAM,EAOUK,CAAYR,EAAOC,IAAI,GAC5C,EAIL,IAAIJ,MAAM,GAAIY,KAAK,GAAGV,SAAQ,CAACW,EAAGC,IAAMnB,EAAemB,EAAI,I","sources":["src/autolink/autolink.js"],"sourcesContent":["/** Adapted from http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */\nconst anchorForId = (id) => {\n const anchor = document.createElement(\"a\")\n anchor.className = \"header-link\"\n anchor.href = \"#\" + id\n anchor.innerHTML = \"#\"\n return anchor\n}\n\nconst linkifyAnchors = (level) => {\n const headers = document.getElementsByTagName(\"h\" + level);\n Array.from(headers).forEach((header) => {\n if (typeof header.id === \"undefined\" || header.id === \"\") return\n header.appendChild(anchorForId(header.id))\n })\n}\n\n// linkify all the anchors from 1 ... 6\n(new Array(6)).fill(0).forEach((_, i) => linkifyAnchors(i + 1))"],"names":["$f0312a5caa2d901c$var$linkifyAnchors","level","headers","document","getElementsByTagName","Array","from","forEach","header","id","appendChild","anchor","createElement","className","href","innerHTML","$f0312a5caa2d901c$var$anchorForId","fill","_","i"],"version":3,"file":"index.js.map"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue