|
| 1 | +# Rust-edu |
| 2 | +[](https://github.com/rust-edu/rust-edu.github.io/actions) |
| 3 | +[](https://rust-edu.zulip.cs.pdx.edu/) |
| 4 | + |
| 5 | + |
| 6 | +Rust Edu is an organization dedicated to supporting Rust education in the academic environment. This website is built using [Zola](https://www.getzola.org/), a blazing-fast static site generator in Rust. |
| 7 | + |
| 8 | +## 🚀 Setting Up on Local Machine |
| 9 | +To contribute or run this website locally, follow the steps below. |
| 10 | + |
| 11 | +### ✅ Requirements |
| 12 | +- [Rust](https://www.rust-lang.org/tools/install) installed |
| 13 | +- Zola (`cargo install zola`) installed |
| 14 | + |
| 15 | +## 📦 Installation Steps |
| 16 | +### 1. Clone the Repository |
| 17 | +```bash |
| 18 | +git clone https://github.com/rust-edu/rust-edu.github.io.git |
| 19 | +cd rust-edu.github.io |
| 20 | +``` |
| 21 | + |
| 22 | +### 2. Install Zola |
| 23 | +Install Zola using Cargo: |
| 24 | +``` bash |
| 25 | +cargo install zola |
| 26 | +``` |
| 27 | +If that fails, download a binary from [Zola Releases](https://github.com/getzola/zola/releases). |
| 28 | + |
| 29 | +### 3. Initialize Submodules |
| 30 | +To load the external CSS themes (Bulma & Bulmaswatch): |
| 31 | +```bash |
| 32 | +git submodule update --init --recursive |
| 33 | +``` |
| 34 | +## 💻 Run Locally |
| 35 | +Start a local development server: |
| 36 | +```bash |
| 37 | +zola serve |
| 38 | +``` |
| 39 | +Your site will be live at: http://127.0.0.1:1111 |
| 40 | + |
| 41 | +Zola will auto-reload when changes are made. |
| 42 | + |
| 43 | +## 🐛 Common Issues |
| 44 | +### ❌ `Can't find stylesheet to import` error? |
| 45 | +Ensure submodules are initialized: |
| 46 | +```bash |
| 47 | +git submodule update --init --recursive |
| 48 | +``` |
| 49 | +### ❌ `Variable config.extra.navbar not found`? |
| 50 | +Ensure your `config.toml` includes a `[extra]` section: |
| 51 | +```toml |
| 52 | +[extra] |
| 53 | +navbar = [ |
| 54 | + { name = "Home", url = "/" }, |
| 55 | + { name = "News", url = "/news" },, |
| 56 | + { name = "Resources", url = "/resources" } |
| 57 | +] |
| 58 | + |
| 59 | +``` |
| 60 | +## 📬 Get Involved |
| 61 | +Interested in contributing or learning more? |
| 62 | +* 🌐 Visit: [https://rust-edu.org/](https://rust-edu.org/) |
| 63 | + |
| 64 | +Let’s build the future of Rust education together! |
0 commit comments