Skip to content

Commit

Permalink
update docs to support publishing to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ervandew committed Jul 26, 2015
1 parent 80642b7 commit d113ebd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,6 +5,7 @@
/.cache
/.ropeproject
/build
/gh-pages
/org.eclim/nailgun/config.log
/org.eclim/nailgun/config.status
/org.eclim/nailgun/Makefile
Expand Down
10 changes: 9 additions & 1 deletion ant/build.gant
@@ -1,5 +1,5 @@
/**
* Copyright (C) 2005 - 2014 Eric Van Dewoestine
* Copyright (C) 2005 - 2015 Eric Van Dewoestine
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -577,6 +577,14 @@ target(name: 'docs'){
match: '(href|src)="(?!/|https?:)',
replace: '\\1="/',
flags: 'g')

// sync to github pages repo/branch if it exists
if (new File("${basedir}/gh-pages").exists()){
sync(todir: 'gh-pages', overwrite: true){
fileset(dir: 'build/doc/site')
preserveintarget{ include(name: '.git/**/*') }
}
}
}

target(name: 'vimdocs'){
Expand Down

0 comments on commit d113ebd

Please sign in to comment.