Skip to content
This repository was archived by the owner on Sep 11, 2019. It is now read-only.

Commit fe89077

Browse files
committed
Ability to add custom.css per presentation
1 parent 25623c1 commit fe89077

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.fsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,12 @@ Target "ReleaseSlides" (fun _ ->
158158
CleanDir publishImagesDir
159159
CopyRecursive outputImagesDir publishImagesDir true |> tracefn "%A"
160160

161+
let cssFile = slidesDir @@ "custom.css"
162+
if File.Exists cssFile then
163+
CopyFile publishDir cssFile |> tracefn "%A"
164+
161165
CopyFile publishDir (outDir @@ "index.html") |> tracefn "%A"
162-
166+
163167
StageAll ghPagesDir
164168
Git.Commit.Commit ghPagesDir (sprintf "Update generated slides for %s" topic)
165169
Branches.push ghPagesDir

shared/template.html

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<link type="text/css" rel="stylesheet" href="../../shared/fsharp.formatting/styles/style.css" />
1919
<link type="text/css" rel="stylesheet" href="../../shared/fsharp.formatting/styles/deedle.css" />
2020
<link type="text/css" rel="stylesheet" href="../../shared/css/custom.css" />
21+
<link type="text/css" rel="stylesheet" href="custom.css" />
2122
<script src="../../shared/fsharp.formatting/styles/tips.js" type="text/javascript"></script>
2223
<link rel="shortcut icon" type="image/png" href="../../shared/favicon.png">
2324
<!-- For syntax highlighting -->

0 commit comments

Comments
 (0)