项目作者: rnabioco

项目描述 :
scRNA-Seq analysis vignettes
高级语言: HTML
项目地址: git://github.com/rnabioco/cellar.git
创建时间: 2017-03-16T16:58:30Z
项目社区:https://github.com/rnabioco/cellar

开源协议:

下载


cellar

scRNA-Seq analysis vignettes

website

https://rnabioco.github.io/cellar/

adding content

We will use pull requests to add content to avoid clobbering the master branch. When generating new content, make branch (e.g. class4) synced with master. Then change to this branch for developing new content.

The site is now being built as a distill blog. This makes it easy to add new class content as blog posts, which don’t require rerendering previous Rmarkdowns.

To make a new post, follow the distill blog tutorial

Essentially, run create_post which will create a subdirectory and template Rmarkdown in _posts.

  1. library(distill)
  2. create_post("class-1", draft = TRUE)

Navigate to the Rmarkdown in the _posts subdirectory, add content, then knit and check output html file. If the content looks ready to publish, remove draft: Truefrom the header, add the post directory to the list of posts in the yaml header of classes.Rmd, reknit the post, then rebuild the site using the Build website button under the Build tab in Rstudio. Build website will update the classes listed in the Classes tab, unless draft: True is set. Also note that Build website will copy all files in the project into docs unless you list the files/directories to ignore in the _site.yml.

E.g. exclude: [“data”]

You can preview the website by viewing the index.html in the _site directory.

Once satisfied with the content, commit the content in the _posts directory and the changes in the docs directory to your branch. The docs directory contains the html that will be shown on the github pages website. A pull request can then be used to merge in the content to master.