mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-05 02:29:32 +00:00
Added README.md
This commit is contained in:
parent
508f3068f0
commit
39c0344f9a
2 changed files with 9 additions and 1 deletions
7
README.md
Normal file
7
README.md
Normal 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)
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue