The website is built off of the main branch.
- Create a new branch to contribute to the site.
- Work in and commit to your new branch.
- When finished, create a pull request for review.
When you commit, please create helpful messages/descriptions (e.g., "Update Gaussian Beams Week 2 Prelab").
Since GitHub Pages will only build off of the main branch, you will need to host the website locally and develop in your new branch. The site is set up to run in a Docker container so all dependencies are consistent across all development environments.
- Docker installed on your system.
- VSCode with the Dev Containers extension installed.
- Pull all updates to your local repository.
- Run
docker-compose build
thendocker-compose up
. You should now have a container running (you can verify in Docker Desktop). - Open the local repository folder in VSCode.
- Press
Ctrl+Shift+P
, and choose "Dev Containers: Attach to Running Container...". - Open a web browser and confirm the site is hosted locally by visiting: http://localhost:4000/PHYS-4430/
The "raw" lab guide markdown files are located in the raw-content
directory. Jekyll is configured to ignore this directory, as there are additional steps required to generate the content for the site (discussed below). The files in the raw-content
directory are what should be edited (not the html files in the _includes
directory).
The html files in the _includes
directory are generated by running the raw-content\mdtohtml.sh
script.
The lab guide files, raw-content\labX-raw.md,