404 not found . hekp me to solve this - github-pages

I made my own page in github but it doesn’t open it's only showing 404 not found. All this for coursera HTML, CSS, Java Script course.
https://felixking554.github.io/coursera-test/site/
Here's my page

The default Jekyll configuration would generate a site in _site, not site.
Try and set in config.yml your destination : ./site, and see if the site/ folder would be now recognized as GitHub pages.
If not, try and follow the documentation, like this step by step tutorial.

Related

GitHub Pages User Project Custom Domain

I am trying to use the custom domain https://tahdo.app/ for my GitHub project page found at https://votemike.github.io/todo/
I'm most of the way there. But at the moment, https://tahdo.app/ shows a white screen with a console error of GET https://tahdo.app/todo/static/css/main.3bffc114.chunk.css net::ERR_ABORTED 404.
I assume this means that the https://votemike.github.io is being replaced with https://tahdo.app/ instead of replacing the whole GH Page URL with my custom domain.
I have the 4 A records that GitHub specify, and the CNAME pointing to votemike.github.io as they suggest.
Supplementary info: I'm using create-react-app and gh-pages to deploy to GH Pages
What am I doing wrong?
It turns out I needed to update the homepage field in my package.json file.
Read more about the answer here: https://dev.to/brettcnelson/getting-create-react-app-to-work-with-custom-domains-on-github-user-project-pages-2hp2

Why not create github.io (github page)

I have created github page.
0
URL : https://github.com/khkong/khkong.github.io
When I access my page, I get a 404 error. I can not find the site. (https://khkong.github.io)
There seems to be a limit to the creation. Help.
When I create a GitHub-page, the URL is https://adarkhero.github.io/PROJECTNAME/ - So, try adding the name of your project to the URL (Like https://khkong.github.io/testproject). You can also see the link to your GitHub-page in the settings of your repository.

Host Hugo website on github-pages

I created a static website using Hugo and I don't know how to host it on github. The documentation on their website didn't help me.
After finishing my website, I created the public folder which contains in theory all the files needed for the website (whith this command : hudo -t hyde-hyde). When I open index.html with chrome I only see the content of my website without the theme. Is it normal ?
Then I moved all the files within the public folder into my gihub repo username.github.io/ , but I can't see any result (I can only see my previous commit which is a simple Hello World).
How should I porceed to generate correctly my website and host it on github ? Thanks.
How to create with HUGO
If you have a problem while creating your site, check this tutorial.
How to Host HUGO website on GitHub (Pages)
Check this LINK where it shows you step by step all the procedures to host HUGO on GitHub, on both User/Organization Pages and on Project Pages.
Check list:
When I open index.html with chrome I only see the content of my website without the theme. Is it normal ?
I know it might seem a little too obvious, but check the spelling. Sometimes you spend hours trying to find the error and it's just a typo, this case in the theme you wanted to.
Have you tried another browser? It might not be the case, but checking it will get you out of doubt, also remember to delete the cache just in case.
Then I moved all the files within the public folder into my gihub repo username.github.io/ , but I can't see any result (I can only see my previous commit which is a simple Hello World).
Do you have a User/Organization Page (syntax: username.github.io) or a Project Page (syntax: username.github.io/project)?
UPDATE 1: Follow the instructions on this video for hosting on GitHub if unclear.
Could you add a link to your repo? Thanks.

Sub-pages on a GitHub pages site

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.

Github page build failure

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.