max / makenotwork
| 1 | //! Write the "email you cannot turn off" guide page from `email::OperationalKind`. |
| 2 | //! |
| 3 | //! The docs tree is static markdown, so the page is a checked-in artifact rather |
| 4 | //! than something rendered per request. `email::class::tests:: |
| 5 | //! committed_doc_matches_generated` fails when this output is stale, so the |
| 6 | //! regeneration step is: |
| 7 | //! |
| 8 | //! ```sh |
| 9 | //! cargo run --bin export-operational-mail-doc |
| 10 | //! ``` |
| 11 | |
| 12 | use Write as _; |
| 13 | |
| 14 | |
| 15 | let doc = operational_mail_doc; |
| 16 | let path = concat! |
| 17 | env!, |
| 18 | "/site-docs/public/guide/email-you-cannot-turn-off.md" |
| 19 | ; |
| 20 | let mut file = create?; |
| 21 | file.write_all?; |
| 22 | println!; |
| 23 | Ok |
| 24 | |
| 25 |