Pipelines
Automated static site generation
Skua's pipelines can be used to perform the same operation on a set of files many times. You can use prebuilt pipelines, or build your own.
Prebuild (opinionated) pipelines
skua.files.markdown_pipeline
– a pipeline which takes markdown files and compiles them into HTML. UsesHTMLPipeline
. Calling themarkdown_pipeline
function will return aPipeline
object which you can call usingPipeline.compile_and_save_files()
from skua.pipelines import markdown_pipeline from skua.preprocessors import Config from pathlib import Path pipeline = markdown_pipeline(Path('src'), Path('templates'), Config.from_file(Path('config.json'))) # This creates the pipeline