- Go to https://quarto.org/ and install the latest version of the Quarto command line interface (CLI) tool.
- You can use whatever GUI you are most comfortable with, but I recommend following the instructions for VS Code.
- All the files for the website are in this directory.
- Make any edits and then commit to the respository (see Git Best Practices{target="_self"}).
- A GitHub Action will automatically republish the site to deploy your changes (click into the Actions tab on GitHub to view the status - it will take a minute or two). To manually update the site (you typically shouldn't have to do this), navigate to the
/.github/workflows/subdirectory in the command line and then runquarto publish. (Note: You should be on the branchmainwhen you do this.) This will render the site locally and then automatically push to thegh-pagesbranch and update the GitHub Pages website. The GitHub repository has already been configured to publish from the root of thegh-pagesbranch.
For more detailed information, check out the instructions here.
We use these practices to simplify tracking live changes, keep an uncluttered workspace, and ensure changes are all deployed together.
- Always develop on your own branch instead of directly on main. This lets multiple users edit at once more easily. You can make your own branch by clicking on the "Current Branch" tab in Github Desktop and selecting "new branch"
- Branch names should beging with the branch owner's name. e.g.: "matt_lab1_edits"
- Try to minimize merge conflicts by keeping the scope of your branches small, merging them quickly, and communicating with the team. e.g.: "matt_lab1_edits" probably has a much more reasonable scope than "matt_lab_edits".
- Squash commits when you merge to main instead of leaving them separate. Do this by changing to the main branch, selecting the "Branch" menu and the "Squash and merge into current branch" option.
- Delete your branch after it is merged. Making new branches is cheap, and having old ones lying around can be confusing.
- We have a GitHub Action to republish the site.
Note [MS]: We may be able to set up Github to automatically squash commits and delete branches. Not figuring it out right now.