I have a gh-pages branch in my repository. My gh-pages branch and master branch are in an identical state. Both have index.html included in them. The settings page for my repository says Your site is published at https://[me].github.io/[appName]/. When I visit that URL, I receive a 404 error. When I visit https://[me].github.io/[appName]/index.html (with the specific asset index.html specified explicity) then it works, meaning the expected assets are located where expected, and function correctly. How can I get GH Pages to pick up my index.html file?
The problem resolved with a subsequent code change and push to origin. I don't know why, but after performing a bug fix and pushing the code via git push origin gh-pages everything showed up on all machines in all regions in all browsers that were previously not working.
Make sure you have declared a proper !DOCTYPE in your index file.
If you had just added the file, then give it some time and let github detect the file. https://[me].github.io/[appName]/ should work after a while.
Related
I want to upload some webpage to test GitHub pages but I have a problem because it just shows the index.html and not the style.css and script.js that are inside the style and scripts folders.
I already have my link.
Well, the solution was... I have just to put "./" before every root I have taken.
This is probably the side-effect of a recent GitHub incident
GitHub Pages is now experiencing degraded performance. We are continuing to investigate.
While the incident has been resolved, GitHub pages are not processed immediately.
Hopefully, performance will improve.
I've just set up a new GitHub Pages page: https://philipnye.github.io/ainfo. I'm not using Jekyll.
My GitHub repo has a web folder that itself contains a number of sub-folders, e.g. web/2044. Within each is an html file, with a name such as Abbey-Academies-Trust.html.
I was expecting to be able to view the relevant page at https://philipnye.github.io/ainfo/web/2044/Abbey-Academies-trust.html, but I'm getting a 404 error.
In that particular folder - web/2044 - I've also created an index.html file, but I'm getting a 404 error for https://philipnye.github.io/ainfo/web/2044/index.html too.
I'm clearly missing something, but I can't see anything in the documentation that suggests why this isn't working.
For the first url, it's a caps problem on Trust : https://philipnye.github.io/ainfo/web/2044/Abbey-Academies-Trust.html.
For the second url everything is ok. The problem was certainly that you have near 2000 pages and that Github page took a while to generate your site.
I don't have jekyll in my project and all my files are Case-Sensitive so they are displaying in the correct order offline when running gulp locally, but when pushed to gh-pages broken image icons display
http://imgur.com/uUajk.png
and here is the site when it is hosted on gh-pages.
http://badview08.github.io/colonialLife/
I took a look at your site and it seems the error is:
GET http://badview08.github.io/dist/img/slide1.jpg 404 (Not Found)
If you go to that URL, you get the expected 404.
However, if you change it to http://badview08.github.io/colonialLife/dist/img/slide1.jpg it correctly finds the image.
In your markup, I would change src='/dist/img/slide1.jpg' to either:
src='colonialLife/dist/img/slide1.jpg' (correct sub directory)
or
src='./dist/img/slide1.jpg' (relative pathing)
I have a Github pages website for our team at http://olinaeromarketing.github.io/. I've tried opening index.html locally and it works perfectly in chrome on my pc. Everything loads perfect. However, when I push everything to Github and try to open it with http://olinaeromarketing.github.io/, everything except index.html gives a 404 error and can't load. I'm pretty stumped as to why this is happening. I also haven't been able to find anything on the web regarding this issue.
The repository is located at https://github.com/OlinAeroMarketing/OlinAeroMarketing.github.io. BTW, the website is currently a WIP and not yet finished.
By default, Jekyll is used to process GitHub Pages. Files/directories that begin with an underscore have special meaning for Jekyll and are, therefore, treated differently.
Since you don't seem to be using Jekyll, your simplest solution is to add a file named '.nojekyll' to the root path to disable Jekyll functionality.
Check out https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/ for more info.
Edit: Just to be clear, the offending directory is '_include'.
I am creating my website on github page, I am not using jekyll or any of its kind, it's just pure javascript and html css. Why sometime it gives page build failure? what it is building then?
By default in a github repository, the gh-pages branch is build with Jekyll.
If you have underscored folders (eg: _myfolder) Jekyll tries to build. If they are not real Jekyll folders, this breaks the build.
If you don't want to process you html/js code, add a .nojekyll file at the root of your code. Github will then not try to build, it will just serve your pages as is.
More info in Github pages doc
I was facing the same error. I was using only HTML, CSS and JS just like you. Also adding .nojekyll made no changes, I was still getting the same error.
Then I figured out the error in my code editor(VS code). VS code shows if there any problems in the code only the bottom left corner.
The thing that caused error was that I was missing a colon(:) in my css code.
So check your code once more if it this kind of minor issues.