Skip to content

Commit 3cd089c

Browse files
feat: rip out forester (#18)
1 parent 52794f2 commit 3cd089c

File tree

96 files changed

+169
-2453
lines changed

Some content is hidden

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

96 files changed

+169
-2453
lines changed

app/Main.hs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ data Experience = Experience
120120
, startDate :: String
121121
, endDate :: Maybe String
122122
, technologies :: [Technology]
123+
, hasTechnologies :: Bool
123124
, content :: String
124125
}
125126
deriving (Generic, Eq, Show, FromJSON, Binary)
@@ -184,23 +185,23 @@ mdToHTML = markdownToHTMLWithOpts markdownOptions defaultHtml5Options
184185
Builders
185186
------------------------------------------------}
186187
buildExperience :: FilePath -> Action Experience
187-
buildExperience srcPath = cacheAction ("build" :: T.Text, srcPath) $ do
188+
buildExperience srcPath = cacheAction ("build experience" :: T.Text, srcPath) $ do
188189
liftIO . putStrLn $ "Rebuilding aboutme/experience: " <> srcPath
189190
experienceContent <- readFile' srcPath
190191
-- load post content and metadata as JSON blob
191192
experienceData <- mdToHTML . T.pack $ experienceContent
192193
convert experienceData
193194

194195
buildBio :: FilePath -> Action Bio
195-
buildBio srcPath = cacheAction ("build" :: T.Text, srcPath) $ do
196+
buildBio srcPath = cacheAction ("build bio" :: T.Text, srcPath) $ do
196197
liftIO . putStrLn $ "Rebuilding aboutme/bio: " <> srcPath
197198
bioContent <- readFile' srcPath
198199
-- load post content and metadata as JSON blob
199200
bioData <- mdToHTML . T.pack $ bioContent
200201
convert bioData
201202

202203
buildEducation :: FilePath -> Action Education
203-
buildEducation srcPath = cacheAction ("build" :: T.Text, srcPath) $ do
204+
buildEducation srcPath = cacheAction ("build education" :: T.Text, srcPath) $ do
204205
liftIO . putStrLn $ "Rebuilding aboutme/education: " <> srcPath
205206
eduContent <- readFile' srcPath
206207
-- load post content and metadata as JSON blob
@@ -347,11 +348,6 @@ buildGithubIdentityClaim = do
347348
outputFolder <- ask
348349
lift $ copyFileChanged "site/github.html" $ outputFolder <> "github.html"
349350

350-
buildForestXSLT :: SiteM ()
351-
buildForestXSLT = do
352-
outputFolder <- ask
353-
lift $ copyFileChanged "site/forest.xsl" $ outputFolder <> "forest.xsl"
354-
355351
{------------------------------------------------
356352
Shake Build
357353
------------------------------------------------}
@@ -365,7 +361,6 @@ buildRules = do
365361
buildFeed allPosts
366362
buildCNAME
367363
buildGithubIdentityClaim
368-
buildForestXSLT
369364
copyStaticFiles
370365

371366
main :: IO ()

flake.lock

Lines changed: 1 addition & 215 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)