You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-19Lines changed: 23 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,23 +2,22 @@
2
2
3
3
Personal implementation of Gitbook in Rust
4
4
5
-
**This is still a work in progress...**
5
+
**This project is still in it's early days.**
6
6
For more information about what is left on my to-do list, check the issue tracker
7
7
8
-
An example of a "book" generated by mdBook can be found here: http://azerupi.github.io/mdBook/
9
8
10
-
## Contributions
9
+
## Example
11
10
12
-
Contributions are highly apreciated. Here are some ideas:
11
+
To have an idea of what a rendered book looks like,take a look at the [**Documentation**](http://azerupi.github.io/mdBook/). It is rendered by the latest version of mdBook.
13
12
14
-
-**Create new renderers**, at the moment I have only created a renderer that uses handlebars, pulldown-cmark and renders to html. But you could create a renderer that uses another template engine, markdown parser or even outputs to another format like pdf.
15
-
-**Add tests** I have not much experience in writing tests, all help to write meaningful tests is thus very welcome
16
-
-**write documentation** documentation can always be improved
17
-
-**Smaller tasks** I try to add a lot of the remaining tasks on the issue tracker with the label: [`Enhancement`](https://github.com/azerupi/mdBook/issues?q=is%3Aopen+is%3Aissue+label%3AEnhancement). Just pick one that looks interesting. The majority of the tasks are small enough to be tackled by people who are unfamiliar with the project.
13
+
## Structure
18
14
19
-
If you have an idea for improvement, create a new issue. Or a pull request if you can :)
15
+
There are two main parts of this project:
16
+
17
+
-**The library:** The crate is structured so that all the code that actually does something is part of the library. You could therefore easily hook mdbook into your existing project, extend it's functionality by wrapping it in some other code, etc.
18
+
-**The binary:** Is just a wrapper around the library functionality providing a nice and easy command line interface.
20
19
21
-
##cli tool
20
+
### Command line interface
22
21
23
22
#### init
24
23
@@ -33,23 +32,28 @@ book-test/
33
32
```
34
33
`book` and `src` are both directories. `src` contains the markdown files that will be used to render the ouput to the `book` directory.
35
34
36
-
You can also pass a directory to `mdbook init` to use instead of the current directory:
37
-
```
38
-
mdbook init path/to/my/book
39
-
```
40
-
41
-
<sup>**Not implemented yet:** using `--theme` flag will create a theme folder with the default theme in `src` so that you can customize it.</sup>
35
+
Please, take a look at the [**Documentation**](http://azerupi.github.io/mdBook/cli/init.html) for more information.
42
36
43
37
#### build
44
38
45
-
Use `mdbook build` in the directory to render the book. You can also give a path as argument to use instead of the current directory.
39
+
Use `mdbook build` in the directory to render the book. You can find more information in the [**Documentation**](http://azerupi.github.io/mdBook/cli/build.html)
46
40
41
+
### As a library
47
42
48
-
## lib
43
+
Aside from the command line interface, this crate can also be used as a library. This means that you could integrate it in an existing project, like a webapp for example. Since the command line interface is just a wrapper around the library functionality, when you use this crate as a library you have full access to all the functionality of the command line interface with and easy to use API and more!
49
44
50
-
Aside the command-line tool, this crate can also be used as a library.
45
+
See the [**Documentation**](http://azerupi.github.io/mdBook/lib/lib.html) and the [**API docs**](http://azerupi.github.io/mdBook/mdbook/index.html) for more information.
51
46
47
+
## Contributions
52
48
49
+
Contributions are highly apreciated. Here are some ideas:
50
+
51
+
-**Create new renderers**, at the moment I have only created a renderer that uses [handlebars](https://github.com/sunng87/handlebars-rust), [pulldown-cmark](https://github.com/google/pulldown-cmark) and renders to html. But you could create a renderer that uses another template engine, markdown parser or even outputs to another format like pdf.
52
+
-**Add tests** I have not much experience in writing tests, all help to write meaningful tests is thus very welcome
53
+
-**write documentation** documentation can always be improved
54
+
-**Smaller tasks** I try to add a lot of the remaining tasks on the issue tracker with the label: [`Enhancement`](https://github.com/azerupi/mdBook/issues?q=is%3Aopen+is%3Aissue+label%3AEnhancement). Just pick one that looks interesting. The majority of the tasks are small enough to be tackled by people who are unfamiliar with the project.
55
+
56
+
If you have an idea for improvement, create a new issue. Or a pull request if you can :)
0 commit comments