Documentation
The SVG.js docs are built upon Kirby with the KDoc theme.
Requirements
You'll need:
- PHP 5.4+
- Node.js
Getting started
-
Download or clone the svgdotjs.github.io repo and switch to the
source-3.0
branch. -
Run
npm install
. This is only required the first time. - Run
npm run serve -s
which will open up your default browser with the docs running.
Writing
Log in to Kirby on localhost:8030/panel using username svgjs and password svgjs.
The text editors in Kirby are Markdown and Kirbytext enabled.
Pull Requests
If you're not a core collaborator on svgdotjs, fork the source-3.0
branch, make the required changes in Kirby following the same style as the rest of the docs, and create a PR. We will take care of the rest, so no need to build or include a static version.
Building the static version
-
Go to localhost:8030/statify.php in a web browser to run the build. The static files will be generated in a folder called
3.0
at the root of the repo. -
Move the
3.0
folder out of the repo. -
Commit and push the changes in the
source-3.0
branch and switch to themaster
branch. -
Replace the
/docs/3.0
folder in themaster
branch with the newly generated3.0
folder. - Commit and push the changes in the
master
branch and you're done!