daino-0.1.5.2: daino is a static site generator (SSG) using shake and pandoc
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lib.IndexMake

Description

create an index for a directory in two steps: IndexCollect: collect all the date with call to addIndex2yam and indexMake: convert collected data for printing (convertIndexEntries) . the data is stored in a file separately and managed by Shake operates on metapage (or less? ) this could all be pure code?

Synopsis

Documentation

data MenuEntry Source #

Constructors

MenuEntry 

Instances

Instances details
FromJSON MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

ToJSON MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

Generic MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

Associated Types

type Rep MenuEntry :: Type -> Type #

Read MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

Show MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

Eq MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

Ord MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

Zeros MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

type Rep MenuEntry Source # 
Instance details

Defined in Lib.IndexMake

type Rep MenuEntry = D1 ('MetaData "MenuEntry" "Lib.IndexMake" "daino-0.1.5.2-BGWuqXC897kITybImSdur4" 'False) (C1 ('MetaCons "MenuEntry" 'PrefixI 'True) (S1 ('MetaSel ('Just "menu2subdir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Index4html]) :*: S1 ('MetaSel ('Just "menu2files") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Index4html])))

data Index4html Source #

the lines for the index TODO make a variant for the breaing marks

Constructors

Index4html 

Fields

Instances

Instances details
FromJSON Index4html Source # 
Instance details

Defined in Lib.IndexMake

ToJSON Index4html Source # 
Instance details

Defined in Lib.IndexMake

Generic Index4html Source # 
Instance details

Defined in Lib.IndexMake

Associated Types

type Rep Index4html :: Type -> Type #

Read Index4html Source # 
Instance details

Defined in Lib.IndexMake

Show Index4html Source # 
Instance details

Defined in Lib.IndexMake

Eq Index4html Source # 
Instance details

Defined in Lib.IndexMake

Ord Index4html Source # 
Instance details

Defined in Lib.IndexMake

Zeros Index4html Source # 
Instance details

Defined in Lib.IndexMake

type Rep Index4html Source # 
Instance details

Defined in Lib.IndexMake

convertIndexEntries :: NoticeLevel -> [Text] -> Text -> IndexEntry -> ErrIO MenuEntry Source #

take the index entries and convert their form and push them back into the json converts to values for printing if indexpage else null date today is passed to feed in pages the authors which should be oppressed are passed is pure except for today! TODO today is not used use the date from the siteHeader? TODO

convert2index :: [Text] -> Text -> (IndexEntry, [IndexEntry], [IndexEntry]) -> MenuEntry Source #

convert the indexEntry1s and put some divider between TODO - avoid dividers if list empty

getOneIndexEntryPure :: [Text] -> IndexEntry -> Index4html Source #

the pure code to compute an IndexEntry Text should be "BlogpostTufteStyled.html"