changes I don't even know

This commit is contained in:
Christian Genco 2015-07-20 13:57:08 -05:00
parent cbed7271df
commit 6463c53838
5 changed files with 230 additions and 14 deletions

View File

@ -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 =~ /\<script.*src=\"(.*)\"/
# path = $1
# js = Uglifier.compile(File.read(path))
# "<script type='text/javascript'>#{js}</script>"
# 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 =~ /\<script.*src=\"(.*)\"/
path = $1
js = Uglifier.compile(File.read(path))
"<script type='text/javascript'>#{js}</script>"
else
line
end
}
File.open('built/apa/index.html', 'w'){|f| f.puts bundled}
end

216
built/apa/index.html Normal file

File diff suppressed because one or more lines are too long

BIN
js/.DS_Store vendored

Binary file not shown.

View File

@ -296,4 +296,4 @@ exports.createMLADocument = (body, metadata, stream) ->
# body = content.body
# metadata = content.metadata
# stream = fs.createWriteStream("#{metadata.title} by #{metadata.author}.pdf")
# createDocument(body, metadata, stream)
# createDocument(body, metadata, stream)

View File

@ -8,7 +8,7 @@
<meta property='description' name='description' content='Convert markdown to APA formatted PDFs. Makes writing school papers much easier.' />
<meta property='og:description' name='og:description' content='Convert markdown to APA formatted PDFs. Makes writing school papers much easier.' />
<meta property='og:url' name='og:url' content='http://markdowntoapa.com/' />
<meta property='og:image' name='og:image' content='http://i.imgur.com/JwuUAy9.png' />
<meta property='og:image' name='og:image' content='http://i.imgur.com/7mgT3KE.png' />
<style type="text/css">
*{