Skip to content

sck-shr-wlb/mdbook101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

mdBook

Installation

  • Mac
brew install mdbook

Test installation

mdbook

Creating a book

mdbook init my-book
Do you want a .gitignore to be created? (y/n)
y
What title would you like to give the book?
My Book
2022-02-01 09:35:54 [INFO] (mdbook::book::init): Creating a new book with stub content

Rendering a book

cd my-book

Serve a book

mdbook serve
## start and open web browser
mdbook serve --open

mdBook Settings

A book settings

book.toml

[book]
authors = ["your name"]
language = "en"
multilingual = false
src = "src"
title = "My Book"

A book layout

SUMMARY.md: A list of all chapters in the book. src/SUMMARY.md

# Summary

- [Chapter 1](./chapter_1.md)

Create and Edit Content

Create new chapter

Append the following line to SUMMARY.md

- [Chapter 2](./chapter_2.md)
# Summary

- [Chapter 1](./chapter_1.md)
- [Chapter 2](./chapter_2.md)

Refresh the web browser

Edit content

Open chapter_1.md with your text editor

  1. Header

    Append the following line to chapter_1.md

    ## Header
  2. New line

    Append the following line to chapter_1.md

    first line
    second line

    first line[enter two spaces]

  3. Unordered list

    Append the following line to chapter_1.md

    - first bullet
    - second bullet
  4. Ordered list

    Append the following line to chapter_1.md

    1. first item
    2. second item
  5. Code

    Append the following line to chapter_1.md

    `code`
  6. Bold text

    Append the following line to chapter_1.md

    **bold text**
  7. Image

    Append the following line to chapter_1.md

    ![markdown](https://alternativetoapp.com/wp-content/uploads/2020/05/mdbook_158088.png)
  8. Link

    Append the following line to chapter_1.md

    [Markdown Cheat Sheet](https://www.markdownguide.org/cheat-sheet/)

e.g. chapter_1.md

# Chapter 1

## Header

first line  
second line

- first bullet
- second bullet

1. first item
2. second item

`code`

**bold text**

![markdown](https://alternativetoapp.com/wp-content/uploads/2020/05/mdbook_158088.png)

[Markdown Cheat Sheet](https://www.markdownguide.org/cheat-sheet/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published