From 3c99aea53402c5504059f8fdbca5c05f0021c520 Mon Sep 17 00:00:00 2001 From: k-nasa Date: Tue, 25 Dec 2018 21:10:07 +0900 Subject: [PATCH 1/3] Fix duplication with Cargo.toml --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index dec89cf346..485560f7e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,15 +20,14 @@ use std::path::{Path, PathBuf}; mod cmd; -const NAME: &str = "mdBook"; const VERSION: &str = concat!("v", crate_version!()); fn main() { init_logger(); // Create a list of valid arguments and sub-commands - let app = App::new(NAME) - .about("Creates a book from markdown files") + let app = App::new(crate_name!()) + .about(crate_description!()) .author("Mathieu David ") .version(VERSION) .setting(AppSettings::GlobalVersion) From 181facbebdfc0656dd0a464ee2699e787c004653 Mon Sep 17 00:00:00 2001 From: k-nasa Date: Tue, 25 Dec 2018 21:10:45 +0900 Subject: [PATCH 2/3] Delete extra space --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 295014f132..c3c4b0256a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "mdbook" version = "0.2.3-alpha.0" authors = [ - "Mathieu David ", + "Mathieu David ", "Michael-F-Bryan ", "Matt Ickstadt " ] From ecd0b911fde9518ee640c3a6580d30da25478bf7 Mon Sep 17 00:00:00 2001 From: nasa Date: Sun, 20 Jan 2019 15:12:51 +0900 Subject: [PATCH 3/3] fix: Fix Cargo.toml description --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c3c4b0256a..28f7414c50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ authors = [ "Michael-F-Bryan ", "Matt Ickstadt " ] -description = "Create books from markdown files" +description = "Creates a book from markdown files" documentation = "http://rust-lang-nursery.github.io/mdBook/index.html" repository = "https://github.com/rust-lang-nursery/mdBook" keywords = ["book", "gitbook", "rustbook", "markdown"]