aboutsummaryrefslogtreecommitdiff
path: root/dev_tools/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'dev_tools/src/bin')
-rw-r--r--dev_tools/src/bin/refresh-docs.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/dev_tools/src/bin/refresh-docs.rs b/dev_tools/src/bin/refresh-docs.rs
index c94a948..32821ed 100644
--- a/dev_tools/src/bin/refresh-docs.rs
+++ b/dev_tools/src/bin/refresh-docs.rs
@@ -6,9 +6,6 @@ use just_template::{Template, tmpl};
const EXAMPLE_ROOT: &str = "./examples/";
const OUTPUT_PATH: &str = "./mingling/src/example_docs.rs";
-const DOCS_README_FILE: &str = "./docs/README.md";
-
-const README_CONTENT: &str = include_str!("../../../README.md");
const TEMPLATE_CONTENT: &str = include_str!("../../../mingling/src/example_docs.rs.tmpl");
fn main() {
@@ -16,10 +13,6 @@ fn main() {
println!("Refreshing Examples");
gen_example_doc_module();
}
- {
- println!("Refreshing README.md");
- gen_docs_readme();
- }
}
fn gen_example_doc_module() {
@@ -63,14 +56,6 @@ fn gen_example_doc_module() {
std::fs::write(repo_root.join(OUTPUT_PATH), template_str).unwrap();
}
-fn gen_docs_readme() {
- let repo_root = find_git_repo().unwrap();
-
- // Convert relative addresses in the documentation
- let content = README_CONTENT.replace("docs/res/", "res/");
- std::fs::write(repo_root.join(DOCS_README_FILE), content).unwrap();
-}
-
struct ExampleContent {
name: String,
header: String,