Skip to main content

Usar submódulos con las Páginas de GitHub

Puedes usar submódulos con las GitHub Pages para incluir otros proyectos en el código de tu sitio.

¿Quién puede utilizar esta característica?

GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see "GitHub’s plans."

GitHub Pages now uses GitHub Actions to execute the Jekyll build. When using a branch as the source of your build, GitHub Actions must be enabled in your repository if you want to use the built-in Jekyll workflow. Alternatively, if GitHub Actions is unavailable or disabled, adding a .nojekyll file to the root of your source branch will bypass the Jekyll build process and deploy the content directly. For more information on enabling GitHub Actions, see "Managing GitHub Actions settings for a repository."

Si el repositorio para tu sitio de GitHub Pages contiene submódulos, sus contenidos se extraerán automáticamente cuando se compile tu sitio.

Solo puedes usar submódulos que apunten a los repositorios públicos, porque el servidor de GitHub Pages no puede acceder a los repositorios privados.

Use la dirección URL https:// de solo lectura para los submódulos, incluidos los submódulos anidados. Puede realizar este cambio en el archivo .gitmodules.

Información adicional