How to add a new device

Adding your device

Prepare the required files

There are a few files which need to be there to have a device on the wiki. In order to get them, navigate to melles1991/melles1991.github.io/ and run:

./scripts/generate_device.sh your_device

Obviously replace your_device with the codename of your device

Populating the YAML

The sample template has been copied to melles1991/melles1991.github.io/_data/devices/your_device.yml. Update the values to match your device. An explanation of some of the options is below:

Adding the device’s image

Find a reasonably high-quality image of your device, and add it to images/devices/<image>.png. The filename must match the entry in your YAML file. Also make sure the background of the image is transparent.

Testing it works

Start the wiki on your local Jekyll server, and navigate to the devices list. Your device should be there. Click on it, and check that the info/install/build pages all seem correct.

Now run the validation:

bundle install
ruby ./test/validate.rb

If the script doesn’t give you an output, all the validated fields have a proper format. Otherwise, read the messages carefully to see which fields have to be corrected.