internal/static: Refactor building process
This commit is contained in:
parent
464b1bf5dd
commit
04c90fadac
33 changed files with 33 additions and 43 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import "./autolink.css";
|
||||
|
||||
/** Adapted from http://blog.parkermoore.de/2014/08/01/header-anchor-links-in-vanilla-javascript-for-github-pages-and-jekyll/ */
|
||||
const anchorForId = (id) => {
|
||||
const anchor = document.createElement("a")
|
||||
|
|
@ -18,4 +16,4 @@ const linkifyAnchors = (level) => {
|
|||
}
|
||||
|
||||
// linkify all the anchors from 1 ... 6
|
||||
Array(6).forEach((_, i) => linkifyAnchors(i + 1))
|
||||
(new Array(6)).fill(0).forEach((_, i) => linkifyAnchors(i + 1))
|
||||
1
internal/component/static/src/base/base.js
Normal file
1
internal/component/static/src/base/base.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* nothing here */
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@import '../distillery.css';
|
||||
@import '../global.css';
|
||||
|
||||
.wisski {
|
||||
padding-left: 5px;
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
import '../global.js';
|
||||
import './index.css';
|
||||
|
||||
const types = {
|
||||
"date": (element) => {
|
||||
return (new Date(element.innerText)).toISOString()
|
||||
2
internal/component/static/src/global.css
Normal file
2
internal/component/static/src/global.css
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
@import './base/base.css';
|
||||
@import './autolink/autolink.css';
|
||||
2
internal/component/static/src/global.js
Normal file
2
internal/component/static/src/global.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import './base/base.js';
|
||||
import './autolink/autolink.js';
|
||||
|
|
@ -1 +0,0 @@
|
|||
@import '../distillery.css';
|
||||
|
|
@ -1 +0,0 @@
|
|||
/* nothing for now */
|
||||
1
internal/component/static/src/home/index.css
Normal file
1
internal/component/static/src/home/index.css
Normal file
|
|
@ -0,0 +1 @@
|
|||
@import '../global.css';
|
||||
2
internal/component/static/src/home/index.js
Normal file
2
internal/component/static/src/home/index.js
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import '../global.js';
|
||||
import './index.css';
|
||||
Loading…
Add table
Add a link
Reference in a new issue