Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

88 lines (71 sloc) 2.309 kb
SOURCE_DIR=./source/public
DEPLOY_DIR=./_deploy
PUBLIC_DIR=./_public
init: initialize setup gh-pages init-data guide
guide:
clear
cat ./lib/haroopress/QUICK.markdown
initialize:
npm install -g node-gyp
git submodule update --init --recursive
cd ./node_modules/robotskirt;node-gyp rebuild
cd ./node_modules/locally/;npm install
update:
@echo "========================================"
@echo "= update & initialize git submodules"
@echo "========================================"
git pull origin master
cd ./source/themes;git pull origin master
npm update
cd ./node_modules/robotskirt;node-gyp rebuild
init-data:
@echo "========================================"
@echo "= create default data set"
@echo "========================================"
./bin/init.js
setup:
@echo "========================================"
@echo "= configurate haroopress"
@echo "========================================"
./bin/setup.js
gh-pages: clear
@echo "========================================"
@echo "= setup repository for deployment"
@echo "========================================"
cd ./bin/;./gh-pages.js
clear:
@echo "========================================"
@echo "= clear public & deployment directories"
@echo "========================================"
./bin/clear.js
gen: clear
@echo "========================================"
@echo "= generate to static page"
@echo "========================================"
./bin/gen.js
mkdir -p ${PUBLIC_DIR}/slides/@asserts
cp -R ./lib/shower/themes ${PUBLIC_DIR}/slides/@asserts
cp -R ./lib/shower/scripts ${PUBLIC_DIR}/slides/@asserts
cp -R ./lib/bootstrap/* ${PUBLIC_DIR}
preview: gen
@echo "========================================"
@echo "= preview static page"
@echo "========================================"
./bin/preview.js
deploy: gen
@echo "========================================"
@echo "= deploy to github"
@echo "========================================"
cd ./bin;./deploy.js "${msg}"
new-post:
cd ./bin;./new-post.js
new-page:
cd ./bin;./new-page.js
new-slide:
cd ./bin;./new-slide.js
octopress:
@echo "========================================"
@echo "= convert from octopress"
@echo "========================================"
cd ./bin/convert/;./octopress.js
.PHONY: init update build clear
Jump to Line
Something went wrong with that request. Please try again.