username.github.io pages not published as github pages - github

I have Created the repository named as username.github.io and tried to access the same URL in browser but i'm getting 404 error.
Checked in repository settings -> Under Github Pages Section, But it was not showing the message "your site is published at username.github.io"
Apart from this, is there anything i have to do...
Screenshot:
Actual URL: https://username.github.io

To create a GitHub Pages site for your own username (i.e. a personal website and not a website for a repository), you need to replace the username part of username.github.io with your GitHub username. For example, if my username on GitHub is abcde, I would create a repository called abcde.github.io and then enable GitHub Pages in its settings as you have done.

You need select source branch to publish(Initially it will be none. So nothing published) in
Settings -> Github pages --> source and click save. Then only it will be published to username.github.io URL.
Make sure your branch has index.html file.

Normally, github pages URLs are generated as username.github.io/repo-name.
I'm not sure what naming the repo as you did would do, but in most cases, just name the repo as you normally would (a description of the project) and then publish the sites that way. If you already have code, here is how to rename the project in Github and updating the remote url
I'm not sure exactly why your pages aren't generating, but it likely has to do with the name of your repo.

Related

When I attempt to deploy on GitHub all I can see is the Readme file

I am trying to deploy my project on GitHub, and every time it's either a 404 error when I switch it to Docs/, or it only shows the README file.
I am uploading it on the GitHub website.
How can I see my site content?
Double-check your Publication sources for your GitHub Pages.
select the main branch
select the docs folder
Then you won't have to "switch" to docs/ when visiting http(s)://<username>.github.io (for a user site) or http(s)://<username>.github.io/<repository> for a project site, depending on the name of your GitHub repository (<username>.github.io or just <repository>)

How to make a github pages for an organization

We have an organization on github, and in one of the repo's I'm trying to convert it to a simple github.io page to present the MD files in the repo. I'm following this guide.
It seemed easy enough, I added an _config.yml file to the repo and enabled github pages in the settings.
The problem is that github now shows that the site is published at our www.ORGANIZATION_NAME.org/wiki. But we don't own that domain. That domain isn't a registered domain in our github organization settings. I really have no clue where it got the name from, it seems completely arbitrary.
Is there any way to get a ORGANIZATION_NAME.github.io or similar default domain?
The message from Github settings page (organization name supplanted)
Your site is published at http://www.ORAGANIZATION_NAME.org/wiki/
To use the feature where your pages are exposed on *.github.io you need to make sure your github repository follows the correct naming convention.
Use the repository name <username or org-name>.github.io the github system sees this as a "Personal Page" and exposes the repository via https://<username or org-name>.github.io.
see: https://pages.github.com/
You can can customize the exposed URL by adding the "CNAME" file at the root of the repository.
Example:
I have the github repository Loki-Astari.github.io
Github repo: https://github.com/Loki-Astari/Loki-Astari.github.io
Exposed here: https://Loki-Astari.github.io
CNAME here: https://LokiAstari.com
Another Example:
Github repo: https://github.com/academicpages/academicpages.github.io
Exposed here: https://academicpages.github.io

Use Github pages on multiple repositories when one has a custom CNAME already?

I have a Github repository set up to host a small static site. The repository that hosts this is in the following format:
username.github.io
This repository is setup to use a custom domain and has a CNAME file to do so properly. This repository works exactly as expected.
Now I want to set up a project page and utilize the gh-pages branch for a different repository. When I do this, though, the CNAME in the first repository seems to apply and I am redirected to example.com/REPOSITORYNAME instead of using the expected username.github.io/projectname associated with this separate repository.
How can I continue to use the username.github.io repository with a custom domain and the gh-pages branch on a different repository without redirecting the gh-pages repository to the custom domain defined in the first repository?
As of Aug 2016, I don't think this is possible. (https://help.github.com/articles/custom-domain-redirects-for-github-pages-sites/)
The Github Pages help article states that
Project Pages site owned by a user account, such as username.github.io/projectname, will be Automatically redirected to a subdirectory of a User Pages site custom domain (user.example.com/projectname), unless a different CNMAE is specified, such as project.example.com
See Github pages - Disable custom domain redirection for all but a single site?
The easiest way is to create a Github Organisation for each website you decide to manage this way.
In this case, I had to publish to master instead of gh-pages.
More informations here : https://help.github.com/articles/user-organization-and-project-pages/

Github pages and github project sites with personal domain name

I successfully moved my blog to github pages(www.strayed-bits.net). However, I cannot access my project site: rmuktader.github.io/bootstrap
Is there a way to make custom domain name work for both github pages and github project sites? Or do I have to forget about personal domain name and stick with rmuktader.github.io?
Well, pointing to rmuktader.github.io/bootstrap leads server to look for rmuktader.github.io/bootstrap/index.html which doesn't exist.
The only thing available at this url (from your last commit) is a folder containing a starter_template folder, but no index.html at the root. So, 404 !
You can move all the starter_template content to your root an commit the changes.
This will send, you will now have your index.html at the root, and everithing will be ok.

How can I activate the pages machinery in GitHub without subdomains?

Is there any way to activate the Pages machinery in GitHub without going through the subdomains? A practical case could be in a GitHub Enterprise instance.
To view GitHub Pages (gh-pages branch) on your github enterprise server, use this URL structure:
http://[github-enterprise-domain]/pages/[username]/[repo]/
This URL structure doesn't work for github.com.
For user or organization pages, you can't create a "username.github.io" repo. Instead, you can create a repo and name it the same as your username or org, and then you use:
/pages/[username]/[username]/
The 2nd [username] is simply the name of your repo.