Skip to main content
Frecuentemente publicamos actualizaciones de nuestra documentación. Es posible que la traducción de esta página esté en curso. Para conocer la información más actual, visita la documentación en inglés. Si existe un problema con las traducciones en esta página, por favor infórmanos.

Esta versión de GitHub Enterprise se discontinuó el 2022-06-03. No se realizarán lanzamientos de patch, ni siquiera para problemas de seguridad críticos. Para obtener un mejor desempeño, más seguridad y nuevas características, actualiza a la última versión de GitHub Enterprise. Para obtener ayuda con la actualización, contacta al soporte de GitHub Enterprise.

About GitHub Pages

You can use Páginas de GitHub to host a website about yourself, your organization, or your project directly from a repository on tu instancia de GitHub Enterprise Server.

Páginas de GitHub se encuentra disponible en los repositorios públicos con GitHub Free y con GitHub Free para las organizaciones, y en los repositorios públicos y privados con GitHub Pro, GitHub Team, Nube de GitHub Enterprise, y GitHub Enterprise Server.

About Páginas de GitHub

Páginas de GitHub 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 Páginas de GitHub sites in the Páginas de GitHub examples collection.

To get started, see "Creating a Páginas de GitHub site."

Organization owners can disable the publication of Páginas de GitHub sites from the organization's repositories. For more information, see "Managing the publication of Páginas de GitHub sites for your organization."

Types of Páginas de GitHub sites

There are three types of Páginas de GitHub 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 tu instancia de GitHub Enterprise Server.

To publish a user site, you must create a repository owned by your personal 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 personal account, are unlimited.

The URL where your site is available depends on whether subdomain isolation is enabled for tu instancia de GitHub Enterprise Server.

Type of siteSubdomain isolation enabledSubdomain isolation disabled
Userhttp(s)://pages.<hostname>/<username>http(s)://<hostname>/pages/<username>
Organizationhttp(s)://pages.<hostname>/<organization>http(s)://<hostname>/pages/<organization>
Project site owned by personal accounthttp(s)://pages.<hostname>/<username>/<repository>/http(s)://<hostname>/pages/<username>/<repository>/
Project site owned by organization accounthttp(s)://pages.<hostname>/<orgname>/<repository>/http(s)://<hostname>/pages/<orgname>/<repository>/

For more information, see "Enabling subdomain isolation" or contact your site administrator.

Publishing sources for Páginas de GitHub sites

The publishing source for your Páginas de GitHub site is the branch and folder where the source files for your site are stored.

Advertencia: Si tu administrador de sitio habilitó las páginas públicas, los sitios de Páginas de GitHub estarán disponibles públicamente en la itnernet, incluso si el repositorio del sitio es privado o interno. Si tienes datos sensibles en el repositorio de tu sitio, es posible que quieras eliminar los datos antes de publicar. Para obtener más información, consulta las secciones "Configurar las Páginas de GitHub para tu empresa" y "Acerca de los repositorios".

If the default publishing source exists in your repository, Páginas de GitHub will automatically publish a site from that source. The default publishing source for user and organization sites is the root of the default branch for the repository. The default publishing source for project sites is the root of the gh-pages branch.

If you want to keep the source files for your site in a different location, you can change the publishing source for your site. You can publish your site from any branch in the repository, either from the root of the repository on that branch, /, or from the /docs folder on that branch. For more information, see "Configuring a publishing source for your Páginas de GitHub site."

If you choose the /docs folder of any branch as your publishing source, Páginas de GitHub will read everything to publish your site from the /docs folder.

Static site generators

Páginas de GitHub publishes any static files that you push to your repository. You can create your own static files or use a static site generator to build your site for you. You can also customize your own build process locally or on another server. We recommend Jekyll, a static site generator with built-in support for Páginas de GitHub and a simplified build process. For more information, see "About Páginas de GitHub and Jekyll."

Páginas de GitHub will use Jekyll to build your site by default. If you want to use a static site generator other than Jekyll, disable the Jekyll build process by creating an empty file called .nojekyll in the root of your publishing source, then follow your static site generator's instructions to build your site locally.

Páginas de GitHub does not support server-side languages such as PHP, Ruby, or Python.

Limits on use of Páginas de GitHub

Páginas de GitHub is not intended for or allowed to be used as a free web-hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS). Los sitios Páginas de GitHub no se deben usar para realizar transacciones que impliquen el envío de información confidencial como contraseñas o números de tarjeta de crédito.

In addition, your use of Páginas de GitHub is subject to the GitHub Terms of Service, including the restrictions on get-rich-quick schemes, sexually obscene content, and violent or threatening content or activity.

Usage limits

Páginas de GitHub sites are subject to the following usage limits:

  • Páginas de GitHub source repositories have a recommended limit of 1 GB.
  • Published Páginas de GitHub sites may be no larger than 1 GB.

MIME types on Páginas de GitHub

A MIME type is a header that a server sends to a browser, providing information about the nature and format of the files the browser requested. Páginas de GitHub supports more than 750 MIME types across thousands of file extensions. The list of supported MIME types is generated from the mime-db project.

While you can't specify custom MIME types on a per-file or per-repository basis, you can add or modify MIME types for use on Páginas de GitHub. For more information, see the mime-db contributing guidelines.

Further reading