diff --git a/components/generate-crossref.js b/components/generate-crossref.js new file mode 100644 index 0000000..9d789be --- /dev/null +++ b/components/generate-crossref.js @@ -0,0 +1,3 @@ +export default function(data) { + return "crossref"; +} diff --git a/index.js b/index.js index c26b21c..2ce81df 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,8 @@ import citation from "./components/citation"; import markdown from "./components/markdown"; import code from "./components/code"; +import generateCrossref from "./components/generate-crossref"; + function render(dom, data) { data = data || {}; html(dom); @@ -48,3 +50,5 @@ export {footer as footer}; export {citation as citation}; export {markdown as markdown}; export {code as code}; + +export {generateCrossref as generateCrossref}; diff --git a/test-data.js b/test-data.js deleted file mode 100644 index 027f553..0000000 --- a/test-data.js +++ /dev/null @@ -1,46 +0,0 @@ -export default { - "title": "Experiments in Handwriting with a Neural Network", - "description": "Several interactive visualizations of a generative model of handwriting. Some are fun, some are serious.", - "url": "http://distill.pub/2016/handwriting/", - "github": "https://github.com/distillpub/post--handwriting", - "firstPublished": "Tue Dec 6 2016 21:39:33 GMT-0700 (PDT)", - "lastPublished": "Tue Dec 6 2016 21:39:33 GMT-0700 (PDT)", - "authors": [ - { - "firstName": "Shan", - "lastName": "Carter", - "personalURL": "http://shancarter.com", - "affiliation": "Google Brain", - "affiliationURL": "http://g.co/brain" - }, - { - "firstName": "David", - "lastName": "Ha", - "personalURL": "https://github.com/hardmaru", - "affiliation": "Google Brain", - "affiliationURL": "http://g.co/brain" - }, - { - "firstName": "Ian", - "lastName": "Johnson", - "personalURL": "https://github.com/enjalot", - "affiliation": "Google Cloud", - "affiliationURL": "" - }, - { - "firstName": "Chris", - "lastName": "Olah", - "personalURL": "http://colah.github.io/", - "affiliation": "Google Brain", - "affiliationURL": "http://g.co/brain" - } - ], - journal: { - "title": "Distill", - "full_title": "Distill", - "abbrev_title": "Distill", - "url": "http://distill.pub", - "doi": "00.0000/dstl", - "issn": "0000-0000" - } - };