(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-filesprocedureCreate 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-assetsprocedureCreate 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-bodyprocedureLoad and return the item's body content.