To run this site locally you should have installed:
-
IMPORTANT. When installing GIT on Windows, make sure you install with the option of making git available to the windows command line.
See also instruction for setting up Node.js environment under Mac Os and Linux.
On Windows:
- Run 'Node.js command promt' as Administrator.
- Type
npm install -g npm
and press «Enter» to update Node Package Manager. - Type
npm install -g [email protected]
and press «Enter» to install DocPad globally. - Close Node.js command promt, run Windows command promt (cmd) as regular user and navigate to your folder with project.
- Run
docpad update
inside your project directory to ensure that your local installations of DocPad and its plugins are updated to their latest compatible versions.
For other systems check manual at official site.
docpad run
in cmd inside your project directory to compile the site, start the webserver and watch for changes.
To preview site in browser open http://localhost:9778
Full list of commands.
src/document
— content pages
src/layout
— template of the site
src/partials
— includes used in templates
src/files
— resources
More docs at DocPad site.
Open command promt and run git remote add deploy https://YOURUSERNAME:[email protected]/IDTdesign/DMA.git
where YOURUSERNAME , YOURPASSWORD is your github credentials.
Run docpad deploy-ghpages --env static
inside your project directory to compile the site and push it to http://idtdesign.github.io/DMA/.
You should be collaborator in this repository to be able to deploy.
In case of any problems try first to update DocPad.
IDT © 2014+ All rights reserved.