Skip to main content

How To Contribute

Contributing To This Lab Manual

This lab manual was built using Quarto. Quarto is a system for building documents (websites, PDFs, etc) from Markdown and Jupyter notebook inputs. You are welcomed (and encouraged!) to contribute to this lab manual, either by suggesting small changes or adding larger pieces of content, such as guides for common tasks or software tutorials. Doing so is also good practice for writing and using GitHub!

Minor Contributions

If you notice that a current page has formatting issues or contains typos1, you should create a pull request with the fixed page. The majority (if not all) of the pages which make up this lab manual are .qmd files written in Markdown (specifically, Quarto’s flavor of Markdown) and should be straightforward to edit.

1 Which is unfortunately likely!

Major Contributions

Major additions (new tutorials, etc.) should also be submitted with a pull request. The only real difference is to pay attention to the format of the new document:

  • Material which is mostly text-based (maybe with some code snippets) should be written as a .qmd file, primarily in Markdown.
  • Code-heavy tutorials can be written as a .qmd file, or can be submitted as an .ipynb Jupyter notebook. Depending on the language, we may need to modify the GitHub action to install the associated language so the site can compile properly; this is not a problem.

In either case, the new page should go into the associated folder for the section (e.g. put a new knowledge-base page in kb/) and needs to be added to the navigation in _quarto.yml. This document uses hybrid navigation with sections in a top navbar and individual pages in a sidebar, so make sure you add the new page to the right section.

Previewing Your Changes

The manual is a Quarto website. To see your changes before opening a pull request, install Quarto and run:

quarto preview

This serves the site locally and reloads as you edit. quarto render builds it once into _site/ without serving, which is what the pull request check runs. There are no executable code chunks in the manual, so you don’t need R, Python, or Julia installed to build it.

A pull request fails its check if a page doesn’t render. Quarto only warns about a link to a page that doesn’t exist, so look for “Unable to resolve link target” in the render output before you open the pull request. Merging to main publishes the site automatically.

Conventions

A few patterns to match so the manual reads as one document:

  • Voice: second person for the reader (“you should”) and third person for Vivek (“Vivek will”). Avoid the first person, since the pages outlast any one author.
  • Cross-references: link to the relative path of the .qmd file, not the rendered URL, as in [Data Management](../guides/data-management.qmd). Quarto rewrites these links and warns when the target doesn’t exist.
  • Callouts: callout-note for an aside, callout-tip for advice, callout-important for something with consequences, and callout-warning for something that will go wrong if ignored. Callout titles are the reader’s question (“Is My Data Backed Up?”) or a short instruction (“Pin the Package Version”).
  • Aliases: if you rename or move a page that was already published, add an aliases: entry with its old path so existing links keep working.
  • Claims you haven’t checked: if something couldn’t be verified (an unpublished policy, an undocumented command), say so on the page. “We could not confirm this” is more useful than a confident guess, and easier for the next person to fix.

Reporting a Problem Without Fixing It

You do not have to write the fix. Open an issue describing what is wrong, missing, or confusing.

Issues are especially useful from people who have just joined, because you can see which parts of the manual assume knowledge you don’t have yet. Once something is obvious to you, it’s hard to notice that it was ever unclear.

Anyone can open an issue; you don’t need to be a member of the group.