767 B
767 B
Getting Started
This chapter will guide you through the basics of creating content with mdBook.
Creating Your First Chapter
To create a new chapter:
- Create a markdown file in the
srcdirectory - Add an entry in
SUMMARY.mdto include it in the navigation - Run
mdbook buildto generate the HTML
Basic Markdown Syntax
You can use standard markdown syntax in your chapters:
# Heading 1
## Heading 2
### Heading 3
- List item 1
- List item 2
- List item 3
[Link text](path/to/page.md)

Code Blocks
Code blocks get syntax highlighting:
fn main() {
println!("Hello, world!");
}
console.log("Hello, JavaScript!");
print("Hello, Python!")