internal/static: Refactor building process

This commit is contained in:
Tom Wiesing 2022-10-06 17:06:53 +02:00
parent 464b1bf5dd
commit 04c90fadac
No known key found for this signature in database
33 changed files with 33 additions and 43 deletions

View file

@ -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))

View file

@ -0,0 +1 @@
/* nothing here */

View file

@ -1,4 +1,4 @@
@import '../distillery.css';
@import '../global.css';
.wisski {
padding-left: 5px;

View file

@ -1,3 +1,6 @@
import '../global.js';
import './index.css';
const types = {
"date": (element) => {
return (new Date(element.innerText)).toISOString()

View file

@ -0,0 +1,2 @@
@import './base/base.css';
@import './autolink/autolink.css';

View file

@ -0,0 +1,2 @@
import './base/base.js';
import './autolink/autolink.js';

View file

@ -1 +0,0 @@
@import '../distillery.css';

View file

@ -1 +0,0 @@
/* nothing for now */

View file

@ -0,0 +1 @@
@import '../global.css';

View file

@ -0,0 +1,2 @@
import '../global.js';
import './index.css';