Skip to content
This repository
Browse code

add .nojekyll to repo before publishing to github

  • Loading branch information...
commit e70754a9c8c746e79816c1b2044c3d450700671a 1 parent b761a39
Ramnath Vaidyanathan authored November 30, 2012

Showing 2 changed files with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 2  DESCRIPTION
  2. 5  R/publish.R
2  DESCRIPTION
... ...
@@ -1,7 +1,7 @@
1 1
 Package: slidify
2 2
 Type: Package
3 3
 Title: Generate reproducible html5 slides from R markdown
4  
-Version: 0.3.2
  4
+Version: 0.3.3
5 5
 Date: 2012-10-18
6 6
 Author: Ramnath Vaidyanathan <ramnath.vaidya@gmail.com>
7 7
 Maintainer: Ramnath Vaidyanathan <ramnath.vaidya@gmail.com>
5  R/publish.R
@@ -46,6 +46,11 @@ publish_github <- function(user, repo){
46 46
   if (!file.exists('.git')){
47 47
     init_repo()
48 48
   }
  49
+  # check if .nojekyll exists, else add it to the repo
  50
+  if (!file.exists('.nojekyll')){
  51
+    message("Adding .nojekyll to your repo...")
  52
+    file.create(".nojekyll")
  53
+  }
49 54
   message('Publishing deck to ', user, '/', repo)
50 55
   system('git add .')
51 56
   system('git commit -a -m "publishing deck"')

0 notes on commit e70754a

Please sign in to comment.
Something went wrong with that request. Please try again.