Usage
This page explains how to work with the GFX906 Wiki using mdBook. It covers building the book locally, previewing it, and adding new content.
Prerequisites
- Git – to clone the repository.
- Rust (stable) – required for
cargoandmdbook. - mdBook – install with:
cargo install mdbook
Building the Book
From the repository root:
mdbook build wiki-gfx906
The generated static site will be placed in wiki-gfx906/book/.
Previewing Locally
Run a local development server that watches for changes:
mdbook serve wiki-gfx906
Open http://localhost:3000 in your browser. The server automatically reloads when you edit markdown files.
Adding New Content
-
Create a markdown file in
wiki-gfx906/src/, e.g.:touch wiki-gfx906/src/advanced_topics.md -
Edit
SUMMARY.mdto include the new file. For example, add:- [Advanced Topics](./advanced_topics.md) -
Write your content in the new file using standard Markdown syntax.
-
Rebuild or serve the book to see the changes.
Common Patterns
Code Blocks
fn main() { println!("Hello, mdBook!"); }
Inline Code
Use backticks for inline code.
Links
- Relative link to another chapter:
[Getting Started](./getting_started.md) - External link: https://github.com/
Contributing
If you want to contribute improvements:
- Fork the repository.
- Create a feature branch.
- Make your changes.
- Open a Pull Request targeting
main.
All contributions are welcome. See the Contributing page for detailed guidelines.
Deploying to GitHub Pages
The repository includes a GitHub Actions workflow (.github/workflows/mdbook.yml) that automatically:
- Installs
mdbook. - Builds the book.
- Deploys the
book/directory to GitHub Pages on every push tomain.
No manual steps are required after the initial setup.
Enjoy writing and reading the GFX906 documentation! 🎉