Install git, VirtualBox, Vagrant. Then from git project folder:
vagrant up
vagrant ssh
cd /vagrant
jekyll serve -w
Make sure ruby and nodejs is installed. Then from the git project folder, do: gem install rmagick gem install jekyll bundle install
then:
jekyll serve -w
To check status in github powershell:
git status -s
To update:
git pull
To make changes:
git status -s
git add filename // Variations for making changes
git commit -m "comment here" //
git push
Shortcut for updating old files:
Replace above variation // with
git commit -a -m "comment here"
Shortcut for adding all files in a folder:
Replace above variation // with
git add foldername/*
git commit -m "comment here"
example:
git add images/pipettebot/*
git commit -m "Adds all files in local repository in images/pipettebot/ to main branch online"
Page Name
=========
<div class="col-sm-4">
<ul class="nav nav-pills nav-stacked">
{% sidebar "content1", "Content 1" %}
{% sidebar "content2", "Content 2" %}
{% sidebar "content3", "Content 3" %}
</ul>
</div>
<div id="content1" class="sidebar-content col-sm-8">
<h1>Content 1</h1>
<p>text</p>
</div>
<div id="content2" class="sidebar-content col-sm-8">
<h1>Content 2</h1>
<p>text2</p>
</div>
<div id="content3" class="sidebar-content col-sm-8">
<h1>Content 3</h1>
<p>text3</p>
</div>
(only works on Mac/Linux & must have lftp installed. The vagrant image has this installed)
cd into the project folder ./upload.sh
Username & FTP server is set in the deploy.x file
Use the folder where the repository is held from github
Click rescan button to check if any new changes have been made
Click files you want to change in the unstaged changes section and press stage changed button
Then after selecting all desired files press commit button
Then press push button to make changes to the main repository
- Boostrap: http://getbootstrap.com/
- Vagrant / Jekyll: https://coderwall.com/p/xrfadg
- Jekyll documentation: http://jekyllrb.com/
- Markdown Syntax: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet