Skip to content
Snippets Groups Projects
README.md 1.04 KiB
Newer Older
Sylvain Arreckx's avatar
Sylvain Arreckx committed
# Git Training

## Dependencies

- node
- yeoman
- bower
- grunt

## Installation

- Update your system
```bash
Sylvain Arreckx's avatar
Sylvain Arreckx committed
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential openssl libssl-dev curl
```

- Install Node
```bash
Sylvain Arreckx's avatar
Sylvain Arreckx committed
sudo apt install npm
npm install --global npm@latest
```

- Under Unix, create a symbolic link for `node`
```bash
sudo ln -s /usr/bin/nodejs /usr/bin/node
```

Sylvain Arreckx's avatar
Sylvain Arreckx committed
- Install Yeoman, bower and grunt
```bash
sudo npm install --global yo
Laurent Heirendt's avatar
Laurent Heirendt committed
sudo npm install -g generator-reveal
sudo npm install -g grunt-cli
sudo npm install -g bower
Sylvain Arreckx's avatar
Sylvain Arreckx committed
```

- Move to the cloned repository and install other dependencies
```bash
Laurent Heirendt's avatar
Laurent Heirendt committed
sudo npm install
Sylvain Arreckx's avatar
Sylvain Arreckx committed
```

## Serve
```bash
Sylvain Arreckx's avatar
Sylvain Arreckx committed
grunt
```

## Adding a new slide:

```bash
$ yo reveal:slide --markdown --attributes --notes "Slide Title"
```

## Publish to Github Pages

```bash
grunt dist
```
Sylvain Arreckx's avatar
Sylvain Arreckx committed
Copy the content of the `dist` folder into the `gh-pages` branch of `https://github.com/uni-lu/slides`

Some hyperlinks need to be fixed. To do so edit the `index.html` file and remove all `../` before images location.