Skip to content

Commit

Permalink
book: dfix deleted highlight.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 18, 2024
1 parent 654104c commit 29b9397
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions book-lints/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,9 @@ fn highlight() {
});

let highlight = std::fs::read_to_string("book-lints/highlight.js").unwrap();
let existing = std::fs::read_to_string("book/highlight.js").unwrap();

let highlight = highlight.replace("$FLOW$", &format!("'{}'", flow.join("','")));
let highlight = highlight.replace("$COMMANDS$", &format!("'{}'", commands.join("','")));

if highlight == existing {
return;
}

std::fs::write("book/highlight.js", highlight).unwrap();
}

0 comments on commit 29b9397

Please sign in to comment.