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.
- Place new firmware files within the
public/firmwarefolder. - Firmware is held in the
availableFirmwareobject withinsrc/App.vue. Simply add a new object withinavailableFirmware, updating itstitleandurlproperties to match the new firmware file.
availableFirmware: {
'microPython_0_2_0': {
title: 'microPython 0.2.0',
url: 'firmware/SITCore-SC13-MP-Firmware-v0.2.0.glb',
isGlb: true,
image: null,
},
},
- Once you're happy with the changes,
CTRL+Cto kill the process that runs the local site. - Run
npm run buildto compile and build thedocsfiles. - Using git, add the new
docsfiles and remove the old ones. - Commit the changes and push.