Skip to content

Commit ea03c88

Browse files
committed
importing original repo
1 parent 5abfea0 commit ea03c88

File tree

90 files changed

+48258
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+48258
-0
lines changed

original_repo/en/Rakefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require 'generate_html'
2+
3+
SRC= FileList['*.txt']
4+
HTML=SRC.ext( 'html')
5+
6+
DPI=180.0
7+
IMAGE_DIR='images/'
8+
DIAGRAM_DIR='diagrams/'
9+
10+
SVG = FileList["#{DIAGRAM_DIR}*.svg"]
11+
PNG = SVG.ext('png').sub!(/^#{Regexp.escape DIAGRAM_DIR}/, IMAGE_DIR)
12+
13+
task :default => [:rhg]
14+
task :rhg => HTML+PNG
15+
16+
rule( '.html' => '.txt'){|t|
17+
generate_html( t.name, t.source )
18+
}
19+
20+
INKSCAPE = if(ENV['INKSCAPE_PATH']) then ENV['INKSCAPE_PATH'] + "/inkscape" else "inkscape" end
21+
22+
PNG.zip( SVG).each{|png, svg|
23+
file( png => svg){
24+
sh "#{INKSCAPE} -z --export-png=#{png} --export-dpi=#{DPI} --file=#{svg}"
25+
}
26+
}

0 commit comments

Comments
 (0)