Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 4.64 KB

File metadata and controls

90 lines (73 loc) · 4.64 KB

Bio-OCS Quarto Template

This is a template for creating websites from qmd files hosted on GitHub with three helpful automations following a pull request to the repository:

  • Spelling check
  • Broken link check
  • Website rendering.

This is all supported by the OTTR Template, specifically the OTTR Quarto Web version.

  • Check for spelling errors more intensively than RStudio and allow you to add words to the dictionary
  • Check for broken links - you will be warned about broken links
  • Automatic rendering of the website for previewing before merges
  • Automatic rendering of the website upon merging to main
  • Docker images that can be customized.

This specific template sets up the style and content template for Biomedical Open Case Studies (Bio-OCS).

Repository Structure + Checklist for files to update when using the template

Style and Configuration

  • _quarto.yml -- Configurations for how the rendered website will look.
    • Update the title on line 6
    • Replace the Google analytics tracking ID ("G-XXXXXXXXXX") with the appropriate Bio_OCS case study specific tracking ID on line 17
    • Update the GitHub Repository link to point to the specific open case studies repository instead of the template
      • line 11
      • line 28

The rest of these files will largely not need updated though a brief description of what each contains is provided.

  • styles.css -- Defines html elements
  • _brand.yml -- Logo and favicon definition
  • config_automation.yml -- Configurations for the OTTR Template automations. Update this file to toggle spelling or url check as well as minimum errors allowed for those checks or to update the docker image.

Directories

  • data/: Raw, imported, and wrangled datasets. raw/pm25_data.csv, imported/pm25_data_imported.rda, and wrangled_data.csv are template files that can be removed or overwritten by case study repositories.
  • assets/: Template images such as the logo or icons.
  • img/: This is where images should go for the case study background, motivation, etc.
    • Replace the mainplot.png from the template with your main plot
    • Add any additional case study specific (non-template) images in this directory
  • resources/: Files related to OTTR checks (e.g., dictionary and a file of URLs to exclude/ignore from checking.).
  • .github/: workflow files supporting the OTTR template automations
  • docs/: the rendered files that GitHub pages will use -- refreshed through OTTR template automations.

Content

For the overall content of the Open Case Study, each portion of the case study is split into individual .qmd files. They are included in order within the index.qmd file. Certain case studies will not have every component, and so we can toggle those on and off using short code and header booleans. This is mostly for others using our case studies to teach, as they might want to have a version that only has part of the case study. For our core team, we will likely have all components for our case studies. Below is a list of all of the sub-component .qmd files in checklist form. Besides the listed changes below, index.qmd should not need updated.

  • index.qmd

    • Update Case Study Title
    • Update any header booleans for section inclusion or add additional short code content-hidden sections as necessary
  • _main_image.qmd

    • Provides an example of including images with Quarto
    • switch out mainplot.png within the img directory to be the case study main plot.
  • _ocs_frontmatter.qmd

  • _cite.qmd

  • _motivation.qmd

    • Provides an example of including images with Quarto (including those that you can click to open in a larger preview)
    • Provides an example of a custom definition box
  • _main_question.qmd

  • _los.qmd

    • _data_science_los.qmd
    • _statistical_los.qmd
    • _biological_los.qmd
  • _packages.qmd

  • _context.qmd

    • Provides an example of including a video with Quarto
  • _data_description.qmd

  • _limitations.qmd

  • _bioethics.qmd

  • _data_import.qmd

  • _data_exploration.qmd

  • _data_wrangling.qmd

    • Provides an example of including code annotations with Quarto
  • _data_visualization.qmd

  • _data_analysis.qmd

    • Provides an example of using a column margin note with Quarto
    • Provides an example of a custom question opportunity box
  • _summary.qmd

  • _suggested_hw.qmd

  • _additional_info.qmd

  • _acknowledgements.qmd

  • Verify

    • Every image ....
      • has accompanying alt text (using {fig-alt=""})
      • has lightbox capability enabled (using {.lightbox}) so that images can be opened in a larger preview