sigildocs

(sigil publish scan)

(sigil publish scan) - Content Scanning Pipeline Stages

Pipeline stages for scanning content files and assets. Each stage returns a function (config state) -> state.

Exports

scan-filesprocedure

Create a pipeline stage that scans content files.

Returns a function (config state) -> state that scans files matching the glob pattern and adds them to state items:.

(scan-files "posts/**/*.md")
(scan-files "docs/**/*.md" classifiers: my-classifiers)
(scan-files "docs/**/*.md" output-prefix: "/docs/")
scan-assetsprocedure

Create a pipeline stage that scans static assets.

Returns a function (config state) -> state that scans files matching the glob pattern and adds them to state assets:.

(scan-assets "static/**/*")
(scan-assets "build/web/www/**/*" output-prefix: "/playground/")
item-bodyprocedure

Load and return the item's body content.