Skip to content

Commit

Permalink
Updated config + generation files
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed Nov 1, 2015
1 parent 0cc7f51 commit e9fa2af
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
## Ignore ...

*.Rmd
*/template/
survey/
*.csv
gps/eventListing.md
evals/
lessons/potentials.md
_site/

## ...But not ignore these files


11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ site_repo=`basename "$$PWD"`
all :
@grep -E '^##' Makefile | sed -e 's/##//g'
##-------------------------------------------------------------------
## test_local : Test the site locally before building live version
## test_local : Test the site locally before building live version
test_local :
jekyll serve --watch

## build_site : Build the GitHub pages site
build_site :
## update_site : Build the GitHub pages site
update_site :
rsync -a --exclude='.git/' --exclude='.gitignore' ../workshops/ ../${site_repo}/
./knitpost.R
jekyll build

## clean_dir : Clean up left over files from updated website
## clean_dir : Clean up left over files from updated website
clean_dir :
git clean -d -x -f

.PHONY : build_site test_local clean_dir
.PHONY : update_site test_local clean_dir

2 changes: 0 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ lesson-list: [Git, Intro, Plotting, Wrangling, Rmarkdown, Macros, ODS]
category-list: [R, Git, Macros, ODS, Lessons]
tag-list: [Lessons, Git, GitHub, Macros, ODS, Assignment, Slides, Cheatsheet]

exclude: ['lessons/template/*', gps/eventListing.md, '*.Rmd',
evals/, survey/, lessons/potentials.md, README.md]

2 changes: 1 addition & 1 deletion knitpost.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ KnitPost <- function(input, outfile, base.url = '/') {
# this function is a modified version of an example here:
# http://jfisher-usgs.github.com/r/2012/07/03/knitr-jekyll/
knitr::opts_knit$set(base.url = base.url)
knitr::opts_chunk$set(fig.path = 'images/',
knitr::opts_chunk$set(fig.path = '/lessons/images/',
collapse = TRUE)
knitr::render_jekyll()
knitr::knit(input, outfile, envir = parent.frame())
Expand Down

0 comments on commit e9fa2af

Please sign in to comment.