This repo holds the markdown source files and assets for Defold documentation. Each language has its own subfolder in "docs".
Node.js and Gulp:
$ brew install node
$ npm install gulp-cli -g
$ npm install
(Don't bother about "npm WARN deprecated" things during npm install.)
$ gulp watch
Builds all documentation for preview and opens a browser pointing to the build root. Edits to any .md manual or image is detected, rebuilt and reloaded in browser.
$ gulp build
$ ./publish_sh
Publishing documentation to GCS is done with the gsutil
which is part of the Google Cloud SDK. It's automatically installed if needed.
- Go to https://cloud.google.com/sdk/docs/quickstart-macos and download the correct package.
- Run the
install.sh
script. - Run
gcloud init
logging into your King account ([email protected]
). - Select the
defold-web
project when asked which should be the active project. If you don't see it in the list ask Samuel or Jonas about access. - Everything should be OK now and you should have permission to run the
./publish_sh
script.