Learning material for Coding Pirates Odense. This repository houses our learning material, presentations, and more.
We use Quarto to build our materials because it allows us to both generate a website and PDFs of our material.
This project is organized into the following folders:
To contribute or run the materials locally, you need:
To preview your changes locally, run the following command:
# Preview the entire library
quarto preview
# Or preview a specific file
quarto preview compendiums/template/index.qmdSometimes Quarto shows a white page, even though it shouldn't. To fix this, try one of the following:
- Hard refresh:
Ctrl + F5(Windows/Linux) orCmd + Shift + R(Mac). - Restart: If a refresh dosn't work, stop the command in your terminal (
Ctrl + C) and run your preview command again.
Note: Also make sure you are on the correct page.
We want to make it easy to contribute. To encourage fast updates, we allow direct contributions to the main branch without a formal review process.
- New content: Feel free to create and push new compendiums, presentations, and more directly to main. Mark your changes as drafts, if they aren't ready to be on the actual website.
- Existing content: If you wish to modify existing material, please reach out to the original author first to discuss your changes.
- Verify first: Always run a local preview to ensure there are no formatting or code errors before pushing.
If you want to create a new resource, then you can use the template folder within compendiums or presentations as a starting point. Remember to copy it, not write directly in it.
git clone https://github.com/Coding-Pirates-Odense/vidensbank.gitquarto previewCommit your changes to the main branch.
To make your changes live on the website, run the following command from the main branch:
quarto publish gh-pagesThis command will render the website, copy the output to the gh-pages branch, and push the changes to GitHub. GitHub will then add the changes to our website.