pub fn register_default_plugins(
plugins: &mut PluginManager,
config: &SsgConfig,
include_drafts: bool,
deploy_target: Option<&str>,
)Expand description
Registers the default plugin pipeline.
Plugins execute in registration order. The ordering is:
- SEO plugins (meta tags, canonical URLs, robots.txt)
- Search index generation
- HTML minification — last in registration order, but note that
after_compilehooks all run before anytransform_html, so minification precedes the fused transform pass rather than following it (see the note at its registration below) - Live reload (
on_serveonly)
§Examples
use ssg::cmd::SsgConfig;
use ssg::pipeline::register_default_plugins;
use ssg::plugin::PluginManager;
let cfg = SsgConfig::default();
let mut pm = PluginManager::new();
register_default_plugins(&mut pm, &cfg, false, None);
assert!(pm.len() > 0);