Skip to content

Commit

Permalink
Atualiza .build e *ignores.
Browse files Browse the repository at this point in the history
  • Loading branch information
walmes committed May 19, 2017
1 parent 8c7e6a1 commit 2dcf09c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions .build_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,26 @@ if (length(list.files("./vignettes"))) {
check(cleanup = FALSE,
manual = TRUE,
vignettes = FALSE,
check_dir = "../")
check_dir = ".")

#--------------------------------------------
# Construir pacote.

build(manual = TRUE, vignettes = TRUE)
build(manual = TRUE, vignettes = TRUE, path = "./docs")

#--------------------------------------------
# Gerar documentação com pkgdown.

library(pkgdown)

# build_home()
# build_reference()
# build_articles()
build_site()

# Transfere CSS que é comum às vinhetas e site.
file.copy(from = "./vignettes/config/pkgdown-style.css",
to = "./docs/", overwrite = TRUE)

#--------------------------------------------
# Instalar o pacote.
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ vignettes/*.html
!vignettes/_before_body.html
!vignettes/_after_body.html
!vignettes/_MathJax.html
inst/doc
inst/doc/*.Rmd
inst/doc/
!inst/doc/*.html
docs

## Rnw/Rmd output files
Expand Down

0 comments on commit 2dcf09c

Please sign in to comment.