Permalink
Browse files

add .nojekyll to repo before publishing to github

  • Loading branch information...
1 parent b761a39 commit e70754a9c8c746e79816c1b2044c3d450700671a @ramnathv committed Nov 30, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 DESCRIPTION
  2. +5 −0 R/publish.R
View
@@ -1,7 +1,7 @@
Package: slidify
Type: Package
Title: Generate reproducible html5 slides from R markdown
-Version: 0.3.2
+Version: 0.3.3
Date: 2012-10-18
Author: Ramnath Vaidyanathan <ramnath.vaidya@gmail.com>
Maintainer: Ramnath Vaidyanathan <ramnath.vaidya@gmail.com>
View
@@ -46,6 +46,11 @@ publish_github <- function(user, repo){
if (!file.exists('.git')){
init_repo()
}
+ # check if .nojekyll exists, else add it to the repo
+ if (!file.exists('.nojekyll')){
+ message("Adding .nojekyll to your repo...")
+ file.create(".nojekyll")
+ }
message('Publishing deck to ', user, '/', repo)
system('git add .')
system('git commit -a -m "publishing deck"')

0 comments on commit e70754a

Please sign in to comment.