-
Generate a
p5.min.js
file containing changes vianpm run grunt
-
Add the new
p5.min.js
file to the docs directory by using./copyfiles.sh
-
Steps 1 & 2 can be done as one-liner:
npm run grunt && ./copyfiles.sh
-
Preview docs:
- cd
docs/reference
- Start a server here by
python3 -m http.server
- Note: make sure to start a server only after running
npm run grunt
at least once. Ifdocs/reference
is empty, starting a sever might fail with a "FileNotFoundError"
- Note: make sure to start a server only after running
- cd
#!/bin/bash
cp lib/p5.min.js docs/reference/assets/js/p5.min.js
TODO