Routing Rules
mkpages preserves structure relative to the chosen content root.
Core rules
index.mdmaps to the containing directoryREADME.mdmaps to the containing directory whenindex.mdis absent- any other
name.mdmaps toname/ - nested structure is preserved relative to the content root
Examples
If the command is:
mkpages .
then:
index.mdbecomes/docs/index.mdbecomes/docs/blog/post-1.mdbecomes/blog/post-1/
If the command is:
mkpages docs/
then:
docs/index.mdbecomes/docs/getting-started.mdbecomes/getting-started/docs/examples/default.mdbecomes/examples/default/
Link rewriting
Relative Markdown links such as CLI Reference are rewritten so they continue to work after route generation.