I'm using Harp to create a static website that shall be hosted on GitHub pages. So far, everything works, but I'm a little bit concerned about the folder structure.
This is because GitHub pages expects the files that shall be delivered in the root folder of the repository.
So I ended up with the current structure:
/
.gitignore
index.html
_sources/
harp.json
README.md
public/
index.ejs
What bothers me is that I can not have the README.md
file on top-level (which means that when going to the repository on GitHub, I am always told that I should create one, and that I need to step down one level manually), if I do not want the README.md to be public via GitHub pages as well.
Additionally, the build step feels strange. From within the _sources
folder I need to run:
$ harp compile --output ..
This somehow feels wrong, compiling something and putting the result in the parent folder. It's a theoretical question, but if there was a _sources
folder within the public
folder, I'd end up with a big ball of mud :-/
Is there any way of how to structure this so that I can have everything in the _sources
folder on top-level, while still being able to serve everything as it now is from GitHub pages?