-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# mdBook | ||
|
||
**mdBook** is a command line tool and Rust library to create books using Markdown. It's very similar to Gitbook but written in [Rust](http://www.rust-lang.org). | ||
**mdBook** is a command line tool and Rust crate to create books using Markdown files. It's very similar to Gitbook but written in [Rust](http://www.rust-lang.org). | ||
|
||
This book serves as an example of the output of mdBook and as the docs at the same time. | ||
What you are reading serves as an example of the output of mdBook and at the same time as high-level docs. | ||
|
||
mdBook is free and open source, you can find the source code on [Github](https://github.com/azerupi/mdBook). Issues and feature requests can be posted on the [Github Issue tracker](https://github.com/azerupi/mdBook/issues). | ||
|
||
## API docs | ||
|
||
Alongside this book you can also read the [API docs](mdbook/index.html) generated by Rustdoc if you would like | ||
to use mdBook as a crate or write a new renderer. | ||
to use mdBook as a crate or write a new renderer and need a more low-level overview. | ||
|
||
## License | ||
|
||
mdBook, all the code and this book, are released under the [Mozilla Public License v2.0](https://www.mozilla.org/MPL/2.0/) | ||
mdBook, all the source code, is released under the [Mozilla Public License v2.0](https://www.mozilla.org/MPL/2.0/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
# Command Line Tool | ||
|
||
mdBook can be used either as a command line tool or a Rust library. | ||
mdBook can be used either as a command line tool or a [Rust crate](https://crates.io/crates/mdbook). | ||
Let's focus on the command line tool capabilities first. | ||
|
||
## Install | ||
|
||
At the moment, the only way to install mdBook is by downloading the source code from Github and building it yourself. Fortunately | ||
this is made very easy with Cargo. | ||
|
||
If you haven't already, you should begin by installing [Rust](https://www.rust-lang.org/install.html) and [Git](https://git-scm.com/downloads) | ||
|
||
Open your terminal and navigate to the directory of you choice. We need to clone the git repository and then build it with Cargo. | ||
|
||
``` | ||
git clone --depth=1 https://github.com/azerupi/mdBook.git | ||
cd mdBook | ||
cargo build --release | ||
``` | ||
|
||
The executable `mdbook` will be in the `./target/release` folder, this should be added to the path. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters