Build tool for building Unity games with NaturalDocs documentation. The game must be hosted on a git repo (Github use case explained here). Builds are automatically compressed and uploaded to Google Drive after being built. This tool will only run on windows, but can build for Windows, OSX and Linux.
npm install -g gulp-cli
- ensure you have the right version of your game engine install for builds
- in project folder:
npm install
git lfs install
- goto your github profile's settings page
- goto developer settings
- goto Personal Access Token
- create a token with full
repo
andgist
privelages - create file
config.git.js
in project root - add the following content:
module.exports = { username: "YOUR USERNAME HERE", password: "YOUR PERSONAL ACCESS TOKEN HERE" };
- Goto your Google API Console Credentials Screen
- choose to make a OAuth credentials with:
Create Credentials > OAuth client ID
- choose type
Other
(this is for installed applications, or this console test) - download the Client with
Download JSON
and name itcredentials.json
- place this file in the root of this project
npm run auth
to authorize yourself
- download the NaturalDocs zip
- create a folder called
bin
in project root - unzip the folder so that
NaturalDocs.exe
is at the path.\bin\NaturalDocs\NaturalDocs.exe
- from this point, the docs should be all setup
- if not, init the docs with
.\node_modules\.bin\gulp docs-init
- if not, init the docs with
- you can customize your project's setting in
.\natural-docs-config\Project.txt
- link to full official guide
- here's a link to a more complete guide
- and here's a link for setting this up automatically
^ NOTE: this image is incorrect.
Program/script
:"cmd.exe"
Add arguments (optional)
:/c ".\node_modules\.bin\gulp full-unity-build"
Start In
: path of the folder with the gulp script
- ie. if
a/b/c/gulpfile.js
is the path to the gulpfile, puta/b/c
in this fieldThis runs a new Command Prompt that will run our gulp build script
If building with unreal, do a "full-unreal-build" instead of unity