Cem
Cem

Reputation: 21

Publishing a webpage from GitHub

I created a repository in GitHub and then a new folder in that repository. I uploaded the necessary files (index.html, style.css and an image) in this folder. But whenever I tried to publish my webpage, I couldn’t.

Although there is no problem to publish it directly from the repository (without having another folder), when I try to publish it from the folder in a repository, I see the content of the "readme" in the browser. How can I solve this problem?

Upvotes: 2

Views: 110

Answers (1)

VonC
VonC

Reputation: 1323075

The publishing source for a GitHub pages project is by default a branch.

Make sure to select your folder if you want to publish it from a directory:

https://docs.github.com/assets/images/help/pages/publishing-source-folder-drop-down.png

But that folder might be limited to "docs/"

Upvotes: 1

Related Questions