Manual Setup
These instructions are for those who don't want to use GitHub's Fork feature to consume the project.
I also have/had to do this in order to use this project for the https://ProjectDepot.github.io/ page - I'm writing this page while doing that.
Prerequisites
You should have Git and npm installed.
Initial Setup
Create a repository on GitHub called the following using your username:
USERNAME.github.ioand set it to Public.Clone the project, setting the name appropriately as you did above.
git clone https://github.com/ProjectDepot/SrcGallery USERNAME.github.io
cd USERNAME.github.io(optional) Copy the
src/config.user.ts.examplefile and name itsrc/config.user.ts. You can learn about this file here.Now for some git commands to add your. In the second command below, you should replace
USERNAMEwith your username.
git remote remove origin
git remote add origin git@github.com:USERNAME/USERNAME.github.io.git- Set your repo to receive updates from the main repo:
git remote add upstream https://github.com/ProjectDepot/SrcGallery.git- Push to GitHub.
git push -u origin maingit config pull.rebase false- Enable GitHub Pages by going to your repo's Settings -> Pages and set the Branch to
gh-pages.
Updating
You'll need to have the repo cloned locally and run the following to pull changes form the main repo and to push them to your project on GitHub:
git pull upstream main
git push origin main