mirror of
https://github.com/wassname/template.git
synced 2026-08-01 13:00:27 +08:00
Checkpoint
This commit is contained in:
@@ -10,6 +10,14 @@ import * as distillAppendix from "./components/distill-appendix";
|
||||
import * as bibliography from "./components/d-bibliography";
|
||||
import * as references from "./components/d-references";
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// Render byline with authors list.
|
||||
|
||||
// Render distill appendix with distill journal data.
|
||||
document.querySelector("distill-appendix").render([]);
|
||||
|
||||
})
|
||||
|
||||
export {frontMatter as frontMatter};
|
||||
export {title as title};
|
||||
export {byline as byline};
|
||||
|
||||
@@ -6,13 +6,13 @@ const T = Template("d-appendix", `
|
||||
d-appendix {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 24px;
|
||||
line-height: 1.7em;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
color: rgba(0,0,0,0.5);
|
||||
background: rgb(250, 250, 250);
|
||||
padding-top: 36px;
|
||||
padding-bottom: 60px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
${page("d-appendix p, d-appendix h3, d-appendix pre")}
|
||||
d-appendix h3 {
|
||||
@@ -23,41 +23,16 @@ const T = Template("d-appendix", `
|
||||
color: rgba(0,0,0,0.65);
|
||||
line-height: 1em;
|
||||
}
|
||||
d-appendix .citation {
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
border-left: 2px solid rgba(0, 0, 0, 0.1);
|
||||
padding: 0 0 0 18px;
|
||||
overflow: hidden;
|
||||
margin-top: 0px;
|
||||
}
|
||||
d-appendix .references {
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
d-appendix a {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
d-appendix ol,
|
||||
d-appendix ul {
|
||||
padding-left: 24px;
|
||||
}
|
||||
</style>
|
||||
<!-- slot -->
|
||||
<d-references></d-references>
|
||||
<distill-appendix></distill-appendix>
|
||||
`, false);
|
||||
|
||||
export default class Appendix extends T(HTMLElement) {
|
||||
static get is() { return "d-appendix"; }
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
//TODO: Check for distill journal
|
||||
let distillAppendix = document.createElement("distill-appendix");
|
||||
let journalData = [];
|
||||
distillAppendix.render(journalData);
|
||||
this.appendChild(distillAppendix);
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(Appendix.is, Appendix);
|
||||
|
||||
@@ -1,27 +1,74 @@
|
||||
import {Template} from "../mixins/template";
|
||||
import {body} from "./layout";
|
||||
import bibtexParse from "bibtex-parse-js";
|
||||
import mustache from "mustache";
|
||||
import {page} from "./layout";
|
||||
|
||||
const T = Template("d-bibliography", `
|
||||
|
||||
let mustacheTemplate = `
|
||||
<style>
|
||||
d-bibliography {
|
||||
display: none;
|
||||
}
|
||||
d-bibliography {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 1.7em;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
color: rgba(0,0,0,0.5);
|
||||
background: rgb(250, 250, 250);
|
||||
padding-top: 36px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
${page("d-bibliography ol, d-bibliography h3")}
|
||||
d-bibliography .references {
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
d-bibliography .title {
|
||||
font-weight: 600;
|
||||
}
|
||||
d-bibliography ol {
|
||||
padding: 0;
|
||||
}
|
||||
d-bibliography li {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
d-bibliography h3 {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 0;
|
||||
color: rgba(0,0,0,0.65);
|
||||
line-height: 1em;
|
||||
}
|
||||
d-bibliography a {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
</style>
|
||||
`, false);
|
||||
{{#hasCitations}}
|
||||
<h3>References</h3>
|
||||
<ol>
|
||||
{{#citations}}
|
||||
<li>
|
||||
<div class="title">Unsupervised representation learning with deep convolutional generative adversarial networks <a href="https://arxiv.org/pdf/1511.06434.pdf">[PDF]</a></div>
|
||||
<div class="details">Radford, A., Metz, L. and Chintala, S., 2015. arXiv preprint arXiv:1511.06434.</div>
|
||||
</li>
|
||||
{{/citations}}
|
||||
</ol>
|
||||
{{/hasCitations}}
|
||||
`;
|
||||
|
||||
export default class Bibliography extends T(HTMLElement) {
|
||||
export default class Bibliography extends HTMLElement {
|
||||
static get is() { return "d-bibliography"; }
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
let s = this.querySelector('script[type="text/bibtex"]');
|
||||
let s = this.querySelector("script");
|
||||
if (s) {
|
||||
let bibliography = {};
|
||||
let bibliography = new Map();
|
||||
let rawBib = s.textContent;
|
||||
let parsed = bibtexParse.toJSON(rawBib);
|
||||
if(parsed) {
|
||||
parsed.forEach(e => {
|
||||
for (var k in e.entryTags){
|
||||
for (var k in e.entryTags) {
|
||||
var val = e.entryTags[k];
|
||||
val = val.replace(/[\t\n ]+/g, " ");
|
||||
val = val.replace(/{\\["^`\.'acu~Hvs]( )?([a-zA-Z])}/g,
|
||||
@@ -30,13 +77,36 @@ export default class Bibliography extends T(HTMLElement) {
|
||||
(full, char) => char);
|
||||
e.entryTags[k] = val;
|
||||
}
|
||||
bibliography[e.citationKey] = e.entryTags;
|
||||
bibliography[e.citationKey].type = e.entryType;
|
||||
e.entryTags.type = e.entryType;
|
||||
bibliography.set(e.citationKey, e.entryTags);
|
||||
});
|
||||
}
|
||||
console.log(bibliography);
|
||||
this.data = bibliography;
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
this.citations = [];
|
||||
let citationElements = [].slice.apply(document.querySelectorAll("d-cite"));
|
||||
citationElements.forEach(el => { this.cite(el) });
|
||||
this.innerHTML = mustache.render(mustacheTemplate, {hasCitations: this.citations.length > 0, citations: this.citations});
|
||||
}
|
||||
|
||||
cite(el) {
|
||||
let keyString = el.getAttribute("key");
|
||||
let keys = keyString ? keyString.split(",") : [];
|
||||
keys.forEach(key => {
|
||||
let citation = this.data[key];
|
||||
if (!this.data.has(key)) {
|
||||
console.error("Citation key '" + key + "' not present in bibliography.")
|
||||
} else if (this.citations.indexOf(key) !== -1) {
|
||||
// Bibliography entry has already been cited
|
||||
} else {
|
||||
this.citations.push(key);
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(Bibliography.is, Bibliography);
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import {Template} from "../mixins/template";
|
||||
|
||||
const T = Template("d-cite", `
|
||||
dt-cite {
|
||||
color: hsla(206, 90%, 20%, 0.7);
|
||||
}
|
||||
dt-cite .citation-number {
|
||||
cursor: default;
|
||||
white-space: nowrap;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Roboto", Helvetica, sans-serif;
|
||||
font-size: 75%;
|
||||
color: hsla(206, 90%, 20%, 0.7);
|
||||
display: inline-block;
|
||||
line-height: 1.1em;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
margin: 0 2px;
|
||||
}
|
||||
figcaption dt-cite .citation-number {
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
top: -2px;
|
||||
line-height: 1em;
|
||||
}
|
||||
</style>
|
||||
`, false);
|
||||
|
||||
export default class Cite extends T(HTMLElement) {
|
||||
static get is() { return "d-cite"; }
|
||||
}
|
||||
|
||||
customElements.define(Cite.is, Cite);
|
||||
@@ -1,22 +1,50 @@
|
||||
import {Template} from "../mixins/template";
|
||||
import {body} from "./layout";
|
||||
import {page} from "./layout";
|
||||
import mustache from "mustache";
|
||||
|
||||
|
||||
const T = Template("distill-appendix", `
|
||||
<style>
|
||||
d-appendix {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
`, false);
|
||||
|
||||
let mustacheTemplate = `
|
||||
<style>
|
||||
distill-appendix {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 1.7em;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
color: rgba(0,0,0,0.5);
|
||||
background: rgb(250, 250, 250);
|
||||
padding-top: 36px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
${page("distill-appendix p, distill-appendix h3, distill-appendix pre")}
|
||||
distill-appendix h3 {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 0;
|
||||
color: rgba(0,0,0,0.65);
|
||||
line-height: 1em;
|
||||
}
|
||||
distill-appendix a {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
distill-appendix ol,
|
||||
distill-appendix ul {
|
||||
padding-left: 24px;
|
||||
}
|
||||
distill-appendix .citation {
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
border-left: 2px solid rgba(0, 0, 0, 0.1);
|
||||
padding: 0 0 0 12px;
|
||||
overflow: hidden;
|
||||
margin-top: -4px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h3>Updates and Corrections</h3>
|
||||
<p><a href="">View all changes</a> to this article since it was first published. If you see mistakes or want to suggest changes, please <a href="">create an issue on GitHub</a>.
|
||||
<p><a href="">View all changes</a> to this article since it was first published. If you see mistakes or want to suggest changes, please <a href="">create an issue on GitHub</a>. </p>
|
||||
|
||||
<h3>Reuse</h3>
|
||||
<p>Diagrams and text are licensed under Creative Commons Attribution <a href="https://creativecommons.org/licenses/by/2.0/">CC-BY 2.0</a>, unless noted otherwise, with the <a class="github" href="https://github.com/distillpub/post--augmented-rnns">source available on GitHub</a>. The figures that have been reused from other sources don’t fall under this license and can be recognized by a note in their caption: “Figure from …”.</p>
|
||||
<p>Diagrams and text are licensed under Creative Commons Attribution <a href="https://creativecommons.org/licenses/by/2.0/">CC-BY 2.0</a> with the <a class="github" href="https://github.com/distillpub/post--augmented-rnns">source available on GitHub</a>, unless noted otherwise. The figures that have been reused from other sources don’t fall under this license and can be recognized by a note in their caption: “Figure from …”.</p>
|
||||
|
||||
<h3>Citation</h3>
|
||||
<p>For attribution in academic contexts, please cite this work as</p>
|
||||
@@ -31,7 +59,7 @@ let mustacheTemplate = `
|
||||
}</pre>
|
||||
`;
|
||||
|
||||
export default class DistillAppendix extends T(HTMLElement) {
|
||||
export default class DistillAppendix extends HTMLElement {
|
||||
static get is() { return "distill-appendix"; }
|
||||
render(data) {
|
||||
this.innerHTML = mustache.render(mustacheTemplate, data);
|
||||
|
||||
Vendored
+137
-53
@@ -5026,13 +5026,13 @@ var T$5 = Template("d-appendix", `
|
||||
d-appendix {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 24px;
|
||||
line-height: 1.7em;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
color: rgba(0,0,0,0.5);
|
||||
background: rgb(250, 250, 250);
|
||||
padding-top: 36px;
|
||||
padding-bottom: 60px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
${page("d-appendix p, d-appendix h3, d-appendix pre")}
|
||||
d-appendix h3 {
|
||||
@@ -5043,41 +5043,16 @@ var T$5 = Template("d-appendix", `
|
||||
color: rgba(0,0,0,0.65);
|
||||
line-height: 1em;
|
||||
}
|
||||
d-appendix .citation {
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
border-left: 2px solid rgba(0, 0, 0, 0.1);
|
||||
padding: 0 0 0 18px;
|
||||
overflow: hidden;
|
||||
margin-top: 0px;
|
||||
}
|
||||
d-appendix .references {
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
d-appendix a {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
d-appendix ol,
|
||||
d-appendix ul {
|
||||
padding-left: 24px;
|
||||
}
|
||||
</style>
|
||||
<!-- slot -->
|
||||
<d-references></d-references>
|
||||
<distill-appendix></distill-appendix>
|
||||
`, false);
|
||||
|
||||
class Appendix extends T$5(HTMLElement) {
|
||||
static get is() { return "d-appendix"; }
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
//TODO: Check for distill journal
|
||||
var distillAppendix = document.createElement("distill-appendix");
|
||||
var journalData = [];
|
||||
distillAppendix.render(journalData);
|
||||
this.appendChild(distillAppendix);
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(Appendix.is, Appendix);
|
||||
@@ -5087,20 +5062,50 @@ var dAppendix = Object.freeze({
|
||||
default: Appendix
|
||||
});
|
||||
|
||||
var T$6 = Template("distill-appendix", `
|
||||
<style>
|
||||
d-appendix {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
`, false);
|
||||
|
||||
var mustacheTemplate$1 = `
|
||||
<style>
|
||||
distill-appendix {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 1.7em;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
color: rgba(0,0,0,0.5);
|
||||
background: rgb(250, 250, 250);
|
||||
padding-top: 36px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
${page("distill-appendix p, distill-appendix h3, distill-appendix pre")}
|
||||
distill-appendix h3 {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 0;
|
||||
color: rgba(0,0,0,0.65);
|
||||
line-height: 1em;
|
||||
}
|
||||
distill-appendix a {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
distill-appendix ol,
|
||||
distill-appendix ul {
|
||||
padding-left: 24px;
|
||||
}
|
||||
distill-appendix .citation {
|
||||
font-size: 11px;
|
||||
line-height: 15px;
|
||||
border-left: 2px solid rgba(0, 0, 0, 0.1);
|
||||
padding: 0 0 0 12px;
|
||||
overflow: hidden;
|
||||
margin-top: -4px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h3>Updates and Corrections</h3>
|
||||
<p><a href="">View all changes</a> to this article since it was first published. If you see mistakes or want to suggest changes, please <a href="">create an issue on GitHub</a>.
|
||||
<p><a href="">View all changes</a> to this article since it was first published. If you see mistakes or want to suggest changes, please <a href="">create an issue on GitHub</a>. </p>
|
||||
|
||||
<h3>Reuse</h3>
|
||||
<p>Diagrams and text are licensed under Creative Commons Attribution <a href="https://creativecommons.org/licenses/by/2.0/">CC-BY 2.0</a>, unless noted otherwise, with the <a class="github" href="https://github.com/distillpub/post--augmented-rnns">source available on GitHub</a>. The figures that have been reused from other sources don’t fall under this license and can be recognized by a note in their caption: “Figure from …”.</p>
|
||||
<p>Diagrams and text are licensed under Creative Commons Attribution <a href="https://creativecommons.org/licenses/by/2.0/">CC-BY 2.0</a> with the <a class="github" href="https://github.com/distillpub/post--augmented-rnns">source available on GitHub</a>, unless noted otherwise. The figures that have been reused from other sources don’t fall under this license and can be recognized by a note in their caption: “Figure from …”.</p>
|
||||
|
||||
<h3>Citation</h3>
|
||||
<p>For attribution in academic contexts, please cite this work as</p>
|
||||
@@ -5115,7 +5120,7 @@ var mustacheTemplate$1 = `
|
||||
}</pre>
|
||||
`;
|
||||
|
||||
class DistillAppendix extends T$6(HTMLElement) {
|
||||
class DistillAppendix extends HTMLElement {
|
||||
static get is() { return "distill-appendix"; }
|
||||
render(data) {
|
||||
this.innerHTML = mustache.render(mustacheTemplate$1, data);
|
||||
@@ -5472,26 +5477,70 @@ var bibtexParse = createCommonjsModule(function (module, exports) {
|
||||
/* end bibtexParse */
|
||||
});
|
||||
|
||||
var T$7 = Template("d-bibliography", `
|
||||
var mustacheTemplate$2 = `
|
||||
<style>
|
||||
d-bibliography {
|
||||
display: none;
|
||||
}
|
||||
d-bibliography {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
line-height: 1.7em;
|
||||
margin-bottom: 0;
|
||||
border-top: 1px solid rgba(0,0,0,0.1);
|
||||
color: rgba(0,0,0,0.5);
|
||||
background: rgb(250, 250, 250);
|
||||
padding-top: 36px;
|
||||
padding-bottom: 48px;
|
||||
}
|
||||
${page("d-bibliography ol, d-bibliography h3")}
|
||||
d-bibliography .references {
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
}
|
||||
d-bibliography .title {
|
||||
font-weight: 600;
|
||||
}
|
||||
d-bibliography ol {
|
||||
padding: 0;
|
||||
}
|
||||
d-bibliography li {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
d-bibliography h3 {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 0;
|
||||
color: rgba(0,0,0,0.65);
|
||||
line-height: 1em;
|
||||
}
|
||||
d-bibliography a {
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
</style>
|
||||
`, false);
|
||||
{{#hasCitations}}
|
||||
<h3>References</h3>
|
||||
<ol>
|
||||
{{#citations}}
|
||||
<li>
|
||||
<div class="title">Unsupervised representation learning with deep convolutional generative adversarial networks <a href="https://arxiv.org/pdf/1511.06434.pdf">[PDF]</a></div>
|
||||
<div class="details">Radford, A., Metz, L. and Chintala, S., 2015. arXiv preprint arXiv:1511.06434.</div>
|
||||
</li>
|
||||
{{/citations}}
|
||||
</ol>
|
||||
{{/hasCitations}}
|
||||
`;
|
||||
|
||||
class Bibliography extends T$7(HTMLElement) {
|
||||
class Bibliography extends HTMLElement {
|
||||
static get is() { return "d-bibliography"; }
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
var s = this.querySelector('script[type="text/bibtex"]');
|
||||
var s = this.querySelector("script");
|
||||
if (s) {
|
||||
var bibliography = {};
|
||||
var bibliography = new Map();
|
||||
var rawBib = s.textContent;
|
||||
var parsed = bibtexParse.toJSON(rawBib);
|
||||
if(parsed) {
|
||||
parsed.forEach(function (e) {
|
||||
for (var k in e.entryTags){
|
||||
for (var k in e.entryTags) {
|
||||
var val = e.entryTags[k];
|
||||
val = val.replace(/[\t\n ]+/g, " ");
|
||||
val = val.replace(/{\\["^`\.'acu~Hvs]( )?([a-zA-Z])}/g,
|
||||
@@ -5500,13 +5549,40 @@ class Bibliography extends T$7(HTMLElement) {
|
||||
function (full, char) { return char; });
|
||||
e.entryTags[k] = val;
|
||||
}
|
||||
bibliography[e.citationKey] = e.entryTags;
|
||||
bibliography[e.citationKey].type = e.entryType;
|
||||
e.entryTags.type = e.entryType;
|
||||
bibliography.set(e.citationKey, e.entryTags);
|
||||
});
|
||||
}
|
||||
console.log(bibliography);
|
||||
this.data = bibliography;
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
var this$1 = this;
|
||||
|
||||
this.citations = [];
|
||||
var citationElements = [].slice.apply(document.querySelectorAll("d-cite"));
|
||||
citationElements.forEach(function (el) { this$1.cite(el); });
|
||||
this.innerHTML = mustache.render(mustacheTemplate$2, {hasCitations: this.citations.length > 0, citations: this.citations});
|
||||
}
|
||||
|
||||
cite(el) {
|
||||
var this$1 = this;
|
||||
|
||||
var keyString = el.getAttribute("key");
|
||||
var keys = keyString ? keyString.split(",") : [];
|
||||
keys.forEach(function (key) {
|
||||
var citation = this$1.data[key];
|
||||
if (!this$1.data.has(key)) {
|
||||
console.error("Citation key '" + key + "' not present in bibliography.");
|
||||
} else if (this$1.citations.indexOf(key) !== -1) {
|
||||
// Bibliography entry has already been cited
|
||||
} else {
|
||||
this$1.citations.push(key);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(Bibliography.is, Bibliography);
|
||||
@@ -5516,7 +5592,7 @@ var dBibliography = Object.freeze({
|
||||
default: Bibliography
|
||||
});
|
||||
|
||||
var T$8 = Template("d-references", `
|
||||
var T$6 = Template("d-references", `
|
||||
<style>
|
||||
d-references {
|
||||
display: block;
|
||||
@@ -5524,7 +5600,7 @@ d-references {
|
||||
</style>
|
||||
`, false);
|
||||
|
||||
class References extends T$8(HTMLElement) {
|
||||
class References extends T$6(HTMLElement) {
|
||||
static get is() { return "d-references"; }
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
@@ -5538,6 +5614,14 @@ var dReferences = Object.freeze({
|
||||
default: References
|
||||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
// Render byline with authors list.
|
||||
|
||||
// Render distill appendix with distill journal data.
|
||||
document.querySelector("distill-appendix").render([]);
|
||||
|
||||
});
|
||||
|
||||
exports.frontMatter = dFrontMatter;
|
||||
exports.title = dTitle;
|
||||
exports.byline = dByline;
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -24,14 +24,19 @@
|
||||
|
||||
<d-article>
|
||||
<h2>Neural Turing Machines</h2>
|
||||
<p>This is the first paragraph of the article. Test a long — dash -- here it is. Test for owner's possessive. Test for "quoting a passage." And another sentence. Or two. We can also cite <d-cite key="gregor2015draw,mercier2011humans"></d-cite> external publications. <d-cite key="dong2014image,dumoulin2016guide,mordvintsev2015inceptionism"></d-cite></p>
|
||||
<p>This is the first paragraph of the article. Test a long — dash -- here it is. Test for owner's possessive. Test for "quoting a passage." And another sentence. Or two. We can also cite <d-cite key="gregor2015draw"></d-cite> external publications. <d-cite key="dong2014image,dumoulin2016guide,mordvintsev2015inceptionism"></d-cite></p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit consectetur deleniti totam perspiciatis neque, eum sapiente, reiciendis velit magnam! Ipsam quas, voluptatum, eligendi velit animi distinctio. Rerum eos iusto sed.</p>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa minima voluptatibus eos, harum, quae hic veritatis perferendis mollitia ullam alias tempora, ipsum quaerat est, quisquam iste ab saepe deleniti possimus.</p>
|
||||
</d-article>
|
||||
|
||||
<d-appendix>
|
||||
|
||||
<h3>Acknowledgments</h3>
|
||||
<p>Thank you to Maithra Raghu, Dario Amodei, Cassandra Xia, Luke Vilnis, Anna Goldie, Jesse Engel, Dan Mané, Natasha Jaques, Emma Pierson and Ian Goodfellow for their feedback and encouragement. We’re also very grateful to our team, Google Brain, for being extremely supportive of our project.</p>
|
||||
|
||||
<h3>Author Contributions</h3>
|
||||
<p>Augustus and Chris recognized the connection between deconvolution and artifacts. Augustus ran the GAN experiments. Vincent ran the artistic style transfer experiments. Chris ran the DeepDream experiments, created the visualizations and wrote most of the article.</p>
|
||||
|
||||
</d-appendix>
|
||||
|
||||
<d-bibliography>
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
"dependencies": {
|
||||
"commander": "^2.9.0",
|
||||
"d3-time-format": "^2.0.3",
|
||||
"handlebars": "^4.0.6",
|
||||
"mustache": "^2.3.0",
|
||||
"webpack": "^2.2.1"
|
||||
}
|
||||
|
||||
@@ -165,6 +165,10 @@ async-each@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d"
|
||||
|
||||
async@^1.4.0:
|
||||
version "1.5.2"
|
||||
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
|
||||
|
||||
async@^2.1.2:
|
||||
version "2.1.5"
|
||||
resolved "https://registry.yarnpkg.com/async/-/async-2.1.5.tgz#e587c68580994ac67fc56ff86d3ac56bdbe810bc"
|
||||
@@ -873,6 +877,16 @@ growl@1.9.2:
|
||||
version "1.9.2"
|
||||
resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f"
|
||||
|
||||
handlebars@^4.0.6:
|
||||
version "4.0.6"
|
||||
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.6.tgz#2ce4484850537f9c97a8026d5399b935c4ed4ed7"
|
||||
dependencies:
|
||||
async "^1.4.0"
|
||||
optimist "^0.6.1"
|
||||
source-map "^0.4.4"
|
||||
optionalDependencies:
|
||||
uglify-js "^2.6"
|
||||
|
||||
har-validator@~2.0.6:
|
||||
version "2.0.6"
|
||||
resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-2.0.6.tgz#cdcbc08188265ad119b6a5a7c8ab70eecfb5d27d"
|
||||
@@ -1343,7 +1357,7 @@ minimatch@^3.0.0, minimatch@^3.0.2:
|
||||
dependencies:
|
||||
brace-expansion "^1.0.0"
|
||||
|
||||
minimist@0.0.8:
|
||||
minimist@0.0.8, minimist@~0.0.1:
|
||||
version "0.0.8"
|
||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
|
||||
|
||||
@@ -1488,6 +1502,13 @@ opener@^1.4.2:
|
||||
version "1.4.2"
|
||||
resolved "https://registry.yarnpkg.com/opener/-/opener-1.4.2.tgz#b32582080042af8680c389a499175b4c54fff523"
|
||||
|
||||
optimist@^0.6.1:
|
||||
version "0.6.1"
|
||||
resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686"
|
||||
dependencies:
|
||||
minimist "~0.0.1"
|
||||
wordwrap "~0.0.2"
|
||||
|
||||
optionator@^0.8.1:
|
||||
version "0.8.2"
|
||||
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64"
|
||||
@@ -1841,9 +1862,9 @@ rollup-watch@^2.5.0:
|
||||
dependencies:
|
||||
semver "^5.1.0"
|
||||
|
||||
rollup@^0.41.4:
|
||||
version "0.41.4"
|
||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.41.4.tgz#a970580176329f9ead86854d7fd4c46de752aef8"
|
||||
rollup@latest:
|
||||
version "0.41.5"
|
||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.41.5.tgz#cdfaade5cd1c2c7314351566a50ef74df6e66e3d"
|
||||
dependencies:
|
||||
source-map-support "^0.4.0"
|
||||
|
||||
@@ -1897,6 +1918,12 @@ source-map-support@^0.4.0:
|
||||
dependencies:
|
||||
source-map "^0.5.3"
|
||||
|
||||
source-map@^0.4.4:
|
||||
version "0.4.4"
|
||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b"
|
||||
dependencies:
|
||||
amdefine ">=0.0.4"
|
||||
|
||||
source-map@^0.5.3, source-map@~0.5.1, source-map@~0.5.3:
|
||||
version "0.5.6"
|
||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"
|
||||
@@ -2082,7 +2109,7 @@ type-detect@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2"
|
||||
|
||||
uglify-js@^2.6.1, uglify-js@^2.7.5:
|
||||
uglify-js@^2.6, uglify-js@^2.6.1, uglify-js@^2.7.5:
|
||||
version "2.7.5"
|
||||
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8"
|
||||
dependencies:
|
||||
@@ -2214,7 +2241,7 @@ window-size@0.1.0:
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d"
|
||||
|
||||
wordwrap@0.0.2:
|
||||
wordwrap@0.0.2, wordwrap@~0.0.2:
|
||||
version "0.0.2"
|
||||
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user