fsprojects / FsReveal

FsReveal parses markdown and F# script file and generates reveal.js slides.
http://fsprojects.github.io/FsReveal
258 stars 100 forks source link

Copy subfolders for images #61

Closed CumpsD closed 9 years ago

CumpsD commented 9 years ago

Currently this codes copies the images:

!! (slidesDir @@ "images/*.*")
|> CopyFiles (outDir @@ "images")

Basicly it says: take all files in the direct root of images and copy them, ignoring subfolders.

I propose to copy the entire images directory:

CopyDir (outDir @@ "images") (slidesDir @@ "images") (fun f -> true)

This allows people to either keep using it as it is now, directly in the root. But also allows you to organise your images.

I can send a PR if this proposal makes sense.

kimsk commented 9 years ago

I think that sounds good. Thanks!