diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-29 21:45:23 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-29 21:45:23 +0800 |
| commit | 6ce49469abe892e29d8a79e3e089c93b4f475583 (patch) | |
| tree | 716dfb8bd8f71d99394ce05b2b3199ca7182829e /dev_tools/src | |
| parent | b44c8864c1dbcb36b4522ad7fd7a8e9c3f961018 (diff) | |
Remove duplicate README and replace with symlink
Diffstat (limited to 'dev_tools/src')
| -rw-r--r-- | dev_tools/src/bin/refresh-docs.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/dev_tools/src/bin/refresh-docs.rs b/dev_tools/src/bin/refresh-docs.rs index 23619dc..ffa80a2 100644 --- a/dev_tools/src/bin/refresh-docs.rs +++ b/dev_tools/src/bin/refresh-docs.rs @@ -10,20 +10,9 @@ const OUTPUT_PATH: &str = "./mingling/src/example_docs.rs"; const TEMPLATE_CONTENT: &str = include_str!("../../../mingling/src/example_docs.rs.tmpl"); fn main() { - copy_readme(); gen_example_doc_module(); } -fn copy_readme() { - let repo_root = find_git_repo().unwrap(); - let src = repo_root.join("README.md"); - let dst = repo_root.join("./mingling/README.md"); - if src.exists() { - std::fs::copy(&src, &dst).unwrap(); - println_cargo_style!("Copied: copied README.md to mingling/README.md"); - } -} - fn gen_example_doc_module() { let mut template = Template::from(TEMPLATE_CONTENT); let repo_root = find_git_repo().unwrap(); |
