Skip to content

Commit

Permalink
Convert to pkgdown
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmoore committed Jun 10, 2019
1 parent b79c4fe commit 6ed2b76
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
^\.Rproj\.user$
.travis.yml
.push_gh_pages.sh
^_pkgdown\.yml$
^docs$
^pkgdown$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
inst/doc
docs/
21 changes: 16 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@ language: r
warnings_are_errors: false
sudo: false
cache: packages
r_github_packages:
- jimhester/covr

before_install:
- chmod 755 ./.push_gh_pages.sh
branches:
only:
- master
- stable
- /^release-.*/
- /^v.*$/

before_cache: Rscript -e 'remotes::install_cran("pkgdown")'

deploy:
provider: script
script: Rscript -e 'pkgdown::deploy_site_github()'
skip_cleanup: true
on:
repo: angusmoore/arphit
tags: true

after_success:
- Rscript -e 'covr::coveralls()'
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && ./.push_gh_pages.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ The result contains the generalised impulse responses for each variable in the T

# Package documentation

Documentation for this package can be found [here](https://angusmoore.github.io/tvarGIRF/tvarGIRF.pdf).
Documentation for this package can be found [here](https://angusmoore.github.io/tvarGIRF/).
6 changes: 6 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

destination: docs

template:
params:
bootswatch: paper

0 comments on commit 6ed2b76

Please sign in to comment.