Skip to content

Commit 4605713

Browse files
Alison Presmanes Hillcderv
andauthored
Add a pkgdown website (#412)
Co-authored-by: Christophe Dervieux <christophe.dervieux@gmail.com>
1 parent f14a79b commit 4605713

28 files changed

+844
-138
lines changed

.Rbuildignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@
44
^\.travis\.yml$
55
^\.github$
66
^README\.md$
7+
^README\.Rmd$
78
^tools/
9+
^_pkgdown\.yml$
10+
^reference$
11+
^pkgdown$
12+
^vignettes$
13+

.github/CODE_OF_CONDUCT.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards
42+
of acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies
54+
when an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail
56+
address, posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at codeofconduct@rstudio.com.
63+
All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.0,
118+
available at <https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
119+
120+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
121+
enforcement ladder](https://github.com/mozilla/diversity).
122+
123+
[homepage]: https://www.contributor-covenant.org
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
<https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.

.github/CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contributing to rticles
2+
3+
We welcome contributions to the **rticles** package.
4+
5+
You can contribute in many ways:
6+
7+
* By opening issues to give feedback and share ideas.
8+
* By fixing typos in documentations
9+
* By submitting Pull Request (PR) to fix some opened issues
10+
* By submitting Pull Request (PR) to suggest some new features. (It is considered good practice to open issues before to discuss ideas)
11+
12+
13+
## To submit a contribution using a Pull Request:
14+
15+
1. [Fork](https://github.com/rstudio/bookdown/fork) the repository and make your changes in a new branch specific to the PR. It is ok to edit a file in this repository using the `Edit` button on Github if the change is simple enough.
16+
17+
2. For significant changes (e.g not required for fixing typos), ensure that you have signed the [individual](https://rstudioblog.files.wordpress.com/2017/05/rstudio_individual_contributor_agreement.pdf) or [corporate](https://rstudioblog.files.wordpress.com/2017/05/rstudio_corporate_contributor_agreement.pdf) contributor agreement as appropriate. You can send the signed copy to <jj@rstudio.com>.
18+
19+
3. Submit the [pull request](https://help.github.com/articles/using-pull-requests). It is ok to submit as draft in your are still working on it but would like some feedback from us. It always good to share in the open that you are working on it.
20+
21+
We'll try to be as responsive as possible in reviewing and accepting pull requests. Appreciate your contributions very much!

.github/workflows/pkgdown.yaml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- master
6+
pull_request:
7+
branches:
8+
- main
9+
- master
10+
11+
name: pkgdown
12+
13+
jobs:
14+
pkgdown:
15+
if: ${{ github.event_name == 'push' || startsWith(github.head_ref, 'pkgdown') }}
16+
runs-on: macos-latest
17+
env:
18+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- uses: r-lib/actions/setup-r@v1
23+
id: install-r
24+
25+
- uses: r-lib/actions/setup-pandoc@v1
26+
27+
- uses: r-lib/actions/setup-tinytex@v1
28+
env:
29+
# install full prebuilt version
30+
TINYTEX_INSTALLER: TinyTeX
31+
32+
- name: Install pak and query dependencies
33+
run: |
34+
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/")
35+
saveRDS(pak::pkg_deps(".", dependencies = TRUE), ".github/r-depends.rds")
36+
shell: Rscript {0}
37+
38+
- name: Cache R packages
39+
uses: actions/cache@v2
40+
with:
41+
path: |
42+
${{ env.R_LIBS_USER }}/*
43+
!${{ env.R_LIBS_USER }}/pak
44+
key: macos-latest-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
45+
restore-keys: macos-latest-${{ steps.install-r.outputs.installed-r-version }}-1-
46+
47+
- name: Install package and dependencies
48+
run: |
49+
pak::local_install_dev_deps(upgrade = TRUE, dependencies = c("all", "Config/Needs/website"))
50+
pak::pkg_install("r-lib/pkgdown")
51+
pak::pkg_install("rstudio/quillt")
52+
shell: Rscript {0}
53+
54+
- name: Install package
55+
run: R CMD INSTALL .
56+
57+
- name: Cache some pkgdown assets
58+
uses: actions/cache@v2
59+
with:
60+
path: |
61+
vignettes/articles/resources/*.gif
62+
vignettes/articles/resources/*.pdf
63+
vignettes/articles/cache/*.rds
64+
key: ${{ hashFiles('vignettes/articles/_child_examples.Rmd') }}-1-${{ github.sha }}
65+
restore-keys: |
66+
${{ hashFiles('vignettes/articles/_child_examples.Rmd') }}-1-
67+
68+
69+
- name: Build pkgdown site
70+
run: pkgdown::build_site(new_process = FALSE)
71+
shell: Rscript {0}
72+
73+
- name: Deploy to Netlify
74+
id: netlify-deploy
75+
uses: nwtgck/actions-netlify@v1.1
76+
with:
77+
publish-dir: 'reference'
78+
production-branch: master
79+
github-token: ${{ secrets.GITHUB_TOKEN }}
80+
deploy-message:
81+
'Deploy from GHA: ${{ github.event.head_commit.message }} (${{ github.sha }})'
82+
enable-pull-request-comment: false
83+
enable-commit-comment: false
84+
enable-commit-status: true
85+
alias: deploy-preview-${{ github.event.number }}
86+
env:
87+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
88+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
.Rhistory
44
.RData
55
*.log
6+
reference
7+
inst/doc

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ Version: 0.20.3
55
Authors@R: c(
66
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
77
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
8+
person("Christophe", "Dervieux", role = c("aut"), email = "cderv@rstudio.com", comment = c(ORCID = "0000-0003-4474-2498")),
9+
person(family = "RStudio", role = c("cph", "fnd")),
810
person(family = "R Foundation", role = c("aut", "cph")),
911
person("Hadley", "Wickham", role = "aut", email = "hadley@rstudio.com"),
1012
person(family = "Journal of Statistical Software", role = c("aut", "cph")),
11-
person(family = "RStudio", role = "cph"),
1213
person("Ramnath ", "Vaidyanathan", role = c("aut", "cph"), email = "ramnath.vaidya@gmail.com"),
1314
person(family = "Association for Computing Machinery", role = c("aut", "cph")),
1415
person("Carl", "Boettiger", role = c("aut", "cph"), email = "cboettig@gmail.com"),
@@ -44,7 +45,6 @@ Authors@R: c(
4445
person("Shixiang", "Wang", role = c("aut", "ctb"), email = "w_shixiang@163.com", comment = c(ORCID = "0000-0001-9855-7357")),
4546
person('Jay', 'Hesselberth', role = c('aut', 'ctb'), email = 'jay.hesselberth@gmail.com', comment = c(ORCID = '0000-0002-6299-179X')),
4647
person("Alfredo", "Hernández", role = c("ctb"), email = "aldomann.designs@gmail.com", comment = c(ORCID = "0000-0002-2660-4545")),
47-
person("Christophe", "Dervieux", role = c("aut"), email = "cderv@rstudio.com", comment = c(ORCID = "0000-0003-4474-2498")),
4848
person("Stefano", "Coretta", role = c("ctb"), email = "stefano.coretta@gmail.com", comment = c(ORCID = "0000-0001-9627-5532", github = "stefanocoretta")),
4949
person("Alvaro", "Uzaheta", role = c("ctb"), email = "alvaro.uzaheta@gess.ethz.ch", comment = c(github = "auzaheta"))
5050
)
@@ -58,3 +58,5 @@ BugReports: https://github.com/rstudio/rticles/issues
5858
RoxygenNote: 7.1.1
5959
Suggests: testit, bookdown, xtable
6060
Encoding: UTF-8
61+
VignetteBuilder: knitr
62+
Config/Needs/website: magick, pdftools, gifski, rstudio/quillt

0 commit comments

Comments
 (0)