Skip to content

Commit e3661cc

Browse files
authored
Merge pull request #12 from martcpp/main
added readme to guide
2 parents 471f270 + 4e80550 commit e3661cc

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Rust-edu
2+
[![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)
3+
[![Zulip](https://img.shields.io/badge/chat-on%20Zulip-9146FF?logo=zulip&logoColor=white)](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+
* 📧 Email: [[email protected]](mailto:[email protected])
64+
Let’s build the future of Rust education together!

0 commit comments

Comments
 (0)