diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-06-17 20:40:11 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2023-06-17 20:40:40 +0200 |
| commit | 32a49d3179a969604410ff7507af939c77045b4f (patch) | |
| tree | 70e8a0e3bacad4b7208797b45e1b0805c8d70678 /Types.hs | |
| parent | 0f97b7a64fa3733689b713a2210a4f7b64e069d7 (diff) | |
| download | reploy-32a49d3179a969604410ff7507af939c77045b4f.tar.gz reploy-32a49d3179a969604410ff7507af939c77045b4f.tar.bz2 | |
export search data, add indexing script
Diffstat (limited to 'Types.hs')
| -rw-r--r-- | Types.hs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -44,6 +44,7 @@ data SiteState = -- the template directory) , _templates :: M.Map FilePath Mu.Template , _outputDir :: FilePath -- ^ Directory for output + , _searchDataOut :: Maybe FilePath -- ^ File to write the searchable versions of pages to (as JSON) , _assetDir :: FilePath -- ^ Directory for output , _sourceDirs :: [FilePath] -- ^ Path to page source data , _templateDir :: FilePath -- ^ Path to template directory @@ -68,6 +69,12 @@ siteOptions' = do long "output" <> short 'd' <> help "Directory to render the site to" <> value "_site" <> showDefault + _searchDataOut <- + Just <$> + (strOption $ + long "search-data-output" <> + help "Output JSON with searchable page data to this file") <|> + pure Nothing _assetDir <- strOption $ long "assets" <> |
