The Simply Binary website is a static pages site built with
Hugo and hosted on GitHub.io using their "Organization"
Pages. This means that the master
branch acts as a "public" document root and
files placed there will be served accordingly.
- Install Hugo
- If your on a Mac this is easy with
brew update && brew install hugo
- Ensure you have at least version
0.14
withhugo version
- If your on a Mac this is easy with
- Clone the repo and make it your workign directory
[email protected]:SimplyBinary/simplybinary.github.io.git && cd simplybinary.github.io
- Ensure you have Node.js and NPM installed
- Install Node dependencies
npm install
- Install Bower dependencies
bower install
Even if your not modifing style sheets or script it's important that
gulp watch
is running. This is because gulp runs a process called "uncss"
which looks at the generated *.html
files and strips css rules from the stream
that will never match the given files. Failure to do so may cause elements to
appear incorrectly styled even though the correct CSS is being generated by
SASS.
- Create a topic branch from the
dev
branch - If you want to be extra clear, prefix feature brances with
f/
and bugfix branches withb/
- Ensure
gulp watch
is running. - Start Hugo's server and have it watch for changes with
hugo server --watch
- Make, verify, and commit changes
- Submit a PR if you're feeling nice.
- Once the branch is merged into
dev
, checkoutdev
and deploy changes to the master branch by runningbin/deploy
- Create a topic branch from the
dev
branch - If you're feeling nice, prefix brances with
c/
("c" for content) - Ensure
gulp watch
is running. - Start Hugo's server and have it watch for changes with
hugo server --watch
- Make, verify, and commit changes
If you are creating new content:
-
Run
hugo new TYPE/TITLE.md
- Where
TYPE
is the content type like "work" or "class" - And
Title
is the title of the content such as "Intermediate-Git" - Ex.
hugo new class/Intermediate-Git.md
- Where
-
Submit a PR if you're feeling nice.
-
Once the branch is merged into
dev
, checkoutdev
and deploy changes to the master branch by runningbin/deploy