module Text.LaTeX.Guide.Info (
sectionList
, contributors
, Backend (..)
, parseSections
, outputName
, otherResources) where
import Text.LaTeX.Guide.Syntax
import System.FilePath
import Data.Monoid
import System.Directory (getAppUserDataDirectory)
sectionList :: [String]
sectionList = [
"preface"
, "basics"
, "monad"
, "class"
, "packages"
, "epilogue"
]
contributors :: [String]
contributors = [ ]
data Backend = LaTeX | Wiki | HTML
parseSections :: IO [Syntax]
parseSections = do
d <- getAppUserDataDirectory "hatex-guide"
mapM (parseFile . (<.> "htxg") . combine d . combine "src") sectionList
outputName :: String -> FilePath
outputName = mappend "hatex-guide"
otherResources :: [String]
otherResources = [ "machine.png" ]