Create Project Update Pages¶
Here are steps to create your versions of class website, make updates, and create a pull request to class github repo.
Tip
Demo screencast video (Log in with your UCSB NetID)
Step 1. Fork class github Repository¶
You need to fork the class github repo here to your own github. To fork class github repo:
Go to class main github repo here to your own github. At the top right corner click Fork.
Choose to fork to your own github.
You should see the repo is forked to your github.
Step 2. Enable Actions¶
Actions will allow the github pages to automatically rebuild each time you commit an update. To enable Actions:
On your own repo of class website choose tab Actions.
Click the green button to enable Actions.
You should see the workflows of this repo have an action called deploy.
Step 2. Publish Github Pages¶
The github pages will allow you to view and test updates that you made on this repo before you create a pull request to the class main repo. To publib github pages:
Go to Settings. In Options, scroll down to Github Pages.
Choose the source is gh-pages branch. Click save.
Wait and refresh the webpage until you see a green tick said “your site is published”.
Click at the website link to confirm that the github pages is published.
Step 3. Update team project¶
Now you have your own github pages to test run updates that you make for your teams, we are ready to make some changes. To update your project:
From your forked repo, the directory for your team is
ucsb_ds_capstone_projects_2021/projects/["your team name"]
Choose the file that you need to update. You can create directories for additional files such as images.
Update the file (using Jupyter book MyST Markdown) and commit changes.
Wait until you see the green tick in Actions, which means your github pages is rebuilt.
View your changes on the website by go to github pages link in step 2, check if it is ready to be publish on the class main website.
If changes you made are ready to be publish on class website, go to your repo. Choose pull request. Create a pull request to the main repo.
After you create a pull request, course staff will check your request for conflicts. If your request is accepted to the main repo, your update will be seen on the class website.