About GitHub Pages
GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub Enterprise Server, optionally runs the files through a build process, and publishes a website. You can see examples of GitHub Pages sites in the GitHub Pages examples collection.
To get started, see "Creating a GitHub Pages site."
Types of GitHub Pages sites
There are three types of GitHub Pages sites: project, user, and organization. Project sites are connected to a specific project hosted on GitHub Enterprise Server, such as a JavaScript library or a recipe collection. User and organization sites are connected to a specific account on your GitHub Enterprise Server instance.
To publish a user site, you must create a repository owned by your user account that's named <username>.<hostname>. To publish an organization site, you must create a repository owned by an organization that's named <organization>.<hostname>.
The source files for a project site are stored in the same repository as their project.
You can only create one user or organization site for each account on GitHub Enterprise Server. Project sites, whether owned by an organization or a user account, are unlimited.
The URL where your site is available depends on whether subdomain isolation is enabled for your GitHub Enterprise Server instance.
| Type of site | Subdomain isolation enabled | Subdomain isolation disabled |
|---|---|---|
| User | http(s)://pages.<hostname>/<username> | http(s)://<hostname>/pages/<username> |
| Organization | http(s)://pages.<hostname>/<organization> | http(s)://<hostname>/pages/<organization> |
| Project site owned by user account | http(s)://pages.<hostname>/<username>/<repository>/ | http(s)://<hostname>/pages/<username>/<repository>/ |