Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.04 KB

MI2template

pkgdown template for MI2 DataLab projects

Example pkgdown site with up-to-date MI2 template

Instructions

Installation

Make sure you have installed the current versions of the pkgdown and MI2template packages.

# install.packages("devtools")
devtools::install_github("hadley/pkgdown")
devtools::install_github("mi2-warsaw/MI2template")

Usage

To use MI2template, add _pkgdown.yml file to your repository. This file should have the following content:

template:
  package: MI2template
  default_assets: false

Creating site

Run pkgdown from the package directory:

pkgdown::build_site()

This will generate a docs/ directory with a website for your package.

Publishing site

  • navigate to Settings of your GitHub repository,

  • in GitHub Pages section choose master branch /docs folder as your Source

  • Save

Site should be published: <user/organization>.github.io/<repistory name>