Skip to content

Commit

Permalink
document matomo #6 closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
maxheld83 committed Nov 18, 2020
1 parent dbf875b commit 307a71b
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 125 deletions.
29 changes: 20 additions & 9 deletions R/template.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#' State- and University Library of Göttingen [pkgdown](http://pkgdown.r-lib.org) template
#'
#' @details
#' To use this template for website, list {subugoetheme} in your `DESCRIPTION` and add to your `_pkgdown.yml`:
#' @section Usage:
#' To use this template for your pkgdown website, list {subugoetheme} in your `DESCRIPTION` and add to your `_pkgdown.yml`:
#'
#' ```yaml
#' template:
#' package: subugoetheme
#' ````
#' ```
#'
#' To update your website, install the current version of {subugoetheme} and re-run `pkgdown::build_site()` locally or in your CI.
#'
#' @section Features:
#' As a result, your website will:
#'
#' - Use the [**bootswatch `cosmo` bootstrap theme**](https://bootswatch.com/3/cosmo/) with an inverse navbar.
Expand All @@ -18,12 +21,20 @@
#' - Include the **SUB wordmark** in your website as `sub_wordmark.jpg`.
#' The wordmark is included in the custom footer.
#' - Expose the SUB twitter account [`@subugoe`](https://twitter.com/subugoe) as **opengraph [metadata](https://pkgdown.r-lib.org/articles/metadata.html)** (`twitter: site`).
#'
#' In a further difference to "vanilla" pkgdown sites, Google Analytics is disabled for all subugoetheme sites.
#'
#' To pull in changes in this package to your website, install the current version of {subugoetheme} and re-run `pkgdown::build_site()` locally or in your CI.
#'
#' To pull in upstream changes from {pkgdown} into *this* package, it may be ocassionally necessary to update the files in `inst/pkgdown/templates` which have been minimally adapted from their original counterparts in {pkgdown}.
#'
#' For additional features, see [muggle](http://subugoe.github.io/muggle/).
#'
#' @section Analytics:
#' Instead of Google Analytics, this template includes a tracking code for `matomo.gwdg.de` on every website.
#' Matomo is an open-source alternative to Google Analytics, here hosted by the [GWDG](http://matomo.gwdg.de).
#'
#' The following SUB employees have access to the analytics:
#' - [Najko Jahn](https://www.sub.uni-goettingen.de/kontakt/personen-a-z/personendetails/person/najko-jahn/)
#' - [Maximilian Held](https://www.sub.uni-goettingen.de/kontakt/personen-a-z/personendetails/person/maximilian-held/)
#' - `[email protected]`, a function account for [WAG](https://www.sub.uni-goettingen.de/kontakt/abteilungen-a-z/abteilungs-und-gruppendetails/abteilunggruppe/wissen-als-gemeingut/) data products.
#'
#' @section Maintenance:
#' To pull in upstream changes from {pkgdown} into *this* package, it may be ocassionally neccessary to update the files in `inst/pkgdown/templates` which have been minimally adapted from their original counterparts in {pkgdown}.
#'
#' To learn more about pkgdown templates, read [here](https://pkgdown.r-lib.org/reference/build_site.html) or consider [these](https://github.com/ropensci/rotemplate) [examples](https://tidytemplate.tidyverse.org).
#'
Expand Down
31 changes: 26 additions & 5 deletions man/pkgdown_template.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions vignettes/.gitignore

This file was deleted.

Loading

0 comments on commit 307a71b

Please sign in to comment.