Skip to content

Commit dcbccc8

Browse files
committed
add family tags and _pkgdown file; closes #24
1 parent d4933cc commit dcbccc8

13 files changed

+74
-7
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: allcontributors
22
Title: Acknowledge all Contributors to a Project
3-
Version: 0.0.2.032
3+
Version: 0.0.2.033
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"))
66
Description: Acknowledge all contributors to a project via a single
@@ -30,4 +30,4 @@ VignetteBuilder:
3030
Encoding: UTF-8
3131
Language: en-GB
3232
Roxygen: list(markdown = TRUE)
33-
RoxygenNote: 7.1.2
33+
RoxygenNote: 7.2.1

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
Minor changes:
44

55
- Add new `exclude_issues` parameter to main functions
6+
- Add `_pkgdown` file for function reference topics

R/add-contributors.R

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#' writeLines ("", f) # blank file in tempdir()
5858
#' add_contributors (repo = ".", files = f)
5959
#' }
60+
#' @family main
6061
#' @export
6162
add_contributors <- function (repo = ".",
6263
ncols = 7,

R/github.R

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#' \dontrun{
1313
#' get_contributors (org = "ropenscilabs", repo = "allcontributors")
1414
#' }
15+
#' @family main
1516
#' @export
1617
get_contributors <- function (org, repo,
1718
type = c ("code", "issues", "discussion"),
@@ -84,6 +85,7 @@ get_contributors <- function (org, repo,
8485
#' \dontrun{
8586
#' get_gh_code_contributors (org = "ropenscilabs", repo = "allcontributors")
8687
#' }
88+
#' @family github
8789
#' @export
8890
get_gh_code_contributors <- function (org, repo, alphabetical = FALSE) {
8991

@@ -207,6 +209,7 @@ get_issues_qry <- function (gh_cli, org, repo, end_cursor = NULL) {
207209
#' \dontrun{
208210
#' get_gh_issue_people (org = "ropenscilabs", repo = "allcontributors")
209211
#' }
212+
#' @family github
210213
#' @export
211214
get_gh_issue_people <- function (org, repo, exclude_issues = NULL) {
212215

@@ -292,6 +295,7 @@ get_gh_issue_people <- function (org, repo, exclude_issues = NULL) {
292295
#' \dontrun{
293296
#' get_gh_issue_titles (org = "ropenscilabs", repo = "allcontributors")
294297
#' }
298+
#' @family github
295299
#' @export
296300
get_gh_issue_titles <- function (org, repo) {
297301

@@ -340,6 +344,7 @@ get_gh_issue_titles <- function (org, repo) {
340344
#' \dontrun{
341345
#' get_gh_contrib_issue (org = "ropenscilabs", repo = "allcontributors")
342346
#' }
347+
#' @family github
343348
#' @export
344349
get_gh_contrib_issue <- function (org, repo) {
345350

_pkgdown.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
url: https://docs.ropensci.org/allcontributors
2+
3+
figures:
4+
dev: grDevices::png
5+
6+
reference:
7+
- title: Main functions
8+
contents:
9+
- has_concept("main")
10+
- title: GitHub issue functions
11+
contents:
12+
- has_concept("github")

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"codeRepository": "https://github.com/ropenscilabs/allcontributors",
1111
"issueTracker": "https://github.com/ropenscilabs/allcontributors/issues",
1212
"license": "https://spdx.org/licenses/GPL-3.0",
13-
"version": "0.0.2.032",
13+
"version": "0.0.2.033",
1414
"programmingLanguage": {
1515
"@type": "ComputerLanguage",
1616
"name": "R",

makefile

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
LFILE = README
22

3-
all: knith #open
3+
#all: insert knith #open
4+
all: init build
5+
6+
init:
7+
echo "pkgdown::init_site()" | R --no-save -q
8+
9+
build:
10+
echo "pkgdown::build_site()" | R --no-save -q
411

512
knith: $(LFILE).Rmd
613
echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).html')" | R --no-save -q
714

815
knitr: $(LFILE).Rmd
9-
echo "rmarkdown::render('$(LFILE).Rmd',rmarkdown::md_document(variant='gfm'))" | R --no-save -q
16+
echo "rmarkdown::render('$(LFILE).Rmd',output_file='$(LFILE).md')" | R --no-save -q
17+
18+
open:
19+
xdg-open docs/index.html &
1020

11-
open: $(LFILE).html
12-
xdg-open $(LFILE).html &
21+
check:
22+
Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)'
1323

1424
clean:
1525
rm -rf *.html *.png README_cache

man/add_contributors.Rd

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_contributors.Rd

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_gh_code_contributors.Rd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_gh_contrib_issue.Rd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_gh_issue_people.Rd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/get_gh_issue_titles.Rd

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)