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§

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.
sources
Expands the map’s patterns into import units: one main file with its chapters and attachments.