NOTE: 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 [email protected]:drawsgood/drawsgood.github.com.git git checkout source npm install npm run-script preview
-
Visit http://localhost:8080/ in your browser.
-
Make changes to
./contents/some-path/index.md
and refresh the page. You can add more pages like http://drawsgood.github.io/some-design by making a folder./contents/some-design
and anindex.md
file inside of it. Then when you run it locally, you will need to visit http://localhost:8080/some-design/ (note the trailing forward slash for local development, Github automatically appends this). -
You can also edit
./templates/layout.jade
for HTML changes using the Jade template engine.
-
Make CSS changes using LESS or plain CSS by editing files in the
./contents/css
folder. -
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 npm run-script deploy
-
This will automatically build the site, and then deploy it to the master branch.
-
Visit your website hosted with Github Pages at http://drawsgood.github.io.
If you run into issues please contact [email protected].