I have a project on GitHub that has a directory containing some automatically generated HTML documentation. I would like to use that documentation within GitHub’s project pages facility.
So, I’ve read the instructions on how to create the project’s gh-pages root branch. This effectively creates an empty branch.
What I’d like help with is mirroring the html files in the /docs path from the master branch, so they are in the root of the gh-pages branch. What is the best way of approaching this?
Answering my own question here… have achieved what I wanted with Git submodules.
I basically copied what’s detailed in this sake task, but in summary:
docspath into a temp folder. Commit changes.gh-pagesbranch as per the usual instructionsgh-pagesbranch. Commit changes.gh-pagesas a submodule in thedocsfolder.