Getting "Page not found" error in publishing website via Github - github

I am relatively a new user of R and it is my first post in StackOverflow, so please excuse me if I do not give the relevant information about my question :) My problem is basically about getting a "Page not found" error while publishing a website via Github. For the last couple of days, by using blogdown, I want to publish a personal website. I installed blogdown in my local R environment, designed a website, and then pushed the documents to the GitHub repository. In the GitHub settings section, it is written that my website is published, however when I try to enter the relevant website, I have always got the same problem - "page not found". I actually do not know the problem but you can find my repository in GitHub at https://github.com/muhammetozkaraca/muhammetozkaraca.github.io. The website address that I am trying to publish is https://muhammetozkaraca.github.io. Every kind of help is really appreciated. Thank you in beforehand.

You should separate the source repo from the website repo. Please see the blogdown book page at https://bookdown.org/yihui/blogdown/github-pages.html for more info. In short, the repo https://github.com/muhammetozkaraca/muhammetozkaraca.github.io should only contain the generated website, i.e., it should only contain files that currently live in the public/ directory. Currently, your muhammetozkaraca.github.io repo contains both the source (root directory) and the generated website (the public/ directory).

I think you are making repository inside your username only.
I would recommend building organization with xyz and make a repository with name xyz.github.io.
Add an index.html inside this repository.
Then it will be good to publish as you wanted.
RARE: 'Sometimes it takes 2-5 minutes to publish.'

Related

Problems publishing a website in GitHub. GitHub Pages is different on my end. Can't follow along tutorials

I have a problem with publishing a website via GitHub. When I try to follow along a website like this: https://progate.com/docs/github-pages, in the step 5 (Publishing your webpage), I don't manage to see what the author of the tutorial sees in GitHub Pages (this: GitHub Pages) but rather i see this: Pages in my end (and when clicking on "add a domain" I see this pages/add a verified domain). What should I do after uploading my repository in GitHub, to publish a website via GitHub if I see what I see instead of what the tutorial says I should see (when going to Pages in GitHub)?
Could you please help me with this? Thanks.
From what I understand, you are going to the wrong place. It looks like you are going to the "Pages" tab of your profile, not your repository. Make sure you go to your repository first, then go to "Settings", then you will find the "Pages" tab on the right, like this:

Github Pages not showing up

https://github.com/jchu4483/auth0
I'm following Github's tutorial to host a Github Page. I creating the repo and set the Github Page to track my main branch and published the Page.
Github says my site should be published at http://test-blog-on-qa.com/auth0/ but the site doesn't load. As a side note: Why would Github choose that weird domain name(test-blog-on-qa)?
I've chosen a theme(Jekyll), pushed an empty commit to rebuild but nothing works. This should be very simple so I'm confused as to what could be wrong?
You are using the Github Custom Domain for your site chu4483.github.io.
Have a look at: https://github.com/jchu4483/jchu4483.github.io/blob/master/CNAME
That's why test-blog-on-qa.com is used as the domain name automatically.

Jekyll problems with publishing on GitPages

I have just created my first jekyll page, trying to use github.io
What am I doing wrong, as the page seems to serve correctly on my local machine yet it does not on the GitPages.
If you want to use a github.io URL, the exact URL of your GitHub page depends on the name of your repository.
This is explained here in the GitHub Page documentation:
User, Organization, and Project Pages
If you want your website URL to be https://cstml.github.io/ (called "user page" in the docs), the repository must be named username.github.io, i.e. in your case:
https://github.com/cstml/cstml.github.io
If you want your website URL to be https://cstml.github.io/some-sub-dir (called "project page" in the docs), the repository must be named some-sub-dir, i.e. in your case:
https://github.com/cstml/some-sub-dir
In my search for trying to solve it I have changed the name of the repository to my cstml.github.io GitHub-pages and that seems to have fixed it. Don't really understand why that is at the moment but it seems to be working.

GitHub public link format for accessing my website

I made a GitHub account. Ex: github.com/username
I made a repository (for a website) Ex: github.com/username/website
I'm new to GitHub, and initially, I thought the public access link to the website must http://website.github.io, but that doesn't work! All I'm getting is 404 no matter what I try.
I've tried the following examples:
username.github.io
username.github.io/username
username.github.io/website
username.github.io
website.github.io/website
username.github.com/website
but nothing works.
Finally, after an hour's worth of stumbling around, I realized that I would have to change my website's name to https://github.com/username/username so that http://username.github.io will work as the public link, Which I, obviously, don't want. I want http://website.github.io ideally or at least http://username.github.io/website
So, how do I make it work? How do my visitors access my website? Is it even possible to have it my way? If not, then do I have to make a new account for every new project? Won't that just defeat the purpose of a GitHub account?
So, how do I make it work?
https://username.github.io/projectname works for me, where username is of course my user name and projectname is the name of the repository. HTTP would probably be fine, but I checked the box to require HTTPS.
I want http://mywebsite1.github.io ideally
There's a "custom domain name" setting that purports to let you use your own domain, so you could something like http://myproject.mywebsite1.com/.
or at least http://UserName.github.io/mywebsite1
If mywebsite1 is the name of your project, you should be good to go -- that's the same format that worked for me above, except you're allowing http instead of just https.
Am I missing something crucial due to my day-0 newness on github?
It's possible that you've missed a step, or that you've restricted access to the project. It might help to go back to basics: forget everything you think you know and just follow their guide.
To create a website using GitHub pages you need to create an index.html file into any repository (No matter what name your repository is).
Then you need to publish your repository to be able to have your website.
First, go to your repository
Then go to Settings tab
Scroll down until you reach GitHub Pages
Then in source, you need to select your branch, in your case master branch
Then click on save and you are ready to go!!
Your repository will be online at http://username.github.io/yourRepoName
If your repository name is username.github.io your website will be live at http://username.github.io
Also, you need to know that you can only public static websites.
Understand GitHub Pages reading this.

Github page is not showing up after 3 hours

i have uploaded my files to github 3 hours ago,still its not showing up.I know it takes time but i don't think it takes that long.
i am talking about this page huge-psd-html.github.io
here is my repo psd to html
Since your username is wahidpolin and you created a repository named wahidpolin.github.io, your website will be (and is) available at http://wahidpolin.github.io.
If you want to have your website online at huge-psd-html.github.io, you should create an organization named huge-psd-html and a repository named huge-psd-html.github.io and push there the content of your website.
Currently it's showing 404 because there is no such website.