-
Generate a
p5.min.jsfile containing changes vianpm run grunt -
Add the new
p5.min.jsfile 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 gruntat least once. Ifdocs/referenceis 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.jsTODO