Skip to content

Commit

Permalink
remove style for ebooks, improve regexps for figures
Browse files Browse the repository at this point in the history
  • Loading branch information
avsej committed Oct 14, 2010
1 parent 36db769 commit ec3fffc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
23 changes: 0 additions & 23 deletions ebooks/style.css

This file was deleted.

3 changes: 1 addition & 2 deletions makeebooks
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ARGV.each do |lang|
Dir[File.join(dir, '**', '*.markdown')].each do |input|
puts "processing #{input}"
content = File.read(input)
content.gsub!(/Insert\s+(.*)(\.png)\s+\nFigure\s+(.*)/, '![\3](figures/\1-tn\2 "\3")')
content.gsub!(/Insert\s+(.*)(\.png)\s*\n?\s*Figure\s+(.*)/, '![\3](figures/\1-tn\2 "\3")')
book_content << RDiscount.new(content).to_html
end
book_content << "</body></html>"
Expand All @@ -48,6 +48,5 @@ ARGV.each do |lang|
'--level1-toc', '//h:h1',
'--level2-toc', '//h:h2',
'--level3-toc', '//h:h3',
'--extra-css', 'ebooks/style.css',
'--language', lang)
end

0 comments on commit ec3fffc

Please sign in to comment.