David Parks
David Parks

Reputation: 32071

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/

Upvotes: 6

Views: 8641

Answers (1)

Loki Astari
Loki Astari

Reputation: 264401

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:

Upvotes: 13

Related Questions