Added README.md

This commit is contained in:
Mathieu David 2015-07-08 00:04:28 +02:00
parent 508f3068f0
commit 39c0344f9a
2 changed files with 9 additions and 1 deletions

7
README.md Normal file
View File

@ -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)

View File

@ -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 {