Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

patch staging

  • Loading branch information...
commit ef9c980d4fd086c4048b3dd7f4cc4e7a772417e7 1 parent a6465d9
@schacon schacon authored
Showing with 10 additions and 3 deletions.
  1. +6 −0 public/css/showoff.css
  2. +4 −3 script/import_images.rb
View
6 public/css/showoff.css
@@ -58,6 +58,12 @@ body { font-family: "Gill Sans", Helvetica, Arial, sans-serif; }
font-family: monospace;
font-size: 3em;
}
+
+.subsection {
+ background: #008;
+ color: #fff;
+}
+
h1 { font-size: 5em; font-weight: normal; text-align: center;}
h2 { font-size: 3em; font-weight: normal; text-align: center; }
h3 { font-size: 2em; font-weight: normal; text-align: center; }
View
7 script/import_images.rb
@@ -21,15 +21,16 @@
if File.exists?(preso)
Dir.chdir(preso) do
# make the new directory
- Dir.mkdir(section)
+ Dir.mkdir(section) rescue nil
Dir.chdir(section) do
- Dir.mkdir('img')
+ Dir.mkdir('img') rescue nil
# copy all the images into img dir
FileUtils.cp_r(path, "img")
files = Dir.glob("img/**/*")
# create the slides file
- filenm = "#{section}.md"
+ filen = section.split('/').last
+ filenm = "#{filen}.md"
File.open(filenm, 'w+') do |f|
files.each do |img|
if File.file?(img)
Please sign in to comment.
Something went wrong with that request. Please try again.