Documentation
¶
Overview ¶
slides-copy — copies selected ipmt-embedded SVGs to flat, sequentially named slide files (e.g. the infinite.pm landing-page carousel).
The embedded diagrams live under a doc's `_ipm/<doc>/<id>.ipm.svg` tree with three-character marker ids (100, 110, 120, …) that don't line up with the carousel's 01..NN slot names. This tool reads a small JSON config that maps each source SVG to its destination slide name and copies them into a single out_dir.
Config shape (paths resolved relative to the config file's own directory):
{
"out_dir": "docs/slides",
"slide": [
{ "src": "../ipm-intro/_ipm/README/100.ipm.svg", "out": "01.ipm.svg" },
{ "src": "../ipm-intro/_ipm/README/120.ipm.svg", "out": "02.ipm.svg" }
]
}
With -prune, any *.ipm.svg in out_dir the config does not list is deleted, keeping the slide set an exact mirror of the config (out_dir is expected to be a dedicated, fully generated directory).