shakebook 0.2.0.0 → 0.2.0.1
raw patch · 3 files changed
+7/−3 lines, 3 files
Files
- shakebook.cabal +2/−2
- src/Shakebook/Data.hs +4/−0
- src/Shakebook/Defaults.hs +1/−1
shakebook.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 353194af235845486622da7de4d10314e4569f0b886a6368e261993ae8f34384+-- hash: 1a53af50ae1f33a62c5aa274a9c61088f181e72ed6fff81637c4ebb9e9f0e45e name: shakebook-version: 0.2.0.0+version: 0.2.0.1 synopsis: Shake-based technical documentation generator; HTML & PDF description: Shakebook is a documentation generator aimed at covering all the bases for mathematical, technical and scientific diagrams and typesetting. Shakebook provides combinators for taking markdown files and combining them into documents, but allowing the user to control how. Shakebook provides general combinators for templating single pages, cofree comonads for representing tables of contents, and zipper comonads for representing pagers. category: Web
src/Shakebook/Data.hs view
@@ -111,6 +111,10 @@ typicalFullOutToSrcPath = view sbConfigL >>= \SbConfig{..} -> pure $ drop 1 . fromJust . stripPrefix sbOutDir +typicalFullOutToFullSrcPath :: MonadShakebook r m => m (String -> String)+typicalFullOutToFullSrcPath = view sbConfigL >>= \SbConfig{..} -> + liftA2 (.) (pure (sbSrcDir </>)) typicalFullOutToSrcPath+ typicalFullOutHTMLToMdSrcPath :: MonadShakebook r m => m (String -> String) typicalFullOutHTMLToMdSrcPath = liftA2 (.) (pure (-<.> "md")) typicalFullOutToSrcPath
src/Shakebook/Defaults.hs view
@@ -278,7 +278,7 @@ -} defaultStaticsPatterns :: MonadShakebookRules r m => [FilePattern] -> m () defaultStaticsPatterns xs = view sbConfigL >>= \SbConfig {..} -> do- f <- typicalFullOutToSrcPath+ f <- typicalFullOutToFullSrcPath liftRules $ mconcat $ map (\x -> sbOutDir </> x %> \y -> copyFileChanged (f y) y) xs -- | Default "shake clean" phony, cleans your output directory.