Skip to main content

to_site_page

Function to_site_page 

Source
pub fn to_site_page(markdown: &str, page_dir: &str) -> String
Expand description

Transform markdown (a generated reference page, mdBook form) into its committed Starlight form. page_dir is the page’s directory, as the Book’s mdBook sources lay it out (e.g. "reference"), used to resolve relative links. A link that resolves into reference/ is a Reference route (web presence slice 5); any other, a Book route.