rib-0.2.0.0

Safe HaskellNone
LanguageHaskell2010

Rib.Simple

Description

Sensible defaults for writing the most simple static site

Synopsis

Documentation

data Page Source #

Type of page to be generated

Constructors

Page_Index [(FilePath, Pandoc)]

Index page linking to a list of posts

Page_Post (FilePath, Pandoc)

Individual post page

Instances
Show Page Source # 
Instance details

Defined in Rib.Simple

Methods

showsPrec :: Int -> Page -> ShowS #

show :: Page -> String #

showList :: [Page] -> ShowS #

Generic Page Source # 
Instance details

Defined in Rib.Simple

Associated Types

type Rep Page :: Type -> Type #

Methods

from :: Page -> Rep Page x #

to :: Rep Page x -> Page #

ToJSON Page Source # 
Instance details

Defined in Rib.Simple

FromJSON Page Source # 
Instance details

Defined in Rib.Simple

type Rep Page Source # 
Instance details

Defined in Rib.Simple

buildAction :: (Page -> Html ()) -> Action () Source #

Shake build action for the most simple static site

  • Copies static/ as is.
  • Builds *.md, *.rst and *.org as HTML
  • Builds an index.html of all pages unless draft metadata is set to True.