Skip to content

Commit

Permalink
Create CSS dir fi it doesn't exist. relates to #76
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Jun 14, 2015
1 parent b18d878 commit 3aff987
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 0.10.3 - 14.06.2015
### 0.10.4 - 14.06.2015
* Do not double-format already highlighted code

### 0.10.1 - 11.06.2015
Expand Down
7 changes: 6 additions & 1 deletion src/FsReveal/FsReveal.fs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ type FsReveal private() =
let output = Formatting.GenerateHTML template presentation
File.WriteAllText(outDir @@ outFile, output)
printfn "Copy fsreveal.css style from %s to %s" FsRevealHelper.StyleFile (outDir @@ "css")
File.Copy(FsRevealHelper.StyleFile, (outDir @@ "css" @@ "fsreveal.css"), true)
let cssDir = outDir @@ "css"
if Directory.Exists cssDir |> not then
Directory.CreateDirectory cssDir |> ignore
printfn "Creating %s.." cssDir

File.Copy(FsRevealHelper.StyleFile, cssDir @@ "fsreveal.css", true)

static let getPresentationFromScriptLines fsxFile fsiEvaluator lines =
let fsx = Formatting.preprocessing lines
Expand Down

0 comments on commit 3aff987

Please sign in to comment.