GitHub pages only showing ReadMe file?
GitHub Pages is doing what it is designed to do: hosting the contents of that repository.
The root of the question asker's repository only contained a single file (README.md
). So there isn't an easy way to navigate to the other pages, e.g. repo/website/webpage.html
.
Consider moving your web content into the root of your repository and renaming your default page to index.md
or index.html
, depending what type of file it is. (By convention the default page of most websites is called index.html
, and this is what GitHub Pages will show by default if it exists.)
Github gives you multiple choices where it takes it sources from. By default its the root of the master branch, which will use the README.md
in case there is no index.html
.
But you can also switch to the docs/
folder in your repository settings. With that you can put the index.html
under the docs/
folder.
See