From 39c0344f9a1e7a7736f67826f6c79b0180d2e1fc Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Wed, 8 Jul 2015 00:04:28 +0200 Subject: [PATCH] Added README.md --- README.md | 7 +++++++ src/mdbook.rs | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..b7fc414b --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# mdBook + +Personal implementation of Gitbook in Rust + +**Work in Progress...** + +To see what is already implemented and what has to be done next, check [this issue](#1) diff --git a/src/mdbook.rs b/src/mdbook.rs index aa67a215..de19af7c 100644 --- a/src/mdbook.rs +++ b/src/mdbook.rs @@ -2,7 +2,6 @@ use std::path::PathBuf; use std::fs::{self, File, metadata}; use std::io::Write; use std::io::{Error, ErrorKind}; -//use std::error::Error; pub struct MDBook { dest: PathBuf, @@ -26,6 +25,8 @@ impl MDBook { _ => {} } + // Logic problem: When self.dest is absolute, the directory given + // as parameter is never used... let dest = if self.dest.is_relative() { dir.join(&self.dest) } else {