1.1 KiB
math.js website
This project contains the website of math.js, available at https://mathjs.org. The website is static, and is hosted on github pages.
Update
To update the website with the latest version of math.js:
-
Update the version number of math.js in package.json.
-
Install the dependencies via npm:
npm install -
Update the docs, examples, and version number via the build tool:
npm run buildNote that this script will update a git submodule
./mathjs-srcwhich checks out themasterbranch and generates the docs and examples fresh from the source code. -
Ensure any new pages are added to git.
-
To generate the website locally using Jekyll:
jekyllThis will generate the static website in the folder
_site. -
To test the website locally, use Jekyll as server:
jekyll --server 4000The website is than available in the browser at http://localhost:4000.
Deploy
To deploy the website, all that is needed is to commit the changes via git,
and push the changes to the gh-pages branch of math.js on github.