I want to host solutions to exercises (discussion and code) for two programming books I’m writing. I’ve learned how to create a Pages site (username.github.io) but am having trouble figuring out the structure of my site. I’m especially confused about the purpose of the gh-pages branch and the use of a project.
The documentation says, “The default publishing source for user and organization sites is the root of the default branch for the repository. The default publishing source for project sites is the root of the
One site I saw used one repository for the book and placed the code files in the main branch. Then the author used the gh-pages branch of the same repository for the solutions documents (written in md) and the Pages files in the gh-pages branch. Using a branch this way seems odd to me. And the site does not have any projects. I am more inclined to use two separate repositories, one for the code, the other for the website. But I still have no idea where a project might come into play.
What am I missing here?