Memoir_libShared library for the Memoir generator and dev server: filesystem helpers plus RSS-feed loading and rendering. The processed-page model is the single canonical Content_types.content_page.
type config = {site_title : string;site_description : string;base_url : string;output_dir : string;content_dir : string;}Site configuration: RSS metadata plus the build paths both executables share.
val default_config : configThe single canonical site configuration used by the generator and server.
Binary-safe write, creating parent directories as needed; raises Failure on IO error.
val load_rss_pages : content_dir:string -> Content_types.content_page listLoad blog and journal posts (excluding index.md) as content pages, with each page's url_path set to its section URL. Ordering/limiting is left to generate_rss_feed.
val generate_rss_feed : Content_types.content_page list -> config -> stringRender an RSS 2.0 feed: drop drafts, sort newest-first, keep the 20 most recent items.