Add d-code and d-math componenents. Needs styling.

This commit is contained in:
Ludwig Schubert
2017-07-21 17:48:39 -07:00
parent 031e3b52b9
commit 4f3ddce184
11 changed files with 10591 additions and 456 deletions
+8 -13
View File
@@ -1,4 +1,5 @@
import "webcomponents.js/webcomponents-hi-ce.js";
import * as frontMatter from "./components/d-front-matter";
import * as title from "./components/d-title";
import * as byline from "./components/d-byline";
@@ -10,23 +11,17 @@ import * as appendix from "./components/d-appendix";
import * as distillAppendix from "./components/distill-appendix";
import * as bibliography from "./components/d-bibliography";
import * as references from "./components/d-references";
import { css as codeCss } from "./components/d-code";
import * as math from "./components/d-math";
let codeStyle = document.createElement("style");
codeStyle.textContent = codeCss;
document.querySelector("head").appendChild(codeStyle);
document.addEventListener("DOMContentLoaded", function() {
// Render byline with authors list.
// Render distill appendix with distill journal data.
document.querySelector("distill-appendix").render([]);
// document.querySelector("distill-appendix").render([]);
})
export {frontMatter as frontMatter};
export {title as title};
export {byline as byline};
export {article as article};
export {abstract as abstract};
export {toc as toc};
export {styles as styles};
export {appendix as appendix};
export {distillAppendix as distillAppendix};
export {bibliography as bibliography};
export {references as references};