38 lines
936 B
Markdown
38 lines
936 B
Markdown
# Example Book
|
|
|
|
This is a sample book to demonstrate mdbook functionality.
|
|
|
|
## Chapter 1: Introduction
|
|
|
|
Welcome to this example book. This demonstrates the capabilities of mdbook for generating static documentation sites.
|
|
|
|
### Features of mdbook
|
|
|
|
- Write in Markdown
|
|
- Automatically generated table of contents
|
|
- Syntax highlighting for code blocks
|
|
- Cross-references between chapters
|
|
- Support for themes and custom CSS
|
|
|
|
```rust
|
|
fn main() {
|
|
println!("Hello, mdbook!");
|
|
}
|
|
```
|
|
|
|
## Chapter 2: Advanced Features
|
|
|
|
Mdbook supports several advanced features that enhance documentation:
|
|
|
|
- Internal link: [Introduction](./ch1.md)
|
|
- External link: [Rust Homepage](https://www.rust-lang.org)
|
|
- Images and diagrams
|
|
- Math formulas using KaTeX
|
|
|
|
$$
|
|
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
|
|
$$
|
|
|
|
### Summary
|
|
|
|
This example demonstrates mdbook's core functionality. In a real project, you would have multiple chapters with detailed content. |