From 332e52af1883bec57e2a6d1f1291e434f18cd0c9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 3 May 2026 00:43:43 +0800 Subject: Replace docs README with static documentation pages --- dev_tools/src/bin/refresh-docs.rs | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'dev_tools/src') 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, -- cgit