47 lines
767 B
Markdown
47 lines
767 B
Markdown
# Getting Started
|
|
|
|
This chapter will guide you through the basics of creating content with mdBook.
|
|
|
|
## Creating Your First Chapter
|
|
|
|
To create a new chapter:
|
|
|
|
1. Create a markdown file in the `src` directory
|
|
2. Add an entry in `SUMMARY.md` to include it in the navigation
|
|
3. Run `mdbook build` to generate the HTML
|
|
|
|
## Basic Markdown Syntax
|
|
|
|
You can use standard markdown syntax in your chapters:
|
|
|
|
```markdown
|
|
# 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:
|
|
|
|
```rust
|
|
fn main() {
|
|
println!("Hello, world!");
|
|
}
|
|
```
|
|
|
|
```javascript
|
|
console.log("Hello, JavaScript!");
|
|
```
|
|
|
|
```python
|
|
print("Hello, Python!")
|
|
``` |