Skip to content

Commit

Permalink
add lightswitch to pkg docs, use bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 11, 2024
1 parent 90e0a71 commit 69fe01c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ CODE_OF_CONDUCT.md
.github
^codemeta\.json$
revdep/
^_pkgdown\.yml$
^docs$
^pkgdown$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
revdep/checks.noindex/*
revdep/data.sqlite
revdep/library.noindex/*
docs
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Authors@R: c(
person("Marion", "Louveaux", role="ctb"),
person("David", "Schoch", role = "ctb")
)
URL: https://github.com/sckott/cowsay
URL: https://github.com/sckott/cowsay, https://sckott.github.io/cowsay
BugReports: https://github.com/sckott/cowsay/issues
Roxygen: list(markdown = TRUE)
Encoding: UTF-8
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
PACKAGE := $(shell grep '^Package:' DESCRIPTION | sed -E 's/^Package:[[:space:]]+//')
RSCRIPT = Rscript --no-init-file

.PHONY: docs

install: doc build
R CMD INSTALL . && rm *.tar.gz

Expand All @@ -10,6 +12,9 @@ build:
doc:
${RSCRIPT} -e "devtools::document()"

docs:
${RSCRIPT} -e "pkgdown::build_site()"

eg:
${RSCRIPT} -e "devtools::run_examples()"

Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: https://sckott.github.io/cowsay
template:
bootstrap: 5
light-switch: true

0 comments on commit 69fe01c

Please sign in to comment.