mirror of
https://github.com/wassname/template.git
synced 2026-08-09 12:30:48 +08:00
Add d-code and d-math componenents. Needs styling.
This commit is contained in:
+8
-13
@@ -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};
|
||||
Reference in New Issue
Block a user