# GitHub Pages とは

GitHub Pagesを使用して、自分、組織、またはプロジェクトに関する Web サイトを、GitHubのリポジトリから直接ホストできます。

## GitHub Pages の概要

GitHub Pages は、HTML、CSS、JavaScript ファイルを GitHub 上のリポジトリから直接取得し、必要に応じてビルド プロセスを通じてファイルを実行し、Web サイトを発行する静的サイト ホスティング サービスです。
GitHub Pagesのサンプル コレクションでは、[GitHub Pages サイトの例を](https://github.com/collections/github-pages-examples)確認できます。

## GitHub Pages サイトの種類

GitHub Pages サイトには 2 種類あります。 ユーザーまたは organization アカウントに関連付けられたサイトと、特定のプロジェクト用サイトです。

<table>
<thead>
<tr>
<th>プロパティ</th>
<th>ユーザーと組織のサイト</th>
<th>プロジェクト サイト</th>
</tr>
</thead>
<tbody>
<tr>
<th>ソース ファイル</th>
<td>
<code>&lt;owner&gt;.github.io</code> というリポジトリに格納する必要があります (この <code>&lt;owner&gt;</code> は個人または organization のアカウント名です)</td>
<td>プロジェクトのコードを含むリポジトリ内のフォルダーに格納されます</td>
</tr>
<tr>
<th>制限</th>
<td>アカウントごとに最大１つのサイト</td>
<td>リポジトリごとに最大１つのサイト</td>
</tr>

<tr>
<th>サブドメイン分離が有効になっている既定のサイトの場所</th>
<td><code>http(s)://pages.&lt;hostname&gt;/&lt;owner&gt;</code></td>
<td><code>http(s)://pages.&lt;hostname&gt;/&lt;owner&gt;/&lt;repository&gt;/</code></td>
</tr>
<tr>
<th>サブドメイン分離を無効になっている既定のサイトの場所</th>
<td><code>http(s)://&lt;hostname&gt;/pages/&lt;username&gt;</code></td>
<td><code>http(s)://&lt;hostname&gt;/pages/&lt;owner&gt;/&lt;repository&gt;/</code></td>
</tr>

</tbody>
</table>

詳細については、「 [サブドメインの分離を有効化する](/ja/enterprise-server@3.22/admin/configuring-settings/hardening-security-for-your-enterprise/enabling-subdomain-isolation) 」を参照するか、サイト管理者に問い合わせてください。

## 参考資料

* [
  GitHub Pages
  ](https://github.com/skills/github-pages) で GitHub Skills
* [リポジトリの REST API エンドポイント](/ja/enterprise-server@3.22/rest/repos#pages)
* [GitHub Pages サイトの発行ソースの構成](/ja/enterprise-server@3.22/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site)