Skip to content

Latest commit

 

History

History
49 lines (25 loc) · 3.88 KB

README.md

File metadata and controls

49 lines (25 loc) · 3.88 KB

pfmc_assessment_handbook

This document was converted from this google doc.

This handbook is a living document. Please update it with your hard-won knowledge and experience so that others can benefit! There are several options for editing:

1. Quick and dirty

If you are making minor text-only changes to a single section of the handbook (i.e., one .qmd document), you are welcome to make changes directly from the GitHub web interface. No particular knowledge of markdown or quarto is required for text-only changes:

Once your edits are committed, GitHub will automatically render and publish the new html files. You can check the status of this update (and make sure there was not an error) through the actions tab of the GitHub repository:

2. From your local computer

You can also update the handbook the way you would normally make changes to a git repository, by cloning it to your local machine, making changes, committing them, and pushing them back to the remote repository. This is especially useful for more significant changes where you want to make sure the document will still render, or changes to multiple sections of the handbook at once. The directions below assume you know the basics of using git and GitHub, and are specific to rendering a quarto book. You can find more information on quarto books here.

Before editing the files, you will need to install quarto. You do not need IT to do this. Now, you can make changes. You can now use any text editor of your choosing. Below are directions for RStudio and Visual Studio Code.

Rendering quarto documents does not seem to work if the repository is housed on a network drive, so it is best to clone the repository to your own local harddrive.

RStudio

Once you have cloned the repository to your local machine, open "nwfsc_assessment_handbook.Rproj" in RStudio. It is important that you open the R project first and not an individual .qmd file. A new instance of RStudio should open. Now you can open the .qmd file(s) for whichever section(s) of the handbook you wish to edit, and make any changes.

While you are editing, feel free to flip between the "source" mode which is text only and includes the markdown-like markup, and th "visual" mode, which feels more like using a word processor:

Once you are done making your changes (or partway through to check things out), click on render to see what the formatted html site will look like:

Rinse and repeat. See the overview the folks from quarto wrote here.

Visual Studio Code

You will need to install the quarto VS Code extention. Open the .qmd file(s) that you want to edit and make any changes. Once you are done making your changes (or partway through to check things out), click on render to see what the formatted html site will look like:

Rinse and repeat. See the overview the folks from quarto wrote here.

When you are done

Commit and push your changes to the remote repository. GitHub actions will re-render the whole shebang and update the webpage where the handbook is hosted. You can check to make sure this process did not result in an error via the directions under "Quick and dirty".