diff --git a/book-example/book/README.html b/book-example/book/README.html new file mode 100644 index 00000000..34e918e4 --- /dev/null +++ b/book-example/book/README.html @@ -0,0 +1,44 @@ + + +
+ +mdBook is a command line tool and Rust library to create books using Markdown. +It's very similar to Gitbook but written in Rust.
+This book serves as an example of the output of mdBook and as the docs at the same time.
+mdBook is free and open source, you can find the source code on Github. +Issues and feature requests can be posted on the Github Issue tracker.
+mdBook, all the code and this book, are released under the Mozilla Public License v2.0
+ +The build command is used to render your book:
+mdbook build
+
+It will try to parse your SUMMARY.md
file to understand the structure of your book
+and fetch the corresponding files.
The rendered ouput will maintain the same directory structure as the source for +convenience. Large books will therefore remain structured when rendered.
+Like init, the build command can take a directory as argument to use instead of the +current working directory.
+mdbook build path/to/book
+
+note: make sure to run the build command in the root directory and not in the src
directory
mdBook can be used either as a command line tool or a Rust library. +Let's focus on the command line tool capabilities first.
+ +The init command, used like this:
+mdbook init
+
+Will create a couple of files and directories in the working directory so that you can +spend more time writing your book and less setting it up.
+The files set up for you are the following:
+book-test/
+├── book
+└── src
+ ├── chapter_1.md
+ └── SUMMARY.md
+
+The src
directory is were you write your book in markdown. It contains all the source files,
+configuration files, etc.
The book
directory is where your book is rendered. All the output is ready to be uploaded
+to a serer to be seen by the internet.
The SUMMARY.md
file is the most important file, it's the skeleton of your book.
+It's so important that it has it's own chapter.
When using the init command, you can also specify a directory, instead of using the current directory, +by appending a path to the command:
+mdbook init path/to/book
+
+In the future I would like mdBook init
to be able to:
src
directory in a theme
directory when using a flag like --theme
.
+The user could then tweak the theme to his needs.SUMMARY.md
. If the user has already created a SUMMARY.md
file and added some entries but did
+not create the corresponding files, init command should create the files for him.mdBook is a command line tool and Rust library to create books using Markdown. +It's very similar to Gitbook but written in Rust.
+This book serves as an example of the output of mdBook and as the docs at the same time.
+mdBook is free and open source, you can find the source code on Github. +Issues and feature requests can be posted on the Github Issue tracker.
+mdBook, all the code and this book, are released under the Mozilla Public License v2.0
+ +