The Haskell platform
brew cask install haskell-platform
brew install haskell-stack
Sass to work with compiled css
gem install sass
The program that watches for file changes
stack install steeloverseer
Create a .sosrc
file and add the following
- pattern: css/(.*)\.hs
commands:
- runghc \0 > _site/css/\1.css
- pattern: css/(.*)\.scss
commands:
- sass \0 > _site/css/\1.css
Build the program from source to ensre all dependiences are available
git checkout source
stack build
Run the command below then navigate to localhost:8000
stack exec site watch
Run the css compiler
~/.local/bin/sos
-
Generate the site using
stack exec site build
(generates all the files under_site
). -
Generate css files (generates all the files under
_site/css
)
- Run steeloverseer (for example
~/.local/bin/sos
) - Update css files to trigger generation
touch css/*
- Validate the site looks good by doing
stack exec site watch
and changing browser size, looking at the blogposts code, etc.
-
Go to branch
base_generate
-
Checkout a new branch
git co -b new_deloyment
-
Copy all the files from
_site
to the root:cp -a _site/. .
-
Commit changes
git add .
andgit commit -am "New version"
-
Push the new version to GH pages master branch:
git push gh-pages generated:master -f