简体   繁体   English

如何为组织制作 github 页面

[英]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.我们在 github 上有一个组织,在其中一个存储库中,我试图将其转换为简单的 github.io 文件以在 repo.MD 页面中显示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.看起来很简单,我在 repo 中添加了一个_config.yml文件,并在设置中启用了 github 页面。

The problem is that github now shows that the site is published at our www.ORGANIZATION_NAME.org/wiki .问题是 github 现在显示该站点发布在我们的www.ORGANIZATION_NAME.org/wiki But we don't own that domain.但我们不拥有该域。 That domain isn't a registered domain in our github organization settings.该域不是我们 github 组织设置中的注册域。 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?有没有办法获得ORGANIZATION_NAME.github.io或类似的默认域?

The message from Github settings page (organization name supplanted)来自 Github 设置页面的消息(已替换组织名称)

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.要使用您的页面在*.github.io上公开的功能,您需要确保您的 github 存储库遵循正确的命名约定。

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 . 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/见: https://pages.github.com/

You can can customize the exposed URL by adding the "CNAME" file at the root of the repository.您可以通过在存储库的根目录添加“CNAME”文件来自定义公开的 URL。

Example:例子:

I have the github repository Loki-Astari.github.io我有 github 存储库Loki-Astari.github.io

Another Example:另一个例子:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM