aboutsummaryrefslogtreecommitdiffstats
path: root/generate/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--generate/src/main.rs (renamed from build.rs)10
1 files changed, 8 insertions, 2 deletions
diff --git a/build.rs b/generate/src/main.rs
index 658cb0a..9f0d14b 100644
--- a/build.rs
+++ b/generate/src/main.rs
@@ -1,3 +1,9 @@
+// To regenerate, run the following from the repository root:
+//
+// ```sh
+// cargo run --manifest-path generate/Cargo.toml
+// ```
+
use regex::Regex;
use std::fs;
@@ -63,7 +69,7 @@ async fn commonmark() {
let doc = format!(
"//! `CommonMark` test suite.
-// > 👉 **Important**: this module is generated by `build.rs`.
+// > 👉 **Important**: this module is generated by `generate/src/main.rs`.
// > It is generate from the latest CommonMark website.
use markdown::{{to_html_with_options, CompileOptions, Options}};
@@ -130,7 +136,7 @@ async fn punctuation() {
/// List of characters that are considered punctuation.
///
-/// > 👉 **Important**: this module is generated by `build.rs`.
+/// > 👉 **Important**: this module is generated by `generate/src/main.rs`.
/// > It is generate from the latest Unicode data.
///
/// Rust does not contain an `is_punctuation` method on `char`, while it does