Skip to content

added readme to guide #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Rust-edu
[![Build Status](https://github.com/rust-edu/rust-edu.github.io/actions/workflows/main.yml/badge.svg)](https://github.com/rust-edu/rust-edu.github.io/actions)
[![Zulip](https://img.shields.io/badge/chat-on%20Zulip-9146FF?logo=zulip&logoColor=white)](https://rust-edu.zulip.cs.pdx.edu/)


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.

## 🚀 Setting Up on Local Machine
To contribute or run this website locally, follow the steps below.

### ✅ Requirements
- [Rust](https://www.rust-lang.org/tools/install) installed
- Zola (`cargo install zola`) installed

## 📦 Installation Steps
### 1. Clone the Repository
```bash
git clone https://github.com/rust-edu/rust-edu.github.io.git
cd rust-edu.github.io
```

### 2. Install Zola
Install Zola using Cargo:
``` bash
cargo install zola
```
If that fails, download a binary from [Zola Releases](https://github.com/getzola/zola/releases).

### 3. Initialize Submodules
To load the external CSS themes (Bulma & Bulmaswatch):
```bash
git submodule update --init --recursive
```
## 💻 Run Locally
Start a local development server:
```bash
zola serve
```
Your site will be live at: http://127.0.0.1:1111

Zola will auto-reload when changes are made.

## 🐛 Common Issues
### ❌ `Can't find stylesheet to import` error?
Ensure submodules are initialized:
```bash
git submodule update --init --recursive
```
### ❌ `Variable config.extra.navbar not found`?
Ensure your `config.toml` includes a `[extra]` section:
```toml
[extra]
navbar = [
{ name = "Home", url = "/" },
{ name = "News", url = "/news" },,
{ name = "Resources", url = "/resources" }
]

```
## 📬 Get Involved
Interested in contributing or learning more?
* 🌐 Visit: [https://rust-edu.org/](https://rust-edu.org/)
* 📧 Email: [[email protected]](mailto:[email protected])
Let’s build the future of Rust education together!
Loading