Install grunt after you've installed Node.
npm install -g grunt-cliNOTE: For development, always work out of the "source" branch, never, ever touch "master".
-
Clone the repo, install the dependencies, and start the preview server.
git clone git@github.com:netdna/netdna.github.com.git npm install ./preview
-
Visit http://localhost:8080/ in your browser.
-
Make changes to
./Readme.mdand refresh the page. -
You can also edit
./templates/layout.jadefor HTML changes using the Jade template engine.
-
Make CSS changes using LESS or plain CSS by editing files in the
./contents/cssfolder. -
Add images in the
./contents/img/folder and fonts in the./contents/font/folder. -
When you're ready to deploy your changes:
git add . git commit -m 'I made some changes' git push origin source grunt
-
This will automatically build the site, and then deploy it to the master branch.
If you run into issues please contact niftylettuce@gmail.com.
MIT