# WATGPU web documentation

## Setup

#### GPU layout

There is a cron job running every 24 hours on `watgpu-300` that get the GPU layout of all the nodes and write them in `src/gpu_layout.md`.

The script in `~/src/scripts/gpu_update.sh` should be placed in `watgpu-300.cs.uwaterloo.ca/root/scripts/`.


## Usage

#### Compile 
Compile website:
```sh
cd /var/www/html
mdbook build
```

#### MOTD

The MOTD is located at `/var/www/html/src/source/motd.html`. The website need to be recompiled after a modification.
It is possible to change the color of the note (Mostly green for OK, orange for issue, red for down).
