cct-datascience / group-handbook-template

Template for creating a lab group handbook with Quarto
Creative Commons Attribution 4.0 International
4 stars 2 forks source link

Lab Group Handbook Template

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

This repo provides a template for a wiki-like lab group handbook built as a Quarto book. A lab group handbook is a document that conveys a lab's ethos, policies, and procedures to group members (Tendler et al., 2023). Some of the content is University of Arizona specific (e.g. links in the code of conduct), but it is intended for use by anyone with any kind of lab group (or other group) to adopt!

Features

Tutorial

I ran a workshop on using this template at University of Arizona. You can watch the video or check out the slides.

Title slide reading "Creating a Lab Group Handbook with Quarto / Eric R. Scott / 2024-08-28

Inspiration

There is a growing list of open lab group handbooks that you can get inspiration from (with proper credit of course!)

How to use this template

  1. Use this template—click the green "Use this template" button on this page to create a copy in your own GitHub organization (or personal account)
  2. Clone your new repository to your computer (e.g. by creating a new RStudio project)
  3. Preview your book by running quarto preview in the terminal
  4. Edit the _quarto.yml configuration file to customize it to your group (see below)
  5. Edit the .qmd files to customize it to your group (see below)
  6. Delete these instructions from your README.md (and please credit this template!)
  7. Commit your changes and push to GitHub
  8. Publish to GitHub Pages by running quarto publish gh-pages (see below)

See Get started with Quarto and the Quarto book documentation for more on customizing this template.

Things to edit

In README.md

In _quarto.yml

In the various .qmd files

To preview

In the terminal run quarto preview and it should open a live preview of your book in a browser window. When you make changes and save them, this preview will update.

To publish

You only have to do this once.

In the terminal, stop the quarto preview process if it is running, run quarto render and then quarto publish gh-pages. When this is successful it should open up your book in your web browser. After this, the GitHub action included in .github/ should automatically re-render and deploy your book when changes are pushed to the main branch on GitHub.