Main site pages
All remaining pages to setup the website are placed in the root folder.
Don’t expect this package to work outside of our specific application
The bs2site package is used to build our teaching websites (biostat2.uni.lu or rworkshop.uni.lu). These websites combine different Rmarkdown formats in order to include practicals and lectures.
Our websites are built on gitlab using continuous integration (CI). bs2site
helps to:
_
)
package.yml
file.rds
files in a standardised location (i.e. used as a cache synced with git LFS).keyring
package)You can install bs2site from github with:
# install.packages("devtools")
devtools::install_github("koncina/bs2site")
The folder structure of the website source directory is the following:
├── lectures
│ ├── img
│ ├── lecture_01.Rmd
│ └── ...
├── practicals
│ ├── img
│ ├── practical_01.Rmd
│ └── ...
├── projects
│ ├── img
│ ├── project_01.Rmd
│ └── ...
├── css
│ ├── lecture.css
│ ├── practical.css
│ ├── site.css
│ └── ...
├── img
├── Makefile
├── index.Rmd
├── lectures.Rmd
├── practicals.Rmd
└── ...
Each lecture should be placed in the lectures
folder and named as lecture_xx.Rmd
where xx
is a zero padded number. The format used to render the lectures is iosp.
Each practical / project should be placed in the practicals
/ project
folder and named as practical_xx.Rmd
/ project_xx.Rmd
where xx
is a zero padded number. The format used to render practicals / projects is unilur.