Created
April 17, 2016 23:41
-
-
Save wilsonmar/e2a146402ecd964100c9020127c605fd to your computer and use it in GitHub Desktop.
trymm.sh - Try minimal-mistakes by populating with unit test data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# trymm.sh in ~/gits folder | |
# by [email protected] | |
# Obtain theme files and overlay data from original by Michael Rose: | |
# Run this from any folder: | |
# Tested on Mac OSX El Capitan. | |
# | |
set -x #echo on | |
cd ~/gits/jekyll | |
rm -rf minimal-mistakes | |
# clone all history and branches: | |
git clone http://github.com/mmistakes/minimal-mistakes.git | |
#curl -L -o minimal-mistakes-master.zip http://github.com/mmistakes/minimal-mistakes/zipball/master/ | |
#unzip minimal-mistakes-master.zip -d /minimal-mistakes | |
#rm minimal-mistakes-master.zip | |
# Error appears for unzip, so I use clone instead. | |
rm -rf jekyll-theme-unit-test | |
git clone http://github.com/mmistakes/jekyll-theme-unit-test.git | |
#curl -L -o jekyll-theme-unit-test-master.zip http://github.com/mmistakes/jekyll-theme-unit-test/zipball/master/ | |
#unzip jekyll-theme-unit-test-master.zip -d /jekyll-theme-unit-test2 | |
#rm jekyll-theme-unit-test-master.zip | |
cp -Rf jekyll-theme-unit-test/* minimal-mistakes/ | |
cd minimal-mistakes | |
bundle | |
python -mwebbrowser http://localhost:4000 | |
bundle exec jekyll serve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment