Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 7

Why is only the readme file being published to github pages

Solved! Go to Solution.

Hello,  I am struggling to figure out why the only thing I see on github pages is the readme file. 

 

I have been giving myself a crash course on all this for the last week so excuse my ignorance

 

I believe that I have the repo set up properly here:

https://github.com/ironmonkeeeee/ironmonkeeeee

 

What I am trying to do is add google ad sense tags to the website that the above repo builds. In order to see if any changes I make are working and to give me a sandbox I followed the instructions to publish to a github page here:

https://ironmonkeeeee.github.io/ironmonkeeeee/

 

However all I see is the readme file. Is this right? 

Since this is a working website I was expecting to see a copy of www.eostalk.io Am I completely missing something here?

 

Thank you in advance for your help!

-Dan

 

 

 

6 Replies
Solution
Community Manager
Message 2 of 7

Re: Why is only the readme file being published to github pages

Hi @ironmonkeeeee,

 

Looks like you've got your content in a folder, so your site is sort of available here: https://ironmonkeeeee.github.io/ironmonkeeeee/public/.

 

If you want that to be your homepage, you will need to move it into the root of the repository instead of that folder. Then you should be all set! 

 

Hope that helps!

Be sure to click Accept as Solution to mark helpful posts to help other users locate important info. Also, don't forget to give Kudos for great content!

Copilot Lvl 2
Message 3 of 7

Re: Why is only the readme file being published to github pages

Thanks! I actually was able to get that far in all of my tinkering around. Maybe I am just too unskilled to get the full page up there. In all of the tutorials I watched it shows that the index.md file is what was being used to make web pages. I guess my quest now is to find out what other files need to be there as well. I am trying to see where the ad slots will be and how they will display on the page when fully rendered.

Regards,

Dan

Copilot Lvl 2
Message 4 of 7

Re: Why is only the readme file being published to github pages

Copilot Lvl 2
Message 5 of 7

Re: Why is only the readme file being published to github pages

Same problem here. I have an index file which I was expecting to be displayed with github pages. But instead just the readme file is shown:

 

https://rbulph.github.io/resipsa/#/

 

https://github.com/rbulph/resipsa

 

The index file is in the master folder, not a subfolder.

 

How do I fix this?

 

Presumably being able to view what you are developing through github is fundamental to the service. Otherwise everyone working on the project has to keep downloading the files, testing them out locally, and then uploading them again. Which would be very slow. So it's a shame this hasn't worked more smoothly.

Copilot Lvl 2
Message 6 of 7

Re: Why is only the readme file being published to github pages

Also, assuming I can get this to work, how do I get it to work in relation to the branch that I am working on? I have created a new branch for my project, but the only options that I get for github pages are master branch, master branch/docs folder or none. My new branch doesn't appear.

Ground Controller Lvl 1
Message 7 of 7

Re: Why is only the readme file being published to github pages

Hi,

 

I'm not exactly following you and I'm having the same issue where my project redirects to the Readme file. When I deploy to github pages using ssh and NPM 'gh-pages' it wants me to run an 'npm run deploy' which runs a build script and places files in a build folder. So now there is a 'build' folder, a 'public' folder and with React a 'src' folder as well. So therefore I am able to access this:

https://t-gottschalk.github.io/nfl-team-rosters/index.html

 

but not this:

 

https://t-gottschalk.github.io/nfl-team-rosters

 

Please advise on what I need to do to fix. Thank you for your time.

 

Best,

Tony