About GitHub Pages
You can use Páginas de GitHub to host a website about yourself, your organization, or your project directly from a GitHub repository.
Páginas de GitHub se encuentra disponible en repositorios públicos con GitHub gratis y en repositorios privados y públicos con GitHub Pro, Equipo de GitHub, Nube de GitHub Enterprise y Servidor de GitHub Enterprise. Para obtener más información, consulta "Productos de GitHub."
En este artículo
- Acerca de Páginas de GitHub
- Types of Páginas de GitHub sites
- Publishing sources for Páginas de GitHub sites
- Static site generators
- Guidelines for using Páginas de GitHub
- MIME types on Páginas de GitHub
Acerca de 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, 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.
You can host your site on GitHub's github.io domain or your own custom domain. Para obtener más información, consulta "Usar un dominio personalizado con Páginas de GitHub".
To get started, see "Creating a Páginas de GitHub site."
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, such as a JavaScript library or a recipe collection. User and organization sites are connected to a specific GitHub account.
User and organization sites are always published from a repository named <user>.github.io or <organization>.github.io. Unless you're using a custom domain, user and organization sites are available at http(s)://<username>.github.io or http(s)://<organization>.github.io.
The source files for a project site are stored in the same repository as their project. Unless you're using a custom domain, project sites are available at http(s)://<user>.github.io/<repository> or http(s)://<organization>.github.io/<repository>.
For more information about how custom domains affect the URL for your site, see "About custom domains and Páginas de GitHub."
You can only create one user or organization site for each GitHub account. Project sites, whether owned by an organization or a user account, are unlimited.
Note: Repositories using the legacy <user>.github.com naming scheme will still be published, but visitors will be redirected from http(s)://<username>.github.com to http(s)://<username>.github.io. If both a <user>.github.com and <user>.github.io repository exist, only the <user>.github.io repository will be published.
Publishing sources for Páginas de GitHub sites
The publishing source for your Páginas de GitHub site is the branch or folder where the source files for your site are stored. All sites have a default publishing source, and project sites have additional publishing sources available.
Advertencia: Los sitios Páginas de GitHub son de acceso público en Internet, aun cuando sus repositorios sean privados. Si tienes información confidencial en el repositorio de tu página, es posible que desees eliminarla antes de publicar.
The default publishing source for user and organization sites is the master branch. If the repository for your user or organization site has a master branch, your site will publish automatically from that branch. You cannot choose a different publishing source for user or organization sites.
The default publishing source for a project site is the gh-pages branch. If the repository for your project site has a gh-pages branch, your site will publish automatically from that branch.
Project sites can also be published from the master branch or a /docs folder on the master branch. To publish your site from one of these sources, you must configure a different publishing source. For more information, see "Configuring a publishing source for your Páginas de GitHub site."
If you choose the /docs folder of the master branch as your publishing source, Páginas de GitHub will read everything to publish your site, including the CNAME file, from the /docs folder. For example, when you edit your custom domain through the Páginas de GitHub settings, the custom domain will write to /docs/CNAME. For more information about CNAME files, see "Managing a custom domain for your Páginas de GitHub site."
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. También puedes personalizar tu propio proceso de compilación de forma local o en otro servidor. 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.
Guidelines for using Páginas de GitHub
-
los sitios Páginas de GitHub creados después del 15 de junio de 2016 y utilizando dominios
github.iose brindan a través de HTTPS. If you created your site before June 15, 2016, you can enable HTTPS support for traffic to your site. For more information, see "Securing your Páginas de GitHub with HTTPS." -
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.
-
Tu uso de Páginas de GitHub está sujeto a los Términos del servicio de GitHub, incluida la prohibición de reventa.
Límites de uso
los sitios Páginas de GitHub están sujetos a los siguientes límites de uso:
-
Páginas de GitHub source repositories have a recommended limit of 1GB. For more information, see "What is my disk quota?"
-
Los sitios de Páginas de GitHub publicados no pueden ser mayores a 1 GB.
-
Los sitios de Páginas de GitHub tienen un soft límite de ancho de banda de 100GB por mes.
-
Los sitios de Páginas de GitHub tienen un soft límite de 10 construcciones por hora.
If your site exceeds these usage quotas, we may not be able to serve your site, or you may receive a polite email from GitHub Support o GitHub Premium Support suggesting strategies for reducing your site's impact on our servers, including putting a third-party content distribution network (CDN) in front of your site, making use of other GitHub features such as releases, or moving to a different hosting service that might better fit your needs.
Prohibited uses
Páginas de GitHub no pretende ser un servicio de alojamiento web gratuito ni permite que se use de ese modo para realizar tus negocios en línea, un sitio de comercio electrónico, o cualquier otro sitio web que esté principalmente dirigido a facilitar las operaciones comerciales o brindar software comercial como un servicio (SaaS).
Además, los sitios de Páginas de GitHub deben evitar:
- el contenido o la actividad que sea ilegal o esté prohibida por nuestros Términos de servicio o Pautas de la comunidad
- el contenido o la actividad violentas o amenazadoras
- la actividad masiva automatizada excesiva (por ejemplo, envío de spam)
- la actividad que comprometa a los usuarios o los servicios de GitHub
- los esquemas del tipo 'hágase rico rápidamente'
- el contenido sexualmente obsceno
- el contenido que falsea de manera fraudulenta tu identidad o el propósito del sitio
Si tienes consultas acerca de si tu uso o tu intención de uso corresponde a alguna de estas categorías, comunícate con GitHub Support o GitHub Premium Support.
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.
Leer más
- Páginas de GitHub on Laboratorio de aprendizaje de GitHub
- "Páginas de GitHub" in la documentación del programador de GitHub