Before starting, you need to install Node.js on your computer.
- Open a terminal in the repository folder.
- Run
npm installto install the required packages. - Run
npm run devto host the site locally. Any changes you make in code with be shown live in the browser. - Done.
Note: Building locally is no longer necessary.
- Commit changes and push to Github.
- Github Actions will compile the JavaScript, build and deploy the page.
- Done.
- Place new firmware files within the
public/firmwarefolder. - Firmware is now held in the
public/firmware.jsonfile. Simply add a new object, updating its properties (name,versions,boards).versionsis an array of objects. Each object has anid,nameandurlproperty.idis used to sort descending. The highestidwill be considered the latest firmware.nameis self-explanatory.urlis the path to the file.
boardsis an array of objects. Each object has anameandidproperty.nameis self-explanatory.idis the character assigned to each board. E.g.Pstands for BrainPad Pulse.
- Commit changes and push to Github.
- Github Actions will compile the JavaScript, build and deploy the page.
- Done.
- Go to
public/demos.json. - Simply edit or add a new object with
labelandcodeproperties. - Commit changes and push to Github.
- Github Actions will compile the JavaScript, build and deploy the page.
- Done.