To add a new device create a new markdown (
.md) file named after your device under the
_devicesdirectory in the GitHub Repository. Please avoid using underscores in the filenames and use hypens instead as this makes for easier to understand the URLs generated when the site is built.
You will need to create a fork of the repository and create a new branch for your changes.
Once you have written your file commit your changes and raise a pull request on GitHub. A guide for creating a pull request from a fork can be found here if you are unsure.
.md file created needs to contain front matter in order for the page to be generated. Details of the front matter required (and optional) is detailed below:
--- title: Sonoff S20 date-published: 2019-10-11 type: plug standard: uk, us ---
| ||Device Title||Yes|
| ||Date Published||Formatting: ||Yes|
| ||Type of Device|| ||Yes|
| ||Electrical standard country|| ||Yes|
To add images to your files do the following:
- Create a folder with the same name as your device
/assets/imagesand add your images to this folder.
- Add the images to your fold using the appropriate markdown syntax:
![alt text](/assets/images/your-folder-name/your-image.jpg "Image Hover Text")
Please be considerate over image sizes to help reduce page loading times.