//! Write the "email you cannot turn off" guide page from `email::OperationalKind`. //! //! The docs tree is static markdown, so the page is a checked-in artifact rather //! than something rendered per request. `email::class::tests:: //! committed_doc_matches_generated` fails when this output is stale, so the //! regeneration step is: //! //! ```sh //! cargo run --bin export-operational-mail-doc //! ``` use std::io::Write as _; fn main() -> std::io::Result<()> { let doc = makenotwork::email::operational_mail_doc(); let path = concat!( env!("CARGO_MANIFEST_DIR"), "/site-docs/public/guide/email-you-cannot-turn-off.md" ); let mut file = std::fs::File::create(path)?; file.write_all(doc.as_bytes())?; println!("wrote {path}"); Ok(()) }