A customisable colouring sheet for home printing. See create.toucanbox.com
All Jekyll config in _config.yml
Build and compress js app for production npm run buildc
Watch js modules for changes npm run dev
Build main.css for production gulp css
Watch scss modules for changes gulp
gulp watch is editing the main.css file in _site
directly, getting around the slow Jekyll watch
(watch out for clobbering of your css changes when you edit a file watched by Jekyll, save any scss module again to override with latest changes)
Build html files and assets for production bundle exec jekyll build
(build production js and css, as above, first)
Watch html files for changes bundle exec jekyll serve
Unfortunately Github pages doesn't support the translation plugin, so deployment is a bit convoluted. After making a build with latest changes follow these steps to push to the serving branch:
cp CNAME ./_site/
to ensure we have a cname record in the route of the sitecd _site
touch .nojekyll
, this file tells gh-pages that there is no need to buildgit init
init the repositorygit remote add origin https://github.com/ToucanBox/TBcustom.git
git checkout -b gh-pages
git add .
git commit -m "jekyll deploy"
commit your site codegit push origin gh-pages
Jekyll build will overwrite the _site
directory on each build so you need to do these steps on each deploy :/
You can omit steps 4 - 6 if git is still active in the _site
directory
Translation files in _i18n
directory