# Advent Calendar Generator

## How to build

When you are setting it up, you'll want to run `build-development.bat`, this can
be done either by command line or just double clicking it. Once that's run you
will be able to open `dist/index.html` in your browser and see the result.

When you've got all your days entered in and images added, you should run
`build-release.bat`. Once that's done you should upload the contents of the
`dist/` directory to your web hosting. When built in release mode you won't be
able to access the days until the specified day, this prevents any cheeky
peeking!

## Setting up the Days

There's two parts to each day, an image and a line of text.

### Images

To add an image for a day, put it in `dist/images` and you'll need to name it
after the date you want it shown, eg. `1.jpg` or `25.jpg`. Please note it must
be a jpg or you may have issues. When you generate the build a thumbnail is
automatically created at 30% of the size of the image.

### Text

Open the `days.txt` file and you'll see 25 blank lines. Each line is for a
different day, your text editor should hopefully have line numbers to make it
easy to not make a mistake.

The text can be as long as you want and can be HTML, but note that it will be
put inside a `<p>` tag and that will impose some limitations.
