hakyll-3.1.2.3: A simple static site generator library.

Hakyll.Core.Configuration

Description

Exports a datastructure for the top-level hakyll configuration

Synopsis

Documentation

data HakyllConfiguration Source

Constructors

HakyllConfiguration 

Fields

destinationDirectory :: FilePath

Directory in which the output written

storeDirectory :: FilePath

Directory where hakyll's internal store is kept

ignoreFile :: FilePath -> Bool

Function to determine ignored files

In defaultHakyllConfiguration, the following files are ignored:

  • files starting with a .
  • files ending with a ~
  • files ending with .swp

Note that the files in destinationDirectory and storeDirectory will also be ignored. Note that this is the configuration parameter, if you want to use the test, you should use shouldIgnoreFile.

shouldIgnoreFile :: HakyllConfiguration -> FilePath -> BoolSource

Check if a file should be ignored

defaultHakyllConfiguration :: HakyllConfigurationSource

Default configuration for a hakyll application