This project contains the content needed to build and deploy the First Discovery Tool Documentation. It is based off of the Fluid docs-template
project.
- Clone this repository.
- From within the project's directory, install DocPad if it isn't already installed:
sudo npm install -g docpad
- Get the required node modules:
npm install
- Run docpad:
docpad run
- Confirm everything is working by loading
http://localhost:9778/
in a web browser.
Periodically docs-template
will have updates. It is suggested you keep up to date with these changes:
git remote add docs-template https://github.com/fluid-project/docs-template
git fetch docs-template
git merge docs-template/master
npm update
Conflicts may occur when merging in changes from docs-template
to your custom site. Manually resolve each conflict.
docpad deploy-ghpages --env static
WARNING deploy-ghpages will upload the site to the repository's source. If you have cloned from the production repository and you have push access, you will actually run the docs publication workflow against the live production branch, whichever branch you happen to be working on.
To create a static version of the site, run: docpad generate --env static
. This will generate a version in the ./out/
directory which you can then view locally or upload to a web server.