Website for mo ยท js with tutorials and documentation.
- Install VuePress globally using
npm i -g vuepress
- Run
npm i
to install all dependencies - Run
npm start
to start the project onhttp://localhost:8080
- Run
npm run build
- Push to the mojs.github.io master branch using
. deploy.sh
If you need very special demo that doesn't work with the <MojsCode>
or the MojsInteractive
components, create a new component and add it to the folder "components". Make shure the name doen't contain a number, VuePress doesn't like that.
-
If you get a
Unknown custom element:
or any other wierd errors, try restarting VuePress by stopping the process in tour terminal and runnpm run start
again to clear the VuePress cache. It's probably due to some JS error in a custom component that you used wrote. -
If you get an
Errors compiling template: tag <p> has no matching end tag.
, make sure you have a dubble line break before any html comments (<!--
). Like this:My code <!-- Some html comment -->