Creating Online Portfolio
To create an online portfolio based on a Quarto book, you need first to fork a template repository and publish it. Follow the steps below to do so:
- Navigate to this GitHub repository: https://github.com/mac-stat112/quarto-book
- Click Use this template –> Create a new repository
- Give your repository appropriate name, eg, 112-portfolio –> click Create repository
- Wait till GitHub create the repository under your account
- Click Settings –> Click Pages under the Code and automaton section on the left navigation bar –> under the Branch section, change None to Master, from the new dropdown menu that appears, select /docs –> click Save
- Wait a minute till GitHub publish your portfolio –> Refresh the page –> you will notice that a URL for your portfolio appears at the top of the page –> click it to browse into your portfolio (Hooray 🎉, your portfolio is now up and running and you can share it with the world) –> copy the link submit it via the Central Form using the approptiate option.
To customize your portfolio and add content, follow the steps below:
- Go back to main repository by clicking the Code tab
- Click Code button –> click Open with GitHub Desktop
- Select an appropriate Local path –> click Clone
- Select For my own purposes –> click Continue
- From the Repository menu –> select Show in Explorer/Finder
- From the opened menu, double-click the file ending in Rproj
- There are 3 places/files that you need to look at:
- the
_quarto.ymm
file. This file tells RStudio which files to add to the website when when hitting the Render Book button located in the Build pane located in the upper-right area of RStudio - the
.qmd
files inside theactivities
andnotes
folders. You can modify or remove the sample files and add new ones. When adding or removing files, make sure to mention/un-mention them in the_quarto.yml
file as well.
- the
- After finishing a coherent part of an activity or note, hit the Render Book button and inspect the generated website. If satisfied, head to GitHub Desktop –> write a meaningful commit message, eg, Finish activity 3 –> commit –> push