Skip to main content

Module import

Module import 

Source
Expand description

Importing documents from another layout through a project’s import map.

Re-exports§

pub use map::ImportMap;
pub use plan::ImportPlan;
pub use plan::Row;
pub use plan::alias_table;
pub use plan::build;

Modules§

body_meta
Status, date and links that older ADR layouts keep in the body instead of frontmatter: adr-tools writes Date: … and a ## Status section with Supercedes [title](file) lines; MADR 2 writes * Status: … and * Date: … bullets under the title.
convert
Converting an old document’s frontmatter to the specfold shape.
key
Choosing the key and slug of an imported document.
map
The import map: how files from another layout become typed documents. A project writes it once for its migration; nothing in it is specific to specfold’s own layout.
owner
Choosing an imported document’s owner: from what it says it governs, else from the code paths its text mentions most.
plan
Builds the import plan: one row per source for review, and the file changes that apply it.
presets
Starter import maps for layouts other ADR tools write. They are printed for the project to edit, never applied directly: custom templates and statuses vary.
sources
Expands the map’s patterns into import units: one main file with its chapters and attachments.