From 6463c53838ea25824222e84630b3147a8cb963ee Mon Sep 17 00:00:00 2001 From: Christian Genco Date: Mon, 20 Jul 2015 13:57:08 -0500 Subject: [PATCH] changes I don't even know --- Rakefile | 24 ++-- built/apa/index.html | 216 ++++++++++++++++++++++++++++++++++++ js/.DS_Store | Bin 6148 -> 6148 bytes markdowntomla.coffee | 2 +- template_markdowntoapa.html | 2 +- 5 files changed, 230 insertions(+), 14 deletions(-) create mode 100644 built/apa/index.html diff --git a/Rakefile b/Rakefile index 24c358f..a328100 100644 --- a/Rakefile +++ b/Rakefile @@ -24,16 +24,16 @@ task :build_apa do puts "browserifying" puts system("browserify -t coffeeify browser.markdowntoapa.coffee > js/markdowntoapa.js") - # puts "building minified self-contained index.html" - # html = File.read('template_markdowntoapa.html') - # bundled = html.split("\n").map{|line| - # if line =~ /\#{js}" - # else - # line - # end - # } - # File.open('built/apa/index.html', 'w'){|f| f.puts bundled} + puts "building minified self-contained index.html" + html = File.read('template_markdowntoapa.html') + bundled = html.split("\n").map{|line| + if line =~ /\#{js}" + else + line + end + } + File.open('built/apa/index.html', 'w'){|f| f.puts bundled} end \ No newline at end of file diff --git a/built/apa/index.html b/built/apa/index.html new file mode 100644 index 0000000..52bdab4 --- /dev/null +++ b/built/apa/index.html @@ -0,0 +1,216 @@ + + + + MarkdowntoAPA.com + + + + + + + + + + + + +
+author: Christian R. Genco
+institution: Southern Methodist University
+title: How to use MarkdownToAPA.com to\nWrite APA Papers Easier
+runninghead: WRITE APA PAPERS ON MARKDOWNTOAPA.COM
+abstract: This paper shows you how to use the website you're viewing it on, MarkdownToAPA.com, to write APA papers in markdown and automatically format them really prettily as a downloadable/printable PDF document. It's pretty meta, yo.
+keywords: game changing, next facebook, #thedress, document formats are tedious
+
+Hi! Welcome to MarkdownToAPA.com - a simple website with an even simpler purpose: making it less annoying to generate APA-formatted papers.
+
+The stuff on the left is editable, and automatically generates the PDF on the right, which can be downloaded and emailed to your professor, or printed out and made into a paper airplane, or whatever else you can do with a PDF. Everything you write is automatically saved as soon as you pause your furious typing, but it's still a good idea to copy and paste it somewhere else every once in a while as a backup. You can even use this website without being connected to the internet!
+
+The special format on the left is called Markdown. You can easily make things *italic* and **bold**, as well as quote important people:
+
+> Writing MLA-formatted essays is much easier with markdowntomla.com. I use it all the time when I write essays to foreign dictators, as well as to my wife when I need her to pick up something from the store on the way home (we're a very formal family). (Obama)
+
+You can also play around with headings:
+
+# Important Stuff
+
+I'm going to talk about really important stuff here.
+
+## Important Stuff I am Wearing
+
+There's a lot of important stuff out there, but the stuff I'm wearing is a pretty large subset of it. Let's further explore the topic of my clothing.
+
+### Pants
+
+My belt holds my pants up, but my belt loops hold my belt up. Who's the real hero?
+
+### Socks
+
+Feet can get pretty cold without an external layer of cloth to hold in their heat. I'm not keeping score or anything, but I'd say socks rank pretty high up there.
+
+# Non-important Stuff
+
+Actually, most stuff is pretty important. I'll leave this section blank. Except for, of course, the previous sentence.
+
+Need a page break? Just type three dashes on an empty line.
+
+---
+
+Whoa, so much more room on this page. There are two things left to cover: the special **author**, **institution**, **runninghead**, **title**, **abstract**, and **keywords** section at the top; and the work's cited page. The former is used for the MLA heading, numbering the pages, and naming your downloaded PDF. The later is pretty self explanatory (look at the markdown source code at the bottom of this essay).
+
+For help generating those citations, check out bibme.org, and citationmachine.net. Be careful citing Wikipedia, but there's also a handy "cite this page" button on every page.
+
+---
+
+# Conclusions and Future Study
+
+Get out there and research some cool things to write about! Or just start editing the markdown on the left. Either way, let me know if you have any suggestions for improvement on twitter @cgenco, or through my website at http://christian.gen.co (where I also have a lecture on how to go to college for free, and other websites I've made).
+
+Want this for MLA? Head over to http://MarkdownToMLA.com
+
+---
+
+# References
+
+Egan, G. (1994). Permutation city. New York: HarperPrism.
+
+Hacker News. (2015, March 18). In *Wikipedia, The Free Encyclopedia*. Retrieved 08:46, April 7, 2015, from http://en.wikipedia.org/w/index.php?title=Hacker_News&oldid=651986110
+
+Rowling, J. (1999). *Harry Potter and the Chamber of Secrets*. New York: Arthur A. Levine Books.
+
+ + + + + + + + + diff --git a/js/.DS_Store b/js/.DS_Store index 937610c8e4a6cd282c335d3572f518663fd72f0d..a180303143ade98ca5fee638577719f2c74eca05 100644 GIT binary patch literal 6148 zcmeHK%}T>S5T4aS#flUW^q40Q3SNa+qIfAD`U3q){UbHSwu-mhd9}j)VW8=Wux6shazF~@EBdqW|3r7ifBL=D6>lw8hCY>)}CbXJn}l;p3aA^jyaF7I?6n}I!uRy z)KEuC4|FSpbt$H6RQ2f9L$AB#p0jneJ~(7q%wd|>x7^dOleco(qEl3sfU`Cjy9eGC zUv897aRFLan$wA0B*X2fxs zjXR+j$qsuU?qouXs+9p{z-M6H-qyMQpOl~f{YiSK3@8KtiUCuJ+EEira=o>%IPSFp rMhAn1{W6O(1CJ*u~2NHo+2aD!~pBb1|lqz`B|hVv$IJ~{>{p>S(HPFWn+UH^JaDq deh#48&4L`?nJ4p$7&0 # body = content.body # metadata = content.metadata # stream = fs.createWriteStream("#{metadata.title} by #{metadata.author}.pdf") -# createDocument(body, metadata, stream) \ No newline at end of file +# createDocument(body, metadata, stream) diff --git a/template_markdowntoapa.html b/template_markdowntoapa.html index 00e7859..f74e6ee 100644 --- a/template_markdowntoapa.html +++ b/template_markdowntoapa.html @@ -8,7 +8,7 @@ - +