Skip to content

Commit 143c3ae

Browse files
authored
Merge pull request #44 from OpenRailAssociation/readme
Add README
2 parents e8768d1 + 7b63500 commit 143c3ae

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Hack4Rail Website
2+
3+
Source code for [hack4rail.org](https://hack4rail.org), the website for the international hackathon for innovation in the railway sector.
4+
5+
## Prerequisites
6+
7+
- [Hugo](https://gohugo.io/) (extended version, v0.154.2+)
8+
9+
## Setup
10+
11+
Clone the repository with submodules:
12+
13+
```sh
14+
git clone --recurse-submodules https://github.com/OpenRailAssociation/hack4rail-website.git
15+
cd hack4rail-website
16+
```
17+
18+
If you already cloned without submodules:
19+
20+
```sh
21+
git submodule update --init --recursive
22+
```
23+
24+
## Development
25+
26+
Run the local development server:
27+
28+
```sh
29+
hugo server
30+
```
31+
32+
Build the site:
33+
34+
```sh
35+
hugo
36+
```
37+
38+
The output is generated in the `public/` directory.
39+
40+
## Structure
41+
42+
- `content/` — Page content in Markdown
43+
- `challenges/` — Hackathon challenges, organized by track (`track-1/` through `track-6/`)
44+
- `organization/` — Participation, travel, and FAQ pages
45+
- `config.toml` — Hugo site configuration
46+
- `data/` — Data files (carousel, features)
47+
- `static/img/` — Static images
48+
- `themes/` — Hugo themes (git submodules):
49+
- `hack4rail` — Main site theme
50+
- `hugomod-images` — Image processing ([hugomods/images](https://github.com/hugomods/images))
51+
- `hugo-cloak-email` — Email address obfuscation ([martignoni/hugo-cloak-email](https://github.com/martignoni/hugo-cloak-email))
52+
53+
## Deployment
54+
55+
The site is built and deployed automatically via GitHub Actions on push to `main`. Pull requests generate preview deployments.
56+
57+
## License
58+
59+
CC-BY-SA 4.0 — see [LICENSE](LICENSE).

0 commit comments

Comments
 (0)