Without your writing any webserver code, GitHub can recognize specifically-named repos/branches and will serve a static page (including HTML/CSS/JS and other static files) at a certain GitHub-based URL. This means free hosting for your public demos, and makes it really easy to host a doc/demo site associated with each of your repositories. You can even set it up with a custom domain.
- Accessible at:
yourusername.github.io
- GitHub automatically reserves this URL for every user and organization to use as their User page, although nothing is published there until you publish.
- To deploy a static site to this URL:
- Create a Github repo with the exact name:
yourusername.github.io
- Create a Github repo with the exact name:
- Commit an
index.html
in the root folder to themaster
branch and push. (From the index page you can link to other folders/files as usual)